tinyboot-ch32-hal 0.2.1

Hardware abstraction layer for tinyboot on CH32 microcontrollers
#![no_std]

#[cfg(not(any(
    feature = "ch32v003f4p6",
    feature = "ch32v003a4m6",
    feature = "ch32v003f4u6",
    feature = "ch32v003j4m6",
    feature = "ch32v003x4x6",
)))]
compile_error!(
    "No chip variant selected. Enable a chip feature, e.g.: \
     features = [\"ch32v003f4p6\"]"
);

mod generated {
    include!(concat!(env!("OUT_DIR"), "/generated.rs"));
}
pub use generated::{Pin, UsartMapping};

pub mod afio;
pub mod flash;
pub mod gpio;
pub mod iwdg;
pub mod pfic;
pub mod rcc;
pub mod usart;

#[cfg(not(feature = "system-flash"))]
pub mod boot_request;