#include <stdint.h>
#include <stdbool.h>
#include <ti/devices/msp432p4xx/inc/msp.h>
Go to the source code of this file.
Macros | |
#define | TIMER32_CMSIS(x) ((Timer32_Type *) x) |
#define | TIMER_OFFSET 0x020 |
#define | TIMER32_0_BASE (uint32_t)TIMER32_1 |
#define | TIMER32_1_BASE (uint32_t)TIMER32_2 |
#define | TIMER32_0_INTERRUPT INT_T32_INT1 |
#define | TIMER32_1_INTERRUPT INT_T32_INT2 |
#define | TIMER32_COMBINED_INTERRUPT INT_T32_INTC |
#define | TIMER32_16BIT 0x00 |
#define | TIMER32_32BIT 0x01 |
#define | TIMER32_PRESCALER_1 0x00 |
#define | TIMER32_PRESCALER_16 0x04 |
#define | TIMER32_PRESCALER_256 0x08 |
#define | TIMER32_FREE_RUN_MODE 0x00 |
#define | TIMER32_PERIODIC_MODE 0x01 |
Functions | |
void | Timer32_initModule (uint32_t timer, uint32_t preScaler, uint32_t resolution, uint32_t mode) |
void | Timer32_setCount (uint32_t timer, uint32_t count) |
void | Timer32_setCountInBackground (uint32_t timer, uint32_t count) |
uint32_t | Timer32_getValue (uint32_t timer) |
void | Timer32_startTimer (uint32_t timer, bool oneShot) |
void | Timer32_haltTimer (uint32_t timer) |
void | Timer32_enableInterrupt (uint32_t timer) |
void | Timer32_disableInterrupt (uint32_t timer) |
void | Timer32_clearInterruptFlag (uint32_t timer) |
uint32_t | Timer32_getInterruptStatus (uint32_t timer) |
void | Timer32_registerInterrupt (uint32_t timerInterrupt, void(*intHandler)(void)) |
void | Timer32_unregisterInterrupt (uint32_t timerInterrupt) |