mikroSDK Reference Manual
|
Macros | |
#define | OSC_BASE (0x40065000u) |
#define | OSC ((OSC_Type *)OSC_BASE) |
#define | OSC_BASE_ADDRS { OSC_BASE } |
#define | OSC_BASE_PTRS { OSC } |
CR - OSC Control Register | |
#define | OSC_CR_SC16P_MASK (0x1U) |
#define | OSC_CR_SC16P_SHIFT (0U) |
#define | OSC_CR_SC16P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
#define | OSC_CR_SC8P_MASK (0x2U) |
#define | OSC_CR_SC8P_SHIFT (1U) |
#define | OSC_CR_SC8P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
#define | OSC_CR_SC4P_MASK (0x4U) |
#define | OSC_CR_SC4P_SHIFT (2U) |
#define | OSC_CR_SC4P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
#define | OSC_CR_SC2P_MASK (0x8U) |
#define | OSC_CR_SC2P_SHIFT (3U) |
#define | OSC_CR_SC2P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
#define | OSC_CR_EREFSTEN_MASK (0x20U) |
#define | OSC_CR_EREFSTEN_SHIFT (5U) |
#define | OSC_CR_EREFSTEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
#define | OSC_CR_ERCLKEN_MASK (0x80U) |
#define | OSC_CR_ERCLKEN_SHIFT (7U) |
#define | OSC_CR_ERCLKEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
#define | OSC_CR_SC16P_MASK 0x1u |
#define | OSC_CR_SC16P_SHIFT 0 |
#define | OSC_CR_SC8P_MASK 0x2u |
#define | OSC_CR_SC8P_SHIFT 1 |
#define | OSC_CR_SC4P_MASK 0x4u |
#define | OSC_CR_SC4P_SHIFT 2 |
#define | OSC_CR_SC2P_MASK 0x8u |
#define | OSC_CR_SC2P_SHIFT 3 |
#define | OSC_CR_EREFSTEN_MASK 0x20u |
#define | OSC_CR_EREFSTEN_SHIFT 5 |
#define | OSC_CR_ERCLKEN_MASK 0x80u |
#define | OSC_CR_ERCLKEN_SHIFT 7 |
#define | OSC_CR_SC16P_MASK (0x1U) |
#define | OSC_CR_SC16P_SHIFT (0U) |
#define | OSC_CR_SC16P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
#define | OSC_CR_SC8P_MASK (0x2U) |
#define | OSC_CR_SC8P_SHIFT (1U) |
#define | OSC_CR_SC8P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
#define | OSC_CR_SC4P_MASK (0x4U) |
#define | OSC_CR_SC4P_SHIFT (2U) |
#define | OSC_CR_SC4P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
#define | OSC_CR_SC2P_MASK (0x8U) |
#define | OSC_CR_SC2P_SHIFT (3U) |
#define | OSC_CR_SC2P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
#define | OSC_CR_EREFSTEN_MASK (0x20U) |
#define | OSC_CR_EREFSTEN_SHIFT (5U) |
#define | OSC_CR_EREFSTEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
#define | OSC_CR_ERCLKEN_MASK (0x80U) |
#define | OSC_CR_ERCLKEN_SHIFT (7U) |
#define | OSC_CR_ERCLKEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
#define | OSC_CR_SC16P_MASK (0x1U) |
#define | OSC_CR_SC16P_SHIFT (0U) |
#define | OSC_CR_SC16P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
#define | OSC_CR_SC8P_MASK (0x2U) |
#define | OSC_CR_SC8P_SHIFT (1U) |
#define | OSC_CR_SC8P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
#define | OSC_CR_SC4P_MASK (0x4U) |
#define | OSC_CR_SC4P_SHIFT (2U) |
#define | OSC_CR_SC4P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
#define | OSC_CR_SC2P_MASK (0x8U) |
#define | OSC_CR_SC2P_SHIFT (3U) |
#define | OSC_CR_SC2P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
#define | OSC_CR_EREFSTEN_MASK (0x20U) |
#define | OSC_CR_EREFSTEN_SHIFT (5U) |
#define | OSC_CR_EREFSTEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
#define | OSC_CR_ERCLKEN_MASK (0x80U) |
#define | OSC_CR_ERCLKEN_SHIFT (7U) |
#define | OSC_CR_ERCLKEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
#define | OSC_CR_SC16P_MASK (0x1U) |
#define | OSC_CR_SC16P_SHIFT (0U) |
#define | OSC_CR_SC16P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
#define | OSC_CR_SC8P_MASK (0x2U) |
#define | OSC_CR_SC8P_SHIFT (1U) |
#define | OSC_CR_SC8P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
#define | OSC_CR_SC4P_MASK (0x4U) |
#define | OSC_CR_SC4P_SHIFT (2U) |
#define | OSC_CR_SC4P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
#define | OSC_CR_SC2P_MASK (0x8U) |
#define | OSC_CR_SC2P_SHIFT (3U) |
#define | OSC_CR_SC2P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
#define | OSC_CR_EREFSTEN_MASK (0x20U) |
#define | OSC_CR_EREFSTEN_SHIFT (5U) |
#define | OSC_CR_EREFSTEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
#define | OSC_CR_ERCLKEN_MASK (0x80U) |
#define | OSC_CR_ERCLKEN_SHIFT (7U) |
#define | OSC_CR_ERCLKEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
#define | OSC_CR_SC16P_MASK (0x1U) |
#define | OSC_CR_SC16P_SHIFT (0U) |
#define | OSC_CR_SC16P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
#define | OSC_CR_SC8P_MASK (0x2U) |
#define | OSC_CR_SC8P_SHIFT (1U) |
#define | OSC_CR_SC8P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
#define | OSC_CR_SC4P_MASK (0x4U) |
#define | OSC_CR_SC4P_SHIFT (2U) |
#define | OSC_CR_SC4P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
#define | OSC_CR_SC2P_MASK (0x8U) |
#define | OSC_CR_SC2P_SHIFT (3U) |
#define | OSC_CR_SC2P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
#define | OSC_CR_EREFSTEN_MASK (0x20U) |
#define | OSC_CR_EREFSTEN_SHIFT (5U) |
#define | OSC_CR_EREFSTEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
#define | OSC_CR_ERCLKEN_MASK (0x80U) |
#define | OSC_CR_ERCLKEN_SHIFT (7U) |
#define | OSC_CR_ERCLKEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
DIV - OSC_DIV | |
#define | OSC_DIV_ERPS_MASK (0xC0U) |
#define | OSC_DIV_ERPS_SHIFT (6U) |
#define | OSC_DIV_ERPS(x) (((uint8_t)(((uint8_t)(x)) << OSC_DIV_ERPS_SHIFT)) & OSC_DIV_ERPS_MASK) |
#define | OSC_DIV_ERPS_MASK (0xC0U) |
#define | OSC_DIV_ERPS_SHIFT (6U) |
#define | OSC_DIV_ERPS(x) (((uint8_t)(((uint8_t)(x)) << OSC_DIV_ERPS_SHIFT)) & OSC_DIV_ERPS_MASK) |
#define | OSC_DIV_ERPS_MASK (0xC0U) |
#define | OSC_DIV_ERPS_SHIFT (6U) |
#define | OSC_DIV_ERPS(x) (((uint8_t)(((uint8_t)(x)) << OSC_DIV_ERPS_SHIFT)) & OSC_DIV_ERPS_MASK) |
#define OSC_BASE (0x40065000u) |
Peripheral OSC base address
#define OSC_BASE_ADDRS { OSC_BASE } |
Array initializer of OSC peripheral base addresses
#define OSC_BASE_PTRS { OSC } |
Array initializer of OSC peripheral base pointers
#define OSC_CR_ERCLKEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
ERCLKEN - External Reference Enable 0b0..External reference clock is inactive. 0b1..External reference clock is enabled.
#define OSC_CR_ERCLKEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
ERCLKEN - External Reference Enable 0b0..External reference clock is inactive. 0b1..External reference clock is enabled.
#define OSC_CR_ERCLKEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
ERCLKEN - External Reference Enable 0b0..External reference clock is inactive. 0b1..External reference clock is enabled.
#define OSC_CR_ERCLKEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
ERCLKEN - External Reference Enable 0b0..External reference clock is inactive. 0b1..External reference clock is enabled.
#define OSC_CR_ERCLKEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
ERCLKEN - External Reference Enable 0b0..External reference clock is inactive. 0b1..External reference clock is enabled.
#define OSC_CR_EREFSTEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
EREFSTEN - External Reference Stop Enable 0b0..External reference clock is disabled in Stop mode. 0b1..External reference clock stays enabled in Stop mode if ERCLKEN is set before entering Stop mode.
#define OSC_CR_EREFSTEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
EREFSTEN - External Reference Stop Enable 0b0..External reference clock is disabled in Stop mode. 0b1..External reference clock stays enabled in Stop mode if ERCLKEN is set before entering Stop mode.
#define OSC_CR_EREFSTEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
EREFSTEN - External Reference Stop Enable 0b0..External reference clock is disabled in Stop mode. 0b1..External reference clock stays enabled in Stop mode if ERCLKEN is set before entering Stop mode.
#define OSC_CR_EREFSTEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
EREFSTEN - External Reference Stop Enable 0b0..External reference clock is disabled in Stop mode. 0b1..External reference clock stays enabled in Stop mode if ERCLKEN is set before entering Stop mode.
#define OSC_CR_EREFSTEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
EREFSTEN - External Reference Stop Enable 0b0..External reference clock is disabled in Stop mode. 0b1..External reference clock stays enabled in Stop mode if ERCLKEN is set before entering Stop mode.
#define OSC_CR_SC16P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
SC16P - Oscillator 16 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 16 pF capacitor to the oscillator load.
#define OSC_CR_SC16P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
SC16P - Oscillator 16 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 16 pF capacitor to the oscillator load.
#define OSC_CR_SC16P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
SC16P - Oscillator 16 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 16 pF capacitor to the oscillator load.
#define OSC_CR_SC16P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
SC16P - Oscillator 16 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 16 pF capacitor to the oscillator load.
#define OSC_CR_SC16P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
SC16P - Oscillator 16 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 16 pF capacitor to the oscillator load.
#define OSC_CR_SC2P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
SC2P - Oscillator 2 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 2 pF capacitor to the oscillator load.
#define OSC_CR_SC2P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
SC2P - Oscillator 2 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 2 pF capacitor to the oscillator load.
#define OSC_CR_SC2P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
SC2P - Oscillator 2 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 2 pF capacitor to the oscillator load.
#define OSC_CR_SC2P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
SC2P - Oscillator 2 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 2 pF capacitor to the oscillator load.
#define OSC_CR_SC2P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
SC2P - Oscillator 2 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 2 pF capacitor to the oscillator load.
#define OSC_CR_SC4P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
SC4P - Oscillator 4 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 4 pF capacitor to the oscillator load.
#define OSC_CR_SC4P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
SC4P - Oscillator 4 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 4 pF capacitor to the oscillator load.
#define OSC_CR_SC4P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
SC4P - Oscillator 4 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 4 pF capacitor to the oscillator load.
#define OSC_CR_SC4P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
SC4P - Oscillator 4 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 4 pF capacitor to the oscillator load.
#define OSC_CR_SC4P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
SC4P - Oscillator 4 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 4 pF capacitor to the oscillator load.
#define OSC_CR_SC8P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
SC8P - Oscillator 8 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 8 pF capacitor to the oscillator load.
#define OSC_CR_SC8P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
SC8P - Oscillator 8 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 8 pF capacitor to the oscillator load.
#define OSC_CR_SC8P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
SC8P - Oscillator 8 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 8 pF capacitor to the oscillator load.
#define OSC_CR_SC8P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
SC8P - Oscillator 8 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 8 pF capacitor to the oscillator load.
#define OSC_CR_SC8P | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
SC8P - Oscillator 8 pF Capacitor Load Configure 0b0..Disable the selection. 0b1..Add 8 pF capacitor to the oscillator load.
#define OSC_DIV_ERPS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_DIV_ERPS_SHIFT)) & OSC_DIV_ERPS_MASK) |
ERPS 0b00..The divisor ratio is 1. 0b01..The divisor ratio is 2. 0b10..The divisor ratio is 4. 0b11..The divisor ratio is 8.
#define OSC_DIV_ERPS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_DIV_ERPS_SHIFT)) & OSC_DIV_ERPS_MASK) |
ERPS 0b00..The divisor ratio is 1. 0b01..The divisor ratio is 2. 0b10..The divisor ratio is 4. 0b11..The divisor ratio is 8.
#define OSC_DIV_ERPS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << OSC_DIV_ERPS_SHIFT)) & OSC_DIV_ERPS_MASK) |
ERPS 0b00..The divisor ratio is 1. 0b01..The divisor ratio is 2. 0b10..The divisor ratio is 4. 0b11..The divisor ratio is 8.