103 return (
LPTIM_ISR(lptimer_peripheral) & flag);
143 LPTIM_CR(lptimer_peripheral) &= ~LPTIM_CR_ENABLE;
161 LPTIM_CR(lptimer_peripheral) |= mode;
171 uint32_t reg32 =
LPTIM_CFGR(lptimer_peripheral);
173 LPTIM_CFGR(lptimer_peripheral) = reg32 | prescaler;
183 uint32_t reg32 =
LPTIM_CFGR(lptimer_peripheral);
185 LPTIM_CFGR(lptimer_peripheral) = reg32 | trigen;
197 uint32_t reg32 =
LPTIM_CFGR(lptimer_peripheral);
199 LPTIM_CFGR(lptimer_peripheral) = reg32 | trigger_source;
211 LPTIM_CMP(lptimer_peripheral) = compare_value;
224 LPTIM_ARR(lptimer_peripheral) = period_value;
248 LPTIM_CFGR(lptimer_peripheral) &= ~LPTIM_CFGR_PRELOAD;
258 LPTIM_CFGR(lptimer_peripheral) &= ~LPTIM_CFGR_CKSEL;
291 LPTIM_CFGR(lptimer_peripheral) &= ~LPTIM_CFGR_WAVPOL;
#define LPTIM_CFGR_PRESC_MASK
#define LPTIM_CFGR_TRIGEN_SHIFT
#define LPTIM_CFGR_TRIGSEL_MASK
#define LPTIM_CFGR_PRESC_SHIFT
#define LPTIM_CFGR_TRIGSEL_SHIFT
#define LPTIM_CFGR_TRIGEN_MASK
#define LPTIM_CFGR_PRELOAD
PRELOAD: Register update mode.
#define LPTIM_CFGR_CKSEL
CKSEL: Select internal (0) or external clock source (1)
#define LPTIM_CFGR_WAVPOL
WAVPOL: Waveform shape polarity.
#define LPTIM_CR_ENABLE
ENABLE: LPTIM Enable.
#define LPTIM_CFGR(tim_base)
#define LPTIM_ICR(tim_base)
#define LPTIM_CR(tim_base)
#define LPTIM_IER(tim_base)
#define LPTIM_ISR(tim_base)
#define LPTIM_CNT(tim_base)
#define LPTIM_CMP(tim_base)
#define LPTIM_ARR(tim_base)
void lptimer_disable_irq(uint32_t lptimer_peripheral, uint32_t irq)
Disable lptimer Interrupts.
void lptimer_set_waveform_polarity_high(uint32_t lptimer_peripheral)
Set lptimer Waveform Output Polarity High.
void lptimer_set_prescaler(uint32_t lptimer_peripheral, uint32_t prescaler)
Set lptimer clock prescaler.
void lptimer_set_waveform_polarity_low(uint32_t lptimer_peripheral)
Set lptimer Waveform Output Polarity Low.
void lptimer_enable_preload(uint32_t lptimer_peripheral)
Enable lptimer Preload mode.
bool lptimer_get_flag(uint32_t lptimer_peripheral, uint32_t flag)
Read lptimer Status Flag.
void lptimer_disable(uint32_t lptimer_peripheral)
Disable lptimer.
void lptimer_set_counter(uint32_t lptimer_peripheral, uint16_t count)
Set lptimer Counter.
void lptimer_set_compare(uint32_t lptimer_peripheral, uint16_t compare_value)
Set lptimer counter Compare Value.
uint16_t lptimer_get_counter(uint32_t lptimer_peripheral)
Read lptimer Counter.
void lptimer_enable_trigger(uint32_t lptimer_peripheral, uint32_t trigen)
Enable lptimer External Trigger.
void lptimer_set_internal_clock_source(uint32_t lptimer_peripheral)
Set lptimer Internal Clock source.
void lptimer_set_external_clock_source(uint32_t lptimer_peripheral)
Set lptimer External Clock source.
void lptimer_disable_preload(uint32_t lptimer_peripheral)
Disable lptimer Preload mode.
void lptimer_set_period(uint32_t lptimer_peripheral, uint16_t period_value)
Set lptimer period.
void lptimer_clear_flag(uint32_t lptimer_peripheral, uint32_t flag)
Clear lptimer Status Flag.
void lptimer_enable(uint32_t lptimer_peripheral)
Enable lptimer.
void lptimer_enable_irq(uint32_t lptimer_peripheral, uint32_t irq)
Enable lptimer interrupts.
void lptimer_select_trigger_source(uint32_t lptimer_peripheral, uint32_t trigger_source)
Select lptimer Trigger Source.
void lptimer_start_counter(uint32_t lptimer_peripheral, uint32_t mode)
Start lptimer in a given mode.