54 #include <ti/devices/msp432p4xx/inc/msp.h>
61 #define TIMER32_CMSIS(x) ((Timer32_Type *) x)
63 #define TIMER_OFFSET 0x020
65 #define TIMER32_0_BASE (uint32_t)TIMER32_1
66 #define TIMER32_1_BASE (uint32_t)TIMER32_2
68 #define TIMER32_0_INTERRUPT INT_T32_INT1
69 #define TIMER32_1_INTERRUPT INT_T32_INT2
70 #define TIMER32_COMBINED_INTERRUPT INT_T32_INTC
72 #define TIMER32_16BIT 0x00
73 #define TIMER32_32BIT 0x01
75 #define TIMER32_PRESCALER_1 0x00
76 #define TIMER32_PRESCALER_16 0x04
77 #define TIMER32_PRESCALER_256 0x08
79 #define TIMER32_FREE_RUN_MODE 0x00
80 #define TIMER32_PERIODIC_MODE 0x01
120 uint32_t resolution, uint32_t mode);
314 void (*intHandler)(
void));
void Timer32_clearInterruptFlag(uint32_t timer)
Definition: timer32.c:124
void Timer32_setCountInBackground(uint32_t timer, uint32_t count)
Definition: timer32.c:79
void Timer32_setCount(uint32_t timer, uint32_t count)
Definition: timer32.c:70
uint32_t Timer32_getValue(uint32_t timer)
Definition: timer32.c:88
void Timer32_initModule(uint32_t timer, uint32_t preScaler, uint32_t resolution, uint32_t mode)
Definition: timer32.c:36
void Timer32_haltTimer(uint32_t timer)
Definition: timer32.c:107
void Timer32_startTimer(uint32_t timer, bool oneShot)
Definition: timer32.c:93
void Timer32_disableInterrupt(uint32_t timer)
Definition: timer32.c:119
uint32_t Timer32_getInterruptStatus(uint32_t timer)
Definition: timer32.c:129
void Timer32_registerInterrupt(uint32_t timerInterrupt, void(*intHandler)(void))
Definition: timer32.c:134
void Timer32_unregisterInterrupt(uint32_t timerInterrupt)
Definition: timer32.c:141
void Timer32_enableInterrupt(uint32_t timer)
Definition: timer32.c:114