Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Group_pal_common_hw_timer

Implements a common api interface for accessing timer drivers of all architectures.

Macros

#define DEF_1MHZ   (1000000)
 
#define TIMER_PERIOD   UINT16_MAX
 

Functions

void common_tc_compare_stop (void)
 To disable timer compare interrupt. More...
 
void common_tc_delay (uint16_t value)
 To create a non blocking delay. More...
 
void common_tc_init (void)
 To initialize common hw timer. More...
 
void common_tc_overflow_stop (void)
 To disable timer overflow interrupt. More...
 
uint16_t common_tc_read_count (void)
 To read current count of the timer after issuing common tc delay. More...
 
void common_tc_stop (void)
 To disable timer. More...
 
void hw_expiry_cb (void)
 
void hw_overflow_cb (void)
 
void set_common_tc_expiry_callback (tmr_callback_t callback)
 to set common hw timer compare callback More...
 
void set_common_tc_overflow_callback (tmr_callback_t callback)
 to set common hw timer overflow callback More...
 
void tmr_cca_callback (void)
 timer compare interrupt callback More...
 
void tmr_ovf_callback (void)
 timer overflow interrupt callback More...
 

#define DEF_1MHZ   (1000000)

Referenced by tmr_init().

#define TIMER_PERIOD   UINT16_MAX

void common_tc_compare_stop ( void  )

To disable timer compare interrupt.

void common_tc_delay ( uint16_t  value)

To create a non blocking delay.

Parameters
valuedelay in us

Referenced by SYS_HwExpiry_Cb(), and SYS_TimerInit().

void common_tc_init ( void  )

To initialize common hw timer.

Referenced by SYS_TimerInit().

void common_tc_overflow_stop ( void  )

To disable timer overflow interrupt.

uint16_t common_tc_read_count ( void  )

To read current count of the timer after issuing common tc delay.

void common_tc_stop ( void  )

To disable timer.

void hw_expiry_cb ( void  )
void hw_overflow_cb ( void  )
void set_common_tc_expiry_callback ( tmr_callback_t  callback)

to set common hw timer compare callback

Referenced by SYS_TimerInit().

void set_common_tc_overflow_callback ( tmr_callback_t  callback)

to set common hw timer overflow callback

void tmr_cca_callback ( void  )

timer compare interrupt callback

Referenced by tc_callback().

void tmr_ovf_callback ( void  )

timer overflow interrupt callback

Referenced by tc_callback().