summaryrefslogtreecommitdiff
path: root/ucoo
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo')
-rw-r--r--ucoo/arch/rcc.stm32f1.hh4
-rw-r--r--ucoo/arch/rcc.stm32f4.hh4
2 files changed, 4 insertions, 4 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.
diff --git a/ucoo/arch/rcc.stm32f4.hh b/ucoo/arch/rcc.stm32f4.hh
index 64c46b5..9e49277 100644
--- a/ucoo/arch/rcc.stm32f4.hh
+++ b/ucoo/arch/rcc.stm32f4.hh
@@ -146,7 +146,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->AHB1ENR)[bus_index] |= 1 << bit_index;
- arch_dsb ();
+ (&reg::RCC->AHB1ENR)[bus_index];
}
/// Disable clock for given peripheral.
@@ -156,7 +156,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->AHB1ENR)[bus_index] &= ~(1 << bit_index);
- arch_dsb ();
+ (&reg::RCC->AHB1ENR)[bus_index];
}
/// Frequency of the main system clock.