#![deny(unsafe_code)]
#![deny(warnings)]
#![no_main]
#![no_std]
use panic_halt as _;
#[rtic::app(device = stm32f4xx_hal::pac, peripherals = true)]
mod app {
use stm32f4xx_hal::{
gpio::{self, Edge, Input, Output, PushPull},
pac::TIM1,
prelude::*,
rtc::{Rtc, Event},
timer,
};
use defmt_rtt as _;
// Resources shared between tasks
#[shared]
struct Shared {
delayval: u32,
rtc: Rtc,
}
// Local resources to specific tasks (cannot be shared)
#[local]
struct Local {
button: gpio::PA0,
led: gpio::PC13