Skip to content

Commit 7659413

Browse files
committed
Hardcode baud rate, as it's fixed by the bootrom
1 parent 130593e commit 7659413

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bootloaders/uart/uart_boot.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
// UART defines for uart boot
1010
#define UART_ID uart1
11-
#define BAUD_RATE 1000000
1211

1312
// Use pins 4 and 5 for uart boot
1413
#define UART_TX_PIN 4
@@ -108,7 +107,7 @@ int main()
108107
stdio_init_all();
109108

110109
// Set up our UART for booting the other device
111-
uart_init(UART_ID, BAUD_RATE);
110+
uart_init(UART_ID, 1000000);
112111
gpio_set_function(UART_TX_PIN, GPIO_FUNC_UART);
113112
gpio_set_function(UART_RX_PIN, GPIO_FUNC_UART);
114113

0 commit comments

Comments
 (0)