|
libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|

Go to the source code of this file.
Enumerations | |
| enum | cmu_periph_clken { CMU_PCNT0 = _REG_BIT(0x078, 1) , CMU_USBLE = _REG_BIT(0x064, 0) , CMU_LEUART0 = _REG_BIT(0x060, 0) , CMU_RTC = _REG_BIT(0x058, 0) , CMU_I2C0 = _REG_BIT(0x044, 11) , CMU_ADC0 = _REG_BIT(0x044, 10) , CMU_VCMP = _REG_BIT(0x044, 9) , CMU_GPIO = _REG_BIT(0x044, 8) , CMU_IDAC0 = _REG_BIT(0x044, 7) , CMU_PRS = _REG_BIT(0x044, 6) , CMU_ACMP0 = _REG_BIT(0x044, 5) , CMU_USART1 = _REG_BIT(0x044, 4) , CMU_USART0 = _REG_BIT(0x044, 3) , CMU_TIMER2 = _REG_BIT(0x044, 2) , CMU_TIMER1 = _REG_BIT(0x044, 1) , CMU_TIMER0 = _REG_BIT(0x044, 0) , CMU_USB = _REG_BIT(0x040, 4) , CMU_USBC = _REG_BIT(0x040, 3) , CMU_LE = _REG_BIT(0x040, 2) , CMU_DMA = _REG_BIT(0x040, 1) } |
| enum | cmu_osc { HFRCO , LFRCO , HFXO , LFXO , AUXHFRCO , USHFRCO , USHFRCODIV2 } |
Functions | |
| void | cmu_enable_lock (void) |
| Enable CMU registers lock. More... | |
| void | cmu_disable_lock (void) |
| Disable CMU registers lock. More... | |
| bool | cmu_get_lock_flag (void) |
| Get CMU register lock flag. More... | |
| void | cmu_periph_clock_enable (enum cmu_periph_clken periph) |
| Enable Peripheral Clock in running mode. More... | |
| void | cmu_periph_clock_disable (enum cmu_periph_clken periph) |
| Disable Peripheral Clock in running mode. More... | |
| void | cmu_osc_on (enum cmu_osc osc) |
| Turn on Oscillator. More... | |
| void | cmu_osc_off (enum cmu_osc osc) |
| Turn off Oscillator. More... | |
| bool | cmu_osc_ready_flag (enum cmu_osc osc) |
| Get Oscillator read flag. More... | |
| void | cmu_wait_for_osc_ready (enum cmu_osc osc) |
| Wait while oscillator is not ready. More... | |
| void | cmu_set_hfclk_source (enum cmu_osc osc) |
| Set HFCLK clock source. More... | |
| enum cmu_osc | cmu_get_hfclk_source (void) |
| Get HFCLK clock source. More... | |
| void | cmu_set_usbclk_source (enum cmu_osc osc) |
| Set USBCLK clock source. More... | |
| void | cmu_wait_for_usbclk_selected (enum cmu_osc osc) |
| Wait while USBCLK is not selected. More... | |