aboutsummaryrefslogtreecommitdiff
path: root/src/clocks/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/clocks/mod.rs')
-rw-r--r--src/clocks/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/clocks/mod.rs b/src/clocks/mod.rs
index 9c9e6ef3d..ac30115f6 100644
--- a/src/clocks/mod.rs
+++ b/src/clocks/mod.rs
@@ -399,6 +399,10 @@ pub unsafe fn assert_reset<G: Gate>() {
399} 399}
400 400
401/// Check whether the peripheral is held in reset. 401/// Check whether the peripheral is held in reset.
402///
403/// # Safety
404///
405/// Must be called with a valid peripheral gate type.
402#[inline] 406#[inline]
403pub unsafe fn is_reset_released<G: Gate>() -> bool { 407pub unsafe fn is_reset_released<G: Gate>() -> bool {
404 G::is_reset_released() 408 G::is_reset_released()
@@ -940,4 +944,7 @@ pub(crate) mod gate {
940 impl_cc_gate!(LPUART4, mrcc_glb_cc0, mrcc_glb_rst0, lpuart4, LpuartConfig); 944 impl_cc_gate!(LPUART4, mrcc_glb_cc0, mrcc_glb_rst0, lpuart4, LpuartConfig);
941 impl_cc_gate!(LPUART5, mrcc_glb_cc1, mrcc_glb_rst1, lpuart5, LpuartConfig); 945 impl_cc_gate!(LPUART5, mrcc_glb_cc1, mrcc_glb_rst1, lpuart5, LpuartConfig);
942 impl_cc_gate!(ADC1, mrcc_glb_cc1, mrcc_glb_rst1, adc1, AdcConfig); 946 impl_cc_gate!(ADC1, mrcc_glb_cc1, mrcc_glb_rst1, adc1, AdcConfig);
947
948 // DMA0 peripheral - uses NoConfig since it has no selectable clock source
949 impl_cc_gate!(DMA0, mrcc_glb_cc0, mrcc_glb_rst0, dma0, NoConfig);
943} 950}