app.c

来自「在仿真软件protues7.1上仿真arm7的GUI的代码和protues的工程」· C语言 代码 · 共 51 行

C
51
字号
/*
*********************************************************************************************************
*                                             INCLUDE FILES
*********************************************************************************************************
*/

#include <includes.h>


/*
*********************************************************************************************************
*                                                main()
*
* Description : This is the standard entry point for C code.  It is assumed that your code will call
*               main() once you have performed all necessary initialization.
*
* Argument(s) : none
*
* Return(s)   : none
*********************************************************************************************************
*/

int  main (void)
{
  CPU_INT08U i=0;
  
  BSP_IntDisAll();                                            /* Disable all interrupts until we are ready to accept them */
  BSP_Init();
  GUI_Init();  
  GUI_Clear();
  GUI_DispString("Hello easyarm2131 from zlg.\n"); 
  
  while(1)
     {
	   if(i==0)
	    {
		  LED_On(0); 
		  LCD_Delay(1000);
		  i=1;
		}
      else
        {
		  LED_Off(0); 
		  LCD_Delay(1000);
		  i=0;
		}
	 }
}


⌨️ 快捷键说明

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