1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! HAL wrappers around raw PAC peripherals.
//!
//! The APIs presented only implement basic functionality.
//! For more complex things, consult `hal::drivers`.
//!
//! In an RTIC setup, RTIC owns Peripherals and CorePeripherals,
//! so here use
//! ```
//! use lpc55_hal as hal;
//!
//! let syscon = hal::Syscon::from(device::SYSCON);
//! ```
//!
//! In a non-RTIC setup, to use a fully HAL-driven approach:
//! ```
//! use lpc55_hal as hal;
//!
//! let hal = hal::new()
//! let syscon = hal.syscon;
//! ```