Skip to content

Commit 3fbff4c

Browse files
Jonathan Pallant (42 Technology)Yatekii
authored andcommitted
Rename 9160 UART to cdc_uart.
1 parent e26c9ce commit 3fbff4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

boards/nRF9160-DK/examples/blinky.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn main() -> ! {
1616
let mut board = Board::take().unwrap();
1717
let mut timer = Timer::new(board.TIMER0_NS);
1818

19-
writeln!(board.cdc, "Hello, world!").unwrap();
19+
writeln!(board.cdc_uart, "Hello, world!").unwrap();
2020

2121
let mut led_is_on = false;
2222
loop {

boards/nRF9160-DK/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct Board {
2929
pub pins: Pins,
3030

3131
/// The nRF9160-DK UART which is wired to the virtual USB CDC port
32-
pub cdc: Uarte<pac::UARTE0_NS>,
32+
pub cdc_uart: Uarte<pac::UARTE0_NS>,
3333

3434
/// The LEDs on the nRF9160-DK board
3535
pub leds: Leds,
@@ -435,7 +435,7 @@ impl Board {
435435
);
436436

437437
Board {
438-
cdc: cdc_uart,
438+
cdc_uart,
439439

440440
pins: Pins {
441441
P0_00: pins0.p0_00,

0 commit comments

Comments
 (0)