Skip to main content

rp235x_pac/
lib.rs

1//! Peripheral access API for RP2350 microcontrollers
2//!
3//! This top-level `lib.rs` is just a compile-time switch between two blocks of
4//! auto-generated code - one for RISC-V and one for Cortex-M
5
6#![allow(non_camel_case_types)]
7#![allow(non_snake_case)]
8#![allow(clippy::upper_case_acronyms)]
9#![allow(clippy::empty_docs)]
10#![allow(clippy::should_implement_trait)]
11#![allow(clippy::wrong_self_convention)]
12#![no_std]
13
14// Use the Cortex-M version by default
15
16#[cfg(target_arch = "arm")]
17#[doc(hidden)]
18#[path = "inner/mod_cortex_m.rs"]
19mod inner;
20
21// On riscv32*-*-* use the RISC-V version
22
23#[cfg(not(target_arch = "arm"))]
24#[doc(hidden)]
25#[path = "inner/mod_risc_v.rs"]
26mod inner;
27
28pub(crate) use inner::generic::*;
29pub use inner::*;