Fix the name of the EXTI control resource

This commit is contained in:
Paul van Tilburg 2019-12-20 13:31:00 +01:00
parent f11d8dfd7e
commit 132dfd8965
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ const APP: () = {
/// The on-board blue user-controlled button. /// The on-board blue user-controlled button.
button: UserButton, button: UserButton,
/// The interrupt controll for the EXTI interrupt (related to the user button). /// The interrupt controll for the EXTI interrupt (related to the user button).
exit_cntr: EXTI, exti_cntr: EXTI,
/// The "ring" formed by the four on-board leds. /// The "ring" formed by the four on-board leds.
led_ring: LedRing<Led>, led_ring: LedRing<Led>,
/// The receiving part of the serial interface. /// The receiving part of the serial interface.
@ -128,7 +128,7 @@ const APP: () = {
accel_cs: accel_cs, accel_cs: accel_cs,
buffer: buffer, buffer: buffer,
button: button, button: button,
exit_cntr: exti_cntr, exti_cntr: exti_cntr,
led_ring: led_ring, led_ring: led_ring,
serial_rx: serial_rx, serial_rx: serial_rx,
serial_tx: serial_tx, serial_tx: serial_tx,
@ -191,7 +191,7 @@ const APP: () = {
/// Interrupt handler that writes that the button is pressed to the serial interface /// Interrupt handler that writes that the button is pressed to the serial interface
/// and reverses the LED ring cycle direction. /// and reverses the LED ring cycle direction.
#[task(binds = EXTI0, resources = [button, exit_cntr, led_ring, serial_tx])] #[task(binds = EXTI0, resources = [button, exti_cntr, led_ring, serial_tx])]
fn button_pressed(mut cx: button_pressed::Context) { fn button_pressed(mut cx: button_pressed::Context) {
cx.resources.led_ring.lock(|led_ring| led_ring.reverse()); cx.resources.led_ring.lock(|led_ring| led_ring.reverse());
@ -202,7 +202,7 @@ const APP: () = {
cx.resources cx.resources
.button .button
.clear_interrupt_pending_bit(cx.resources.exit_cntr); .clear_interrupt_pending_bit(cx.resources.exti_cntr);
} }
/// Interrupt handler that reads data from the serial connection and handles commands /// Interrupt handler that reads data from the serial connection and handles commands