How to use _ _ delay_cycles to reach a delay to make LED flicker
In this issue, the editor will bring you about how to use _ _ delay_cycles to delay LED flicker. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
simply uses _ _ delay_cycles to achieve the delay effect.
# include ". / DriverLib/driverlib.h" int main () {WDT\ _ A\ _ hold (WDT\ _ A\ _ BASE); / / close the watchdog GPIO\ _ setAsOutputPin (GPIO\ _ PORT\ _ P1, GPIO\ _ PIN0); / / configure P1.0 as the output mode GPIO\ _ setOutputLowOnPin (GPIO\ _ PORT\ _ P1, GPIO\ _ PIN0) / / Let P1.0 output low, turn off LED while (1) {GPIO\ _ toggleOutputOnPin (GPIO\ _ PORT\ _ P1, GPIO\ _ PIN0); / / toggle LED on / off\ _ delay\ _ cycles (1000000) / / delay}} above is how the editor shares how to use _ _ delay_cycles to achieve delay so that LED flashes. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.