2021-01-25 15:42:43 -05:00
|
|
|
//! HAL for the RP2040 microcontroller
|
|
|
|
//!
|
|
|
|
//! This is an implementation of the [`embedded-hal`] traits for the RP2040 microcontroller
|
|
|
|
//! NOTE This HAL is still under active development. This API will remain volatile until 1.0.0
|
|
|
|
|
2021-07-19 18:58:26 +02:00
|
|
|
#![warn(missing_docs)]
|
2021-01-25 15:42:43 -05:00
|
|
|
#![no_std]
|
2021-11-08 12:23:28 +00:00
|
|
|
#![cfg_attr(feature = "embassy-traits", feature(generic_associated_types))]
|
|
|
|
#![cfg_attr(feature = "embassy-traits", feature(type_alias_impl_trait))]
|
2021-01-25 15:42:43 -05:00
|
|
|
|
|
|
|
extern crate cortex_m;
|
|
|
|
extern crate embedded_hal as hal;
|
|
|
|
extern crate nb;
|
2021-05-23 21:08:42 -05:00
|
|
|
pub use paste;
|
2021-04-24 13:38:17 +02:00
|
|
|
|
2021-01-25 15:42:43 -05:00
|
|
|
pub extern crate rp2040_pac as pac;
|
|
|
|
|
|
|
|
pub mod adc;
|
2021-10-22 14:30:30 +02:00
|
|
|
pub(crate) mod atomic_register_access;
|
2021-05-01 23:18:37 +02:00
|
|
|
pub mod clocks;
|
2021-12-02 00:03:41 +11:00
|
|
|
mod critical_section_impl;
|
2021-11-16 21:45:52 +00:00
|
|
|
pub mod dma;
|
2021-04-17 18:18:10 -05:00
|
|
|
pub mod gpio;
|
2021-01-25 15:42:43 -05:00
|
|
|
pub mod i2c;
|
2021-12-01 06:52:53 -06:00
|
|
|
pub mod multicore;
|
2021-09-15 17:32:00 +03:00
|
|
|
pub mod pio;
|
2021-04-25 10:12:38 +02:00
|
|
|
pub mod pll;
|
2021-01-25 15:42:43 -05:00
|
|
|
pub mod prelude;
|
|
|
|
pub mod pwm;
|
2021-05-16 12:42:41 -05:00
|
|
|
pub mod resets;
|
2021-02-01 22:57:32 -06:00
|
|
|
pub mod rom_data;
|
2021-07-08 12:58:48 +02:00
|
|
|
pub mod rosc;
|
2021-01-25 15:42:43 -05:00
|
|
|
pub mod rtc;
|
2021-05-10 08:29:59 -05:00
|
|
|
pub mod sio;
|
2021-01-25 15:42:43 -05:00
|
|
|
pub mod spi;
|
|
|
|
pub mod ssi;
|
|
|
|
pub mod timer;
|
2021-05-23 21:08:42 -05:00
|
|
|
pub mod typelevel;
|
2021-01-25 15:42:43 -05:00
|
|
|
pub mod uart;
|
|
|
|
pub mod usb;
|
|
|
|
pub mod watchdog;
|
2021-04-24 13:38:17 +02:00
|
|
|
pub mod xosc;
|
2021-12-04 00:04:45 +11:00
|
|
|
|
|
|
|
// Provide access to common datastructures to avoid repeating ourselves
|
|
|
|
pub use adc::Adc;
|
|
|
|
pub use clocks::Clock;
|
|
|
|
pub use i2c::I2C;
|
|
|
|
pub use sio::Sio;
|
|
|
|
pub use spi::Spi;
|
|
|
|
pub use timer::Timer;
|
2021-12-04 15:38:25 +11:00
|
|
|
pub use watchdog::Watchdog;
|