GlobLib
HAL and API libraries for MCUs and hardware.
stm32f103cb_clock.h
Go to the documentation of this file.
1 #ifndef STM32F103CB_CLOCK_H_
2 #define STM32F103CB_CLOCK_H_
3 
43 #include "stm32f103cb_gpio.h"
44 #include "stm32f103cb_debug.h"
45 #include <libopencm3/stm32/rcc.h>
46 #include <stdint.h>
47 
54 typedef enum{
55 
61 
63 
64 
79 uint32_t CLOCK_getSpeed(void);
86 uint32_t CLOCK_getSpeedAlternate(void);
89 #endif
External 8MHz oscillator, multiplied to 24MHz final.
External 8MHz oscillator, multiplied to 72MHz final.
Header file for stm32f103cb DEBUG.
Header file for stm32f103 GPIO.
clock_option
Clock configuration available for MCU.
uint32_t CLOCK_getSpeed(void)
Get the current clock speed of the device.
Internal oscillator, multiplied to 48MHz final.
Internal oscillator, multiplied to 64MHz final.
uint32_t CLOCK_getSpeedAlternate(void)
Get the current clock speed of the alternate bus.
Internal oscillator, multiplied to 24MHz final.
mcu_error CLOCK_setSpeed(clock_option option)
Set the final clock speed of the device.
mcu_error
Error enumerators for the Debug peripheral.