16 lines
363 B
C
16 lines
363 B
C
#include "timer_a1.h"
|
|
|
|
#include "inc/msp432p401r.h"
|
|
|
|
void (*timer_a1_task)(void); // user function
|
|
|
|
// Activate Timer A1 interrupts to run user task periodically
|
|
// 16 bits period in units (24/SMCLK, with SMCLK 12 MHz -> 2us)
|
|
void TimerA1Init(void (*task)(void), uint16_t period) {
|
|
// write this code
|
|
}
|
|
|
|
void TA1_0_IRQHandler(void) {
|
|
// write this code
|
|
}
|