This commit is contained in:
wujiahao17 2024-08-20 20:59:19 +08:00
parent a79e89494e
commit d58120bfe7
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ static void timerisr(struct Timer *timer)
bool_t OTA_Initialize(void){
wjh_TipCreate("窗口初始化");
WifiInit("/dev/UART0", CN_UART_BAUD_115200, CN_UART_DATABITS_8, CN_UART_STOPBITS_1, CN_UART_PARITY_NONE);
WifiInit("/dev/UART1", CN_UART_BAUD_115200, CN_UART_DATABITS_8, CN_UART_STOPBITS_1, CN_UART_PARITY_NONE);
wjh_TipChange("正在连接WIFI");
//wifi连接
OTA_WIFI_Connect(OTA_WIFI_NAME_DEFAULT,OTA_WIFI_PWD_DEFAULT);

View File

@ -208,9 +208,9 @@
#define CFG_STDIO_STDERR_FOLLOW true //
#define CFG_STDIO_FLOAT_PRINT true //
#define CFG_STDIO_STDIOFILE true //
#define CFG_STDIO_IN_NAME "/dev/UART1" //
#define CFG_STDIO_OUT_NAME "/dev/UART1" //
#define CFG_STDIO_ERR_NAME "/dev/UART1" //
#define CFG_STDIO_IN_NAME "/dev/UART0" //
#define CFG_STDIO_OUT_NAME "/dev/UART0" //
#define CFG_STDIO_ERR_NAME "/dev/UART0" //
#define CFG_MODULE_ENABLE_STDIO true
//******************************* Configure time ******************************************//
#define CFG_LOCAL_TIMEZONE 8 //北京时间是东8区