Skip to content

Commit de11a77

Browse files
committed
Make init functions run for LPC55S16.
The dma, pint, and gpio initialization as implemented for lpc55-core0 is also applicable to LPC55S16. As a result, we should run the init for all lpc55 family chips.
1 parent 3e0bc04 commit de11a77

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

embassy-nxp/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ pub fn init(_config: config::Config) -> Peripherals {
154154
pac::CCM.ccgr6().modify(|v| v.set_cg0(1));
155155
}
156156

157-
#[cfg(any(feature = "lpc55-core0", rt1xxx))]
157+
#[cfg(any(lpc55, rt1xxx))]
158158
gpio::init();
159159

160-
#[cfg(feature = "lpc55-core0")]
160+
#[cfg(lpc55)]
161161
{
162162
pint::init();
163163
pwm::Pwm::reset();
@@ -166,7 +166,7 @@ pub fn init(_config: config::Config) -> Peripherals {
166166
#[cfg(feature = "_time_driver")]
167167
time_driver::init();
168168

169-
#[cfg(feature = "lpc55-core0")]
169+
#[cfg(lpc55)]
170170
dma::init();
171171

172172
peripherals

0 commit comments

Comments
 (0)