diff options
Diffstat (limited to 'src/clocks/mod.rs')
| -rw-r--r-- | src/clocks/mod.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/clocks/mod.rs b/src/clocks/mod.rs index cd6318c4b..9c9e6ef3d 100644 --- a/src/clocks/mod.rs +++ b/src/clocks/mod.rs | |||
| @@ -553,7 +553,7 @@ impl Clocks { | |||
| 553 | return Err(ClockError::BadConfig { | 553 | return Err(ClockError::BadConfig { |
| 554 | clock: "main_clk", | 554 | clock: "main_clk", |
| 555 | reason: "not low power active", | 555 | reason: "not low power active", |
| 556 | }) | 556 | }); |
| 557 | } | 557 | } |
| 558 | } | 558 | } |
| 559 | 559 | ||
| @@ -904,7 +904,7 @@ macro_rules! impl_cc_gate { | |||
| 904 | pub(crate) mod gate { | 904 | pub(crate) mod gate { |
| 905 | #[cfg(not(feature = "time"))] | 905 | #[cfg(not(feature = "time"))] |
| 906 | use super::periph_helpers::OsTimerConfig; | 906 | use super::periph_helpers::OsTimerConfig; |
| 907 | use super::periph_helpers::{AdcConfig, LpuartConfig, NoConfig}; | 907 | use super::periph_helpers::{AdcConfig, Lpi2cConfig, LpuartConfig, NoConfig}; |
| 908 | use super::*; | 908 | use super::*; |
| 909 | 909 | ||
| 910 | // These peripherals have no additional upstream clocks or configuration required | 910 | // These peripherals have no additional upstream clocks or configuration required |
| @@ -928,6 +928,11 @@ pub(crate) mod gate { | |||
| 928 | #[cfg(not(feature = "time"))] | 928 | #[cfg(not(feature = "time"))] |
| 929 | impl_cc_gate!(OSTIMER0, mrcc_glb_cc1, mrcc_glb_rst1, ostimer0, OsTimerConfig); | 929 | impl_cc_gate!(OSTIMER0, mrcc_glb_cc1, mrcc_glb_rst1, ostimer0, OsTimerConfig); |
| 930 | 930 | ||
| 931 | impl_cc_gate!(LPI2C0, mrcc_glb_cc0, mrcc_glb_rst0, lpi2c0, Lpi2cConfig); | ||
| 932 | impl_cc_gate!(LPI2C1, mrcc_glb_cc0, mrcc_glb_rst0, lpi2c1, Lpi2cConfig); | ||
| 933 | impl_cc_gate!(LPI2C2, mrcc_glb_cc1, mrcc_glb_rst1, lpi2c2, Lpi2cConfig); | ||
| 934 | impl_cc_gate!(LPI2C3, mrcc_glb_cc1, mrcc_glb_rst1, lpi2c3, Lpi2cConfig); | ||
| 935 | |||
| 931 | impl_cc_gate!(LPUART0, mrcc_glb_cc0, mrcc_glb_rst0, lpuart0, LpuartConfig); | 936 | impl_cc_gate!(LPUART0, mrcc_glb_cc0, mrcc_glb_rst0, lpuart0, LpuartConfig); |
| 932 | impl_cc_gate!(LPUART1, mrcc_glb_cc0, mrcc_glb_rst0, lpuart1, LpuartConfig); | 937 | impl_cc_gate!(LPUART1, mrcc_glb_cc0, mrcc_glb_rst0, lpuart1, LpuartConfig); |
| 933 | impl_cc_gate!(LPUART2, mrcc_glb_cc0, mrcc_glb_rst0, lpuart2, LpuartConfig); | 938 | impl_cc_gate!(LPUART2, mrcc_glb_cc0, mrcc_glb_rst0, lpuart2, LpuartConfig); |
