2016-07-06 23:59:51 +00:00
|
|
|
//! Definitions of register addresses and bits within those registers
|
|
|
|
|
2020-06-19 17:57:37 +00:00
|
|
|
#![feature(llvm_asm)]
|
2017-07-16 02:49:22 +00:00
|
|
|
#![feature(const_fn)]
|
2017-11-17 04:18:35 +00:00
|
|
|
#![feature(associated_type_defaults)]
|
2017-09-23 05:09:24 +00:00
|
|
|
#![feature(lang_items)]
|
|
|
|
#![feature(unwind_attributes)]
|
2020-07-02 13:55:15 +00:00
|
|
|
#![feature(proc_macro_hygiene)]
|
2017-07-16 02:49:22 +00:00
|
|
|
|
2018-11-05 10:37:50 +00:00
|
|
|
#![no_std]
|
|
|
|
|
2020-07-25 14:06:51 +00:00
|
|
|
#[cfg(feature = "avr-std-stub")] extern crate avr_std_stub;
|
|
|
|
|
2021-01-27 15:57:24 +00:00
|
|
|
extern crate const_env__value as const_env;
|
|
|
|
|
2018-11-05 10:05:34 +00:00
|
|
|
pub use self::register::{Register, RegisterBits, RegisterValue};
|
2017-12-13 13:28:11 +00:00
|
|
|
pub use self::pin::{DataDirection, Pin};
|
2016-07-06 23:59:51 +00:00
|
|
|
|
|
|
|
pub mod prelude;
|
2017-12-13 13:28:11 +00:00
|
|
|
pub mod legacy;
|
2018-11-05 09:40:04 +00:00
|
|
|
/// Low level register-based API for device-specific operations.
|
2017-08-29 13:48:44 +00:00
|
|
|
pub mod cores;
|
2018-11-05 09:40:04 +00:00
|
|
|
pub mod interrupt;
|
2017-12-13 11:55:57 +00:00
|
|
|
pub mod modules;
|
2017-08-29 13:48:44 +00:00
|
|
|
|
2018-11-05 09:40:04 +00:00
|
|
|
/// Configuration for the currently-targeted microcontroller.
|
2021-02-01 12:45:41 +00:00
|
|
|
pub use avr_config as config;
|
2017-08-30 14:24:24 +00:00
|
|
|
|
2021-02-01 12:50:14 +00:00
|
|
|
/// Delay routines.
|
|
|
|
pub use avr_delay as delay;
|
|
|
|
|
2017-09-23 04:50:01 +00:00
|
|
|
mod register;
|
2017-08-29 13:48:44 +00:00
|
|
|
mod pin;
|
|
|
|
|