example_main.c
来自「Freescale MCF5445evb 参考测试代码」· C语言 代码 · 共 42 行
C
42 行
/* * File: main.c * Purpose: Main process * */#include "common.h"/********************************************************************/#define DELAY 250000 /* Delay in micro-seconds *//********************************************************************/void main (void){ int i; /* Global interrupt enable */ mcf5xxx_irq_enable(); printf("Running the \"Example\" project\n"); /* * This is an example project that simply toggles the LEDs */ while(1) { for (i = 1; i < 4; i<<=1) { platform_led_display(i); cpu_pause(DELAY); } for (i = 4; i > 1; i>>=1) { platform_led_display(i); cpu_pause(DELAY); } }}/********************************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?