-
Notifications
You must be signed in to change notification settings - Fork 0
Timer Enumerations
This page contains information about the enumerations used within the Timer peripheral library. Please click on the enumeration that you would like to read about.
typedef enum {
Timer_1,
Timer_2,
Timer_3,
Timer_4,
Timer_5
} Timer_Type;
The timer type parameter is simply used to determine which timer in the microcontroller the library should configure.
typedef enum {
Div_1,
Div_2,
Div_4,
Div_8,
Div_16,
Div_32,
Div_64,
Div_256
} Clock_Divider;
The Clock_Divider
enumeration is a specification of clock dividers to use. This parameter is only used if you are trying to manually override the clock divider and period registers. Please note, if you are modifying the divider of Timer_1
, only Div_1
, Div_8
, Div_64
, and Div_256
are available for use. If you attempt to use another divider, it will be automatically upgraded to the closest available divider. For example, if you attempt to update to Div_2
, the divider will be set to Div_8
instead. This is only true for Timer_1
.
SUBLIBinal was created by the Palouse Robosub Club.