mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #15125 from benpicco/cpu/nrf5x_uart-1MB
cpu/nrf5x_common: UART: add support for 1 MBaud
This commit is contained in:
commit
e05e963a74
@ -194,6 +194,9 @@ int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg)
|
||||
case 921600:
|
||||
REG_BAUDRATE = UART_BAUDRATE_BAUDRATE_Baud921600;
|
||||
break;
|
||||
case 1000000:
|
||||
REG_BAUDRATE = UART_BAUDRATE_BAUDRATE_Baud1M;
|
||||
break;
|
||||
default:
|
||||
return UART_NOBAUD;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user