Skip to content
Snippets Groups Projects
Commit 9408dd89 authored by Jorge Aparicio's avatar Jorge Aparicio Committed by GitHub
Browse files

fix example

parent e52ea33a
No related branches found
No related tags found
No related merge requests found
...@@ -5,12 +5,11 @@ ...@@ -5,12 +5,11 @@
#![no_std] #![no_std]
extern crate blue_pill; extern crate blue_pill;
extern crate cortex_m;
extern crate cortex_m_rtfm as rtfm; extern crate cortex_m_rtfm as rtfm;
use blue_pill::Rtc; use blue_pill::Rtc;
use blue_pill::rtc::{RtcClkSource, RtcEvent}; use blue_pill::rtc::{RtcClkSource, RtcEvent};
use blue_pill::led::{self, Green}; use blue_pill::led::{self, PC13};
use blue_pill::stm32f103xx::Interrupt; use blue_pill::stm32f103xx::Interrupt;
use rtfm::{app, Threshold}; use rtfm::{app, Threshold};
...@@ -55,8 +54,8 @@ fn toggle(_t: &mut Threshold, r: RTC::Resources) { ...@@ -55,8 +54,8 @@ fn toggle(_t: &mut Threshold, r: RTC::Resources) {
**r.ON = !**r.ON; **r.ON = !**r.ON;
if **r.ON { if **r.ON {
Green.on(); PC13.on();
} else { } else {
Green.off(); PC13.off();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment