40#include "../timer_interface.h"
44#define MASK_32_BIT_LOW 0x0000FFFFU
45#define MASK_32_BIT_HIGH 0xFFFF0000U
58 #if TIMER_PERIODCOUNTSET_API_SUPPORT
113 IPC0bits.T1IP = priority;
131 if(IFS0bits.T1IF == 1)
133 (*TMR1_TimeoutHandler)();
static uint32_t TMR1_PeriodGet(void)
This inline function gets the TMR1 period count value.
void TMR1_Tasks(void)
This function is used to implement the tasks for polled implementations.
void TMR1_Stop(void)
Stops the timer.
void TMR1_Deinitialize(void)
Deinitializes the TMR1 to POR values.
const struct TIMER_INTERFACE Timer1
Structure object of type TIMER_INTERFACE with the custom name given by the user in the Melody Driver ...
static uint32_t TMR1_CounterGet(void)
This inline function gets the TMR1 elapsed time value.
void TMR1_TimeoutCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
void TMR1_TimeoutCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for TMR1 Timeout...
void TMR1_InterruptPrioritySet(enum INTERRUPT_PRIORITY priority)
Sets the TMR1 interrupt priority value.
void TMR1_Initialize(void)
Initializes the TMR1 module.
void TMR1_PeriodSet(uint32_t count)
Sets the TMR1 period count value.
void TMR1_Start(void)
Starts the timer.
Structure containing the function pointers of TIMER driver.
void(* Initialize)(void)
Pointer to MCCPx_Timer_Initialize or SCCPx_Timer_Initialize or TMRx_Initialize e.g....
static void(* TMR1_TimeoutHandler)(void)
void TMR1_PeriodCountSet(size_t count)
This is the generated driver header file for the TMR1 driver.