main.c

来自「ARM2131的程序模块」· C语言 代码 · 共 47 行

C
47
字号
/****************************************Copyright (c)**************************************************
********************************************************************************************************/
#include "config.h"
#include "lpclib.h"

 int main (void)
{
Port_Init();
Hd1_off();
Hd2_off();
Hd3_off();

// 
UART0_Init ();
UART1_Init ();
Uart_Printf("hello philpis lpc2132");
while(1)
{
  Uart_Printf("ON     ");
  LED_W_ON ();
  LED_R_ON();
  LED_ERR_ON();
 // Beep_ON ();
  
  
  DelayNS (200);
  Uart_Printf("OFF    ");
  LED_R_OFF();
  LED_W_OFF();
  LED_ERR_OFF();
 // Beep_OFF ();
  DelayNS (200); 
  delayns(100);
}
}
/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/
/*void Beep_OFF (void);
void Beep_ON (void);
void LED_ERR_OFF (void);
void LED_ERR_ON (void) ;
void LED_W_OFF (void);
void LED_W_ON (void) ;
void LED_R_OFF (void);
void LED_R_ON (void) ;
void Hd1_off(void);*/

⌨️ 快捷键说明

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