46#include "timer_interface.h"
64#define Timer1_Initialize TMR1_Initialize
69#define Timer1_Deinitialize TMR1_Deinitialize
74#define Timer1_Tasks TMR1_Tasks
79#define Timer1_Start TMR1_Start
84#define Timer1_Stop TMR1_Stop
86#if TIMER_PERIODCOUNTSET_API_SUPPORT
91#define Timer1_PeriodCountSet TMR1_PeriodCountSet
98#define Timer1_PeriodSet TMR1_PeriodSet
103#define Timer1_PeriodGet TMR1_PeriodGet
108#define Timer1_CounterGet TMR1_CounterGet
113#define Timer1_Counter16BitGet TMR1_Counter16BitGet
118#define Timer1_InterruptPrioritySet TMR1_InterruptPrioritySet
123#define Timer1_TimeoutCallbackRegister TMR1_TimeoutCallbackRegister
185 return (uint32_t) PR1;
196 return (uint32_t)TMR1;
238#if TIMER_PERIODCOUNTSET_API_SUPPORT
245void TMR1_PeriodCountSet(
size_t count) __attribute__((deprecated (
"\nThis will be removed in future MCC releases. \nUse TMR1_PeriodSet instead. ")));
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...
static uint16_t TMR1_Counter16BitGet(void)
This inline function gets the 16 bit TMR1 elapsed time value.
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 TMR1_PeriodCountSet(size_t count)