gd32c1x3_hal/
lib.rs

1// #![allow(missing_docs)]
2// #![deny(warnings)]
3#![no_std]
4#[cfg(not(any(
5    feature = "gd32c103",
6    feature = "gd32c113",
7)))]
8compile_error!("Target not found. One of `gd32c103` or `gd32c113` feature flags must be specified.");
9
10// If any two or more targets are specified, print error message.
11#[cfg(any(
12    all(feature = "gd32c103", feature = "gd32c113"),
13))]
14compile_error!(
15    "Multiple targets specified. Only a single target feature flag can be specified."
16);
17
18
19extern crate cortex_m;
20pub extern crate embedded_hal as hal;
21
22#[cfg(feature = "gd32c103")]
23pub use gd32c1::gd32c103 as pac;
24#[cfg(feature = "gd32c113")]
25pub use gd32c1::gd32c113 as pac;
26extern crate nb;
27
28pub mod afio;
29pub mod backup_domain;
30pub mod bb;
31pub mod can;
32pub mod dma;
33pub mod fmc;
34pub mod gpio;
35pub mod i2c;
36pub mod prelude;
37pub mod rcu;
38// pub mod serial;
39pub mod spi;
40pub mod time;
41pub mod timer;
42pub mod crc;
43pub mod usb;
44pub mod watchdog;
45
46mod sealed {
47    pub trait Sealed {}
48}
49
50use sealed::Sealed;