summaryrefslogtreecommitdiff
path: root/ucoo/arch/rcc.stm32f1.hh
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/arch/rcc.stm32f1.hh')
-rw-r--r--ucoo/arch/rcc.stm32f1.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucoo/arch/rcc.stm32f1.hh b/ucoo/arch/rcc.stm32f1.hh
index 3896752..6a2d574 100644
--- a/ucoo/arch/rcc.stm32f1.hh
+++ b/ucoo/arch/rcc.stm32f1.hh
@@ -96,7 +96,7 @@ rcc_peripheral_clock_enable (Rcc rcc)
int bus_index = static_cast<uint32_t> (rcc) >> 5;
int bit_index = static_cast<uint32_t> (rcc) & 0x1f;
(&reg::RCC->AHBENR)[bus_index] |= 1 << bit_index;
- arch_dsb ();
+ (&reg::RCC->AHBENR)[bus_index];
}
/// Disable clock for given peripheral.
@@ -106,7 +106,7 @@ rcc_peripheral_clock_disable (Rcc rcc)
int bus_index = static_cast<uint32_t> (rcc) >> 5;
int bit_index = static_cast<uint32_t> (rcc) & 0x1f;
(&reg::RCC->AHBENR)[bus_index] &= ~(1 << bit_index);
- arch_dsb ();
+ (&reg::RCC->AHBENR)[bus_index];
}
/// Frequency of the main system clock.