From 066d8ffdd63acf5b45eb8770312ffc7ed73b019d Mon Sep 17 00:00:00 2001 From: penglei <1624952103@qq.com> Date: Fri, 19 Sep 2025 18:23:54 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8Dfile.bin=20=E7=83=A7=E5=BD=95?= =?utf8?q?=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../drivers/chips/brandy/porting/include/uart_porting.h | 6 ++---- code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c | 8 +++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/code/sdk/drivers/chips/brandy/porting/include/uart_porting.h b/code/sdk/drivers/chips/brandy/porting/include/uart_porting.h index faf39b38c..d4a03eb19 100644 --- a/code/sdk/drivers/chips/brandy/porting/include/uart_porting.h +++ b/code/sdk/drivers/chips/brandy/porting/include/uart_porting.h @@ -26,10 +26,8 @@ extern "C" { * @{ */ -#define SW_UART_BAUDRATE 500000UL -// #define SW_UART_BAUDRATE 115200UL -// #define UART_L_BAUDRATE 115200UL -#define UART_L_BAUDRATE 500000UL +#define SW_UART_BAUDRATE 115200UL +#define UART_L_BAUDRATE 115200UL #define UART_BUS_MAX_NUM UART_BUS_MAX_NUMBER /* Uart FIFO Level corresponding number of passes */ diff --git a/code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c b/code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c index ae391ccc0..be6daf1df 100644 --- a/code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c +++ b/code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c @@ -62,8 +62,6 @@ * 2000000 可以加快下载文件速度 */ #define CUSTOM_UART_RATE 500000 -#define CUSTOM_UART_RATE_SSB 500000 -// #define CUSTOM_UART_RATE_SSB 115200 typedef struct { pin_mode_t tx_pin_mode; pin_mode_t rx_pin_mode; @@ -127,7 +125,7 @@ static uart_config_t g_uart_config[UART_BUS_MAX_NUMBER] = { (osal_irq_handler)irq_uart0_handler, NULL, { - .baud_rate = CUSTOM_UART_RATE_SSB, + .baud_rate = 115200, .data_bits = UART_DATA_BIT_8, .parity = UART_PARITY_NONE, .stop_bits = UART_STOP_BIT_1, @@ -155,7 +153,7 @@ static uart_config_t g_uart_config[UART_BUS_MAX_NUMBER] = { (osal_irq_handler)irq_uart1_handler, NULL, { - .baud_rate = CUSTOM_UART_RATE_SSB, + .baud_rate = 115200, .data_bits = UART_DATA_BIT_8, .parity = UART_PARITY_NONE, .stop_bits = UART_STOP_BIT_1, @@ -187,7 +185,7 @@ static uart_config_t g_uart_config[UART_BUS_MAX_NUMBER] = { (osal_irq_handler)irq_uart0_handler, NULL, { - .baud_rate = CUSTOM_UART_RATE_SSB, + .baud_rate = 115200, .data_bits = UART_DATA_BIT_8, .parity = UART_PARITY_NONE, .stop_bits = UART_STOP_BIT_1, -- 2.17.1