Skip to content

Commit

Permalink
Hardcode baud rate, as it's fixed by the bootrom
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Nov 14, 2024
1 parent 130593e commit 7659413
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bootloaders/uart/uart_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

// UART defines for uart boot
#define UART_ID uart1
#define BAUD_RATE 1000000

// Use pins 4 and 5 for uart boot
#define UART_TX_PIN 4
Expand Down Expand Up @@ -108,7 +107,7 @@ int main()
stdio_init_all();

// Set up our UART for booting the other device
uart_init(UART_ID, BAUD_RATE);
uart_init(UART_ID, 1000000);
gpio_set_function(UART_TX_PIN, GPIO_FUNC_UART);
gpio_set_function(UART_RX_PIN, GPIO_FUNC_UART);

Expand Down

0 comments on commit 7659413

Please sign in to comment.