⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 MCF5213的评估板程序
💻 C
字号:
/*
 * File:		main.c
 * Purpose:		Main process
 *
 */

#include "common.h"

/********************************************************************/

#define DELAY   150000  /* Delay in micro-seconds */

/********************************************************************/
void 
main (void)
{
	int i;
	
    /* Global interrupt enable */
	mcf5xxx_irq_enable();

	printf("Running the \"Example\" project\n");
	
    /* 
     * This is the example project.
     * To create a new project, copy the example project files into
     * a new project folder and make modifications there.  The 
     * project make/build files are in the mcf5213/build directory.
     *
     * This project simply toggles the LEDs
     */
	while(1)
	{
	    for (i = 1; i < 8; i<<=1)
	    {
	        board_led_display(i);
	        cpu_pause(DELAY);
	    }
	    for (i = 8; i > 1; i>>=1)
	    {
	        board_led_display(i);
	        cpu_pause(DELAY);
	    }
	}
}
/********************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -