Page 45 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 45
NVIC_Configuration();
USART_Configuration();
}
void Delay(vu32 nCount)
{
while(nCount--);
}
int main()
{
Init_All_Periph();
while(1)
{
//printf("abcdefghijklmnopqrstuvwxyz\n\r");
Delay(0x00ffffff);
USART1_write((u8*)"HELLO!! MOTO\n\r");
// Delay(0xffffffff);
// Delay(0xffffffff);
}
}
/**********************************************************
*********************
* Function Name : PUTCHAR_PROTOTYPE
* Description : Retargets the C library printf function
to the USART.
* Input : None
* Output : None
* Return : None
***********************************************************
********************/
PUTCHAR_PROTOTYPE
{
- 38 -