2021-12-29 18:05:13 +01:00
|
|
|
#include "fw_hal.h"
|
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
2021-12-30 15:48:21 +01:00
|
|
|
SYS_SetClock();
|
|
|
|
// UART1, baud 115200, baud source Timer2, 1T mode, no interrupt
|
2021-12-29 18:05:13 +01:00
|
|
|
UART1_ConfigMode1Dyn8bitUart(UART1_BaudSource_Timer2, HAL_State_ON, 115200, HAL_State_OFF);
|
|
|
|
while(1)
|
|
|
|
{
|
|
|
|
UART1_TxChar('T');
|
|
|
|
UART1_TxHex(0x41);
|
|
|
|
UART1_TxString("U");
|
|
|
|
UART1_TxString(" string\r\n");
|
|
|
|
SYS_Delay(1000);
|
|
|
|
}
|
|
|
|
}
|