[stm32f4] Remove rcc typedefs added prefixes to clock related enums.

Let's not hide the fact that these variables are structs/enums.

We are filling up the namespace badly enough, we should be prefixing as
much as we can with the module names at least. As users we already run
often enough in namespace colisions we don't have to make it worse.

* CLOCK_3V3_xxx enums renamed to RCC_CLOCK_3V3_xxx
* clock enums (PLL, HSI, HSE ...) prefixed with RCC_
* scale enum of pwr module prefixed with PWR_
This commit is contained in:
Piotr Esden-Tempski
2015-02-25 18:12:12 -08:00
parent b1049f9a6f
commit d680be81b5
4 changed files with 90 additions and 90 deletions

View File

@@ -36,11 +36,11 @@
#include <libopencm3/stm32/pwr.h>
void pwr_set_vos_scale(vos_scale_t scale)
void pwr_set_vos_scale(enum pwr_vos_scale scale)
{
if (scale == SCALE1) {
if (scale == PWR_SCALE1) {
PWR_CR |= PWR_CR_VOS;
} else if (scale == SCALE2) {
} else if (scale == PWR_SCALE2) {
PWR_CR &= PWR_CR_VOS;
}
}