libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
Collaboration diagram for Timer Select:

Modules

 Timer Registers
 

Macros

#define TIMER_SE0   TIMER_SE0_BASE
 
#define TIMER_SE1   TIMER_SE1_BASE
 
#define TIMER_DIV_MASK   (0x3F << 16)
 Timer Clock Divider Mask. More...
 

Enumerations

enum  timer_level { TIMER_LEVEL_LOW , TIMER_LEVEL_HIGH }
 Timer Level. More...
 
enum  timer_edge_modes { TIMER_EDGE_RISING , TIMER_EDGE_FALLING }
 Timer Edge Modes. More...
 
enum  timer_operation_modes { TIMER_MODE_COUNTER , TIMER_MODE_PWM , TIMER_MODE_PULSE_CAPTURE , TIMER_MODE_DUTY_CYCLE_CAPTURE }
 Timer Operation Modes. More...
 
enum  timer_clk_src { TIMER_CLK_INTERNAL , TIMER_CLK_EXTERNAL }
 Timer Clock Source. More...
 
enum  timer_int_masked { TIMER_UNMASKED , TIMER_MASKED }
 Timer Interrupt Mask. More...
 
enum  timer_loop_modes { TIMER_LOOP_MODE , TIMER_SINGLE_MODE }
 Timer Loop Modes. More...
 
enum  timer_output_modes { TIMER_OUTPUT_NONE , TIMER_OUTPUT_INVERT , TIMER_OUTPUT_HIGH , TIMER_OUTPUT_LOW }
 Timer Output Modes. More...
 
enum  timer_pwm_period { TIMER_PERIOD_0 , TIMER_PERIOD_1 }
 Timer PWM Periods. More...
 

Detailed Description

Macro Definition Documentation

◆ TIMER_DIV_MASK

#define TIMER_DIV_MASK   (0x3F << 16)

Timer Clock Divider Mask.

Definition at line 94 of file timer.h.

◆ TIMER_SE0

#define TIMER_SE0   TIMER_SE0_BASE

Definition at line 35 of file timer.h.

◆ TIMER_SE1

#define TIMER_SE1   TIMER_SE1_BASE

Definition at line 36 of file timer.h.

Enumeration Type Documentation

◆ timer_clk_src

Timer Clock Source.

Enumerator
TIMER_CLK_INTERNAL 
TIMER_CLK_EXTERNAL 

Definition at line 62 of file timer.h.

◆ timer_edge_modes

Timer Edge Modes.

Enumerator
TIMER_EDGE_RISING 

Trigger on rising edge.

TIMER_EDGE_FALLING 

Trigger on falling edge.

Definition at line 46 of file timer.h.

◆ timer_int_masked

Timer Interrupt Mask.

Enumerator
TIMER_UNMASKED 
TIMER_MASKED 

Definition at line 68 of file timer.h.

◆ timer_level

Timer Level.

Enumerator
TIMER_LEVEL_LOW 
TIMER_LEVEL_HIGH 

Definition at line 40 of file timer.h.

◆ timer_loop_modes

Timer Loop Modes.

Enumerator
TIMER_LOOP_MODE 
TIMER_SINGLE_MODE 

Definition at line 74 of file timer.h.

◆ timer_operation_modes

Timer Operation Modes.

Enumerator
TIMER_MODE_COUNTER 
TIMER_MODE_PWM 
TIMER_MODE_PULSE_CAPTURE 
TIMER_MODE_DUTY_CYCLE_CAPTURE 

Definition at line 54 of file timer.h.

◆ timer_output_modes

Timer Output Modes.

Enumerator
TIMER_OUTPUT_NONE 
TIMER_OUTPUT_INVERT 
TIMER_OUTPUT_HIGH 
TIMER_OUTPUT_LOW 

Definition at line 80 of file timer.h.

◆ timer_pwm_period

Timer PWM Periods.

Enumerator
TIMER_PERIOD_0 
TIMER_PERIOD_1 

Definition at line 88 of file timer.h.