Add rcc_enable_peripheral_clock() et al, and respective prototypes.

This commit is contained in:
Uwe Hermann
2009-07-22 02:56:04 +02:00
parent 97440d8406
commit a5a9648144
2 changed files with 27 additions and 0 deletions

View File

@@ -223,3 +223,14 @@ void rcc_osc_bypass_disable(osc_t osc)
break;
}
}
void rcc_enable_peripheral_clock(volatile u32 *reg, u32 peripheral_en)
{
*reg |= peripheral_en;
}
void rcc_disable_peripheral_clock(volatile u32 *reg, u32 peripheral_en)
{
*reg &= ~peripheral_en;
}