主程序为:
#include <stdio.h>
#include "NUC1xx.h"
//#include "DrvGPIO.h"
//#include "DrvUART.h"
//#include "DrvSYS.h"
#define uint16_t unsigned int
void delay(uint16_t dly_time)
{
uint8_t i=0;
for(;dly_time>0;dly_time--)
for(i=255;i>0;i--);
}
/*---------------------------------------------------------------------------------------------------------*/
/* MAIN function */
/*---------------------------------------------------------------------------------------------------------*/
int main (void)
{
// uint16_t clk_cycle=0x0004;
while(1)
{
}
}
|