* Function: Delay buzzer activation. * Description: Use external 11.0592MHz crystal oscillator, do not use PLL, ********************************************************************************/ #include \"config.h\" /**************************************************************************** * Name: DelayNS() * Function: Long software delay * Input parameter: dly delay parameter, the larger the value, the longer the delay * Output parameter: None *********************************************************************************/ void DelayNS(uint32 dly) { uint32 i; for(; dly>0; dly--) for(i=0; i<500; i++); } /******************************************************************************** * Name: main() * Function: Send the string \"Hello World!\" to the serial port UART0 *********************************************************************************/ int main(void) { IODIR=0x00000001; IOCLR=0x00000001; while(1) { DelayNS(500); IOSET=0x00000001; DelayNS(500); IOCLR=0x00000001; } }
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore