Files

12 lines
198 B
C++

extern "C"
{
#include "usart.h"
}
// 自定义函数入口
extern "C" void User_Main(void)
{
HAL_UART_Transmit(&huart2, (const uint8_t *)"Hello world from C++ !!\r\n", 25, 1000);
return;
}