libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
lptimer_common_all.c File Reference
Include dependency graph for lptimer_common_all.c:

Go to the source code of this file.

Functions

void lptimer_set_counter (uint32_t lptimer_peripheral, uint16_t count)
 Set lptimer Counter. More...
 
uint16_t lptimer_get_counter (uint32_t lptimer_peripheral)
 Read lptimer Counter. More...
 
void lptimer_clear_flag (uint32_t lptimer_peripheral, uint32_t flag)
 Clear lptimer Status Flag. More...
 
bool lptimer_get_flag (uint32_t lptimer_peripheral, uint32_t flag)
 Read lptimer Status Flag. More...
 
void lptimer_enable_irq (uint32_t lptimer_peripheral, uint32_t irq)
 Enable lptimer interrupts. More...
 
void lptimer_disable_irq (uint32_t lptimer_peripheral, uint32_t irq)
 Disable lptimer Interrupts. More...
 
void lptimer_enable (uint32_t lptimer_peripheral)
 Enable lptimer. More...
 
void lptimer_disable (uint32_t lptimer_peripheral)
 Disable lptimer. More...
 
void lptimer_start_counter (uint32_t lptimer_peripheral, uint32_t mode)
 Start lptimer in a given mode. More...
 
void lptimer_set_prescaler (uint32_t lptimer_peripheral, uint32_t prescaler)
 Set lptimer clock prescaler. More...
 
void lptimer_enable_trigger (uint32_t lptimer_peripheral, uint32_t trigen)
 Enable lptimer External Trigger. More...
 
void lptimer_select_trigger_source (uint32_t lptimer_peripheral, uint32_t trigger_source)
 Select lptimer Trigger Source. More...
 
void lptimer_set_compare (uint32_t lptimer_peripheral, uint16_t compare_value)
 Set lptimer counter Compare Value. More...
 
void lptimer_set_period (uint32_t lptimer_peripheral, uint16_t period_value)
 Set lptimer period. More...
 
void lptimer_enable_preload (uint32_t lptimer_peripheral)
 Enable lptimer Preload mode. More...
 
void lptimer_disable_preload (uint32_t lptimer_peripheral)
 Disable lptimer Preload mode. More...
 
void lptimer_set_internal_clock_source (uint32_t lptimer_peripheral)
 Set lptimer Internal Clock source. More...
 
void lptimer_set_external_clock_source (uint32_t lptimer_peripheral)
 Set lptimer External Clock source. More...
 
void lptimer_set_waveform_polarity_high (uint32_t lptimer_peripheral)
 Set lptimer Waveform Output Polarity High. More...
 
void lptimer_set_waveform_polarity_low (uint32_t lptimer_peripheral)
 Set lptimer Waveform Output Polarity Low. More...