main.c

来自「基于GE00 实验系统开发板的实验指导用途」· C语言 代码 · 共 40 行

C
40
字号
/**************************************************************************
*                                                                         *
*   PROJECT     : ARM port for UCOS-II                                    *
*                                                                         *
*   MODULE      : EX1.c                                                   *
*                                                                         *
*   AUTHOR      : Michael Anburaj                                         *
*                 URL  : http://geocities.com/michaelanburaj/             *
*                 EMAIL: michaelanburaj@hotmail.com                       *
*                                                                         *
*   PROCESSOR   : Any processor                                           *
*                                                                         *
*   IDE         : Any IDE                                                 *
*                                                                         *
*   DESCRIPTION :                                                         *
*   This is a sample code to test UCOS-II.                                *
*                                                                         *
**************************************************************************/
#include "includes.h"

/* ********************************************************************* */
/* Global functions */

int main(void)
{
	FirmInit();
	CONSOL_Printf("Firm init finished\n");	
	
	CONSOL_Printf("OS init begin\n");	
	OSInit();                               /* Initialize uC/OS-II                                      */
	
	CONSOL_Printf("OS init finished\n");
	CONSOL_Printf("OS Start!^_^\n");
	OSStart();                              /* Start multitasking                                       */
	
}


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

⌨️ 快捷键说明

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