STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
|
Macros | |
#define | MCU_APB1_DIV_OFFSET 12u |
#define | MCU_APB1_DIV_MASK 0x7000u |
#define | MCU_APB1_DIV1 ( 3UL << MCU_APB1_DIV_OFFSET ) |
#define | MCU_APB1_DIV2 ( 4UL << MCU_APB1_DIV_OFFSET ) |
#define | MCU_APB1_DIV4 ( 5UL << MCU_APB1_DIV_OFFSET ) |
#define | MCU_APB1_DIV8 ( 6UL << MCU_APB1_DIV_OFFSET ) |
#define | MCU_APB1_DIV16 ( 7UL << MCU_APB1_DIV_OFFSET ) |
#define MCU_APB1_DIV1 ( 3UL << MCU_APB1_DIV_OFFSET ) |
APB1 Clock not divided
#define MCU_APB1_DIV16 ( 7UL << MCU_APB1_DIV_OFFSET ) |
APB1 Clock divided by 16
#define MCU_APB1_DIV2 ( 4UL << MCU_APB1_DIV_OFFSET ) |
APB1 Clock divided by 2
#define MCU_APB1_DIV4 ( 5UL << MCU_APB1_DIV_OFFSET ) |
APB1 Clock divided by 4
#define MCU_APB1_DIV8 ( 6UL << MCU_APB1_DIV_OFFSET ) |
APB1 Clock divided by 8
#define MCU_APB1_DIV_MASK 0x7000u |
Mask for APB1 div
#define MCU_APB1_DIV_OFFSET 12u |
Bit where starts APB1 div