init.c
/**
 * Timer initialization
 * @note       This will setup timer A to have a 1us tick
 */
Timer initialization
@note       This will setup timer A to have a 1us tick
Timer initialization @note This will setup timer A to have a 1us tick
void Timer_Init(void)
{
    Timer_A_initContinuousModeParam param = {0};
    param.clockSource = TIMER_A_CLOCKSOURCE_SMCLK; 
    param.clockSourceDivider = TIMER_A_CLOCKSOURCE_DIVIDER_16;
    param.timerInterruptEnable_TAIE = TIMER_A_TAIE_INTERRUPT_ENABLE;
    param.timerClear = TIMER_A_DO_CLEAR;
    param.startTimer = true;
    uptimeTicksMicroseconds = 0;
    Timer_A_initContinuousMode(TIMER_A0_BASE, &param);
    __delay_cycles(10000); 
}
void Timer_Init ( void ) { Timer_A_initContinuousModeParam param = { 0 } ; param . clockSource = TIMER_A_CLOCKSOURCE_SMCLK ; param . clockSourceDivider = TIMER_A_CLOCKSOURCE_DIVIDER_16 ; param . timerInterruptEnable_TAIE = TIMER_A_TAIE_INTERRUPT_ENABLE ; param . timerClear = TIMER_A_DO_CLEAR ; param . startTimer = true ; uptimeTicksMicroseconds = 0 ; Timer_A_initContinuousMode ( TIMER_A0_BASE , & param ) ; __delay_cycles ( 10000 ) ; }
Timer initialization
 @note       This will setup timer A to have a 1us tick
Timer initialization @note This will setup timer A to have a 1us tick
// Continuous mode // Use SMCLK (= DCO = (16 MHz / 16) = 1 MHz) //! Whether to start the timer immediately // Clear our system uptime // Start the timer in continuous mode with the settings above // Delay wait for clock to settle