From 9408dd893b62fec6578c5fc32cb7fd1b18d70e14 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio <jorge@japaric.io> Date: Fri, 22 Sep 2017 20:38:17 +0200 Subject: [PATCH] fix example --- examples/blinky-rtc.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/blinky-rtc.rs b/examples/blinky-rtc.rs index c774c3b..6583a5b 100644 --- a/examples/blinky-rtc.rs +++ b/examples/blinky-rtc.rs @@ -5,12 +5,11 @@ #![no_std] extern crate blue_pill; -extern crate cortex_m; extern crate cortex_m_rtfm as rtfm; use blue_pill::Rtc; use blue_pill::rtc::{RtcClkSource, RtcEvent}; -use blue_pill::led::{self, Green}; +use blue_pill::led::{self, PC13}; use blue_pill::stm32f103xx::Interrupt; use rtfm::{app, Threshold}; @@ -55,8 +54,8 @@ fn toggle(_t: &mut Threshold, r: RTC::Resources) { **r.ON = !**r.ON; if **r.ON { - Green.on(); + PC13.on(); } else { - Green.off(); + PC13.off(); } } -- GitLab