English
Language : 

UM0097 Datasheet, PDF (104/229 Pages) STMicroelectronics – STR71x firmware library
Peripheral firmware overview
UM0097
Clock sources enumeration
The following enumeration defines the different TIM clock sources. The TIM_Clocks
enumeration is defined in the file 71x_tim.h:
typedef enum
{
TIM_EXTERNAL,
TIM_INTERNAL
} TIM_Clocks;
Table 48 enumerates the clock sources.
Table 48. TIM clock sources
Clock Source
Description
TIM_EXTERNAL
TIM_INTERNAL
The TIM peripheral is clocked by the external clock
The TIM peripheral is clocked by APB clock
Clock edges enumeration
The following enumeration defines the different TIM clock edges. The TIM_Clock_Edges
enumeration is defined in the file 71x_tim.h:
typedef enum
{
TIM_RISING,
TIM_FALLING
} TIM_Clock_Edges;
Table 49 enumerates the clock edges.
Table 49. TIM clock edges
clock Edge
Description
TIM_RISING
TIM_FALLING
The active edge is the rising edge
The active edge is the falling edge
TIM channels enumeration
The following enumeration defines the different TIM channels. The TIM_Channels
enumeration is defined in the file 71x_tim.h:
typedef enum
{
TIM_CHANNEL_A,
TIM_CHANNEL_B
} TIM_Channels;
Table 50 enumerates the TIM channels.
Table 50. TIM channels
TIM Channel
Description
TIM_CHANNEL_A
Channel A
TIM_CHANNEL_B
Channel B
104/229