py32f030_hal 0.1.0

Peripheral Hal Crate for Puya's PY32F030 microcontroller
use enumset::EnumSetType;

#[derive(Debug)]
pub enum Error {
    Clock,
    Timeout,
}

/// Alarm or second output selection
// pub enum PinSignal {
//     /// Pin 上输出的是 alarm 信号
//     AlarmPulse,
//     /// Pin 上输出的是秒信号
//     SecondPulse,
//     /// Pin 上输出的是RTC clock 信号
//     Clock,
// }

#[derive(PartialEq)]
pub enum RtcClock {
    LSI,
    LSE,
    HSE_DIV_32,
}

#[derive(EnumSetType, Debug)]
pub enum EventKind {
    Alarm,
    Second,
    OverFlow,
}