Skip to content

Commit 707c199

Browse files
japaricWez Furlong
authored andcommitted
rebase fixes
1 parent f63eb67 commit 707c199

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

examples/usb/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ cortex-m = "0.6.2"
99
cortex-m-rt = "0.6.12"
1010
cortex-m-semihosting = "0.3.5"
1111
panic-semihosting = "0.5.3"
12-
nrf52840-pac = "0.8.0"
12+
nrf52840-pac = "0.9.0"
1313
usb-device = "0.2.5"
1414
usbd-serial = "0.1.0"
1515

1616
[dependencies.nrf52840-hal]
17-
version = "0.8.0"
17+
version = "0.10.0"
1818
path = "../../nrf52840-hal"

examples/usb/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ fn TIMER0() {
2424
fn main() -> ! {
2525
static mut EP_BUF: [u8; 512] = [0; 512];
2626

27-
let core = cortex_m::Peripherals::take().unwrap();
2827
let periph = Peripherals::take().unwrap();
2928
while !periph
3029
.POWER
@@ -46,7 +45,6 @@ fn main() -> ! {
4645
let clocks = Clocks::new(periph.CLOCK);
4746
let clocks = clocks.enable_ext_hfosc();
4847

49-
let mut nvic = core.NVIC;
5048
let mut timer = Timer::one_shot(periph.TIMER0);
5149
let usbd = periph.USBD;
5250
let p0 = p0::Parts::new(periph.P0);
@@ -56,7 +54,7 @@ fn main() -> ! {
5654
let btn = p1.p1_00.into_pullup_input();
5755
while btn.is_high().unwrap() {}
5856

59-
timer.enable_interrupt(Some(&mut nvic));
57+
timer.enable_interrupt();
6058
timer.start(Timer::<TIMER0, OneShot>::TICKS_PER_SECOND * 3);
6159

6260
led.set_low().unwrap();

0 commit comments

Comments
 (0)