Skip to content

Commit

Permalink
Merge #1223
Browse files Browse the repository at this point in the history
1223: nrf52[840]dk: correct the ordering of pins r=alevy a=bradjc

The RX pin must be specified last for `UartPins::new()`.

https://github.com/tock/tock/blob/1d8cadd4e45698807c1a9d1a7e8f317fd7a197dc/boards/nordic/nrf52dk_base/src/lib.rs#L69-L73


### Testing Strategy

I tried running `console_timeout` on the nrf52840dk and it didn't do anything, and I tracked it down to this. It looks like the fix is also required on the nrf52dk board, but Amit marked the `console_timeout` test as working, so I'm not sure what to make of that.


### TODO or Help Wanted

n/a


### Documentation Updated

- [x] Updated the relevant files in `/docs`, or no updates are required.

### Formatting

- [x] Ran `make formatall`.


Co-authored-by: Brad Campbell <bradjc5@gmail.com>
  • Loading branch information
bors[bot] and bradjc committed Nov 29, 2018
2 parents 616cb87 + dd3a756 commit 7f31ad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boards/nordic/nrf52840dk/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ pub unsafe fn reset_handler() {
LED2_PIN,
LED3_PIN,
led_pins,
&UartPins::new(UART_RTS, UART_TXD, UART_RXD, UART_CTS),
&UartPins::new(UART_RTS, UART_TXD, UART_CTS, UART_RXD),
&SpiPins::new(SPI_MOSI, SPI_MISO, SPI_CLK),
&Some(SpiMX25R6435FPins::new(
SPI_MX25R6435F_CHIP_SELECT,
Expand Down
2 changes: 1 addition & 1 deletion boards/nordic/nrf52dk/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ pub unsafe fn reset_handler() {
LED2_PIN,
LED3_PIN,
led_pins,
&UartPins::new(UART_RTS, UART_TXD, UART_RXD, UART_CTS),
&UartPins::new(UART_RTS, UART_TXD, UART_CTS, UART_RXD),
&SpiPins::new(SPI_MOSI, SPI_MISO, SPI_CLK),
&None,
button_pins,
Expand Down

0 comments on commit 7f31ad5

Please sign in to comment.