Skip to content

Commit aaa5f96

Browse files
committed
minor changes after code review
1 parent ec1b4b4 commit aaa5f96

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

include/uart_flash.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
#include <stdint.h>
3434

3535
#ifdef UART_FLASH
36-
#define UART_FLASH_BITRATE 460800
36+
#ifndef UART_FLASH_BITRATE
37+
#define UART_FLASH_BITRATE 460800
38+
#endif
3739
int uart_init(uint32_t bitrate, uint8_t data, char parity, uint8_t stop);
3840
void uart_send_current_version(void);
3941
#else

lib/wolfssl

Submodule wolfssl updated 628 files

tools/uart-flash-server/ufserver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ static int serial_open(const char *device, int rate)
156156

157157
fcntl(fd, F_SETFL, 0);
158158
tcgetattr(fd, &options);
159-
cfsetispeed(&options, speed ?: B38400);
160-
cfsetospeed(&options, speed ?: B38400);
159+
cfsetispeed(&options, speed ?: B460800);
160+
cfsetospeed(&options, speed ?: B460800);
161161
cfmakeraw(&options);
162162
options.c_cflag |= (CLOCAL | CREAD);
163163
options.c_cflag &= ~CRTSCTS;

0 commit comments

Comments
 (0)