Microchip® Advanced Software Framework

sysTimer.h File Reference

System timer interface.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <stdint.h>
#include <stdbool.h>

Data Structures

struct  SYS_Timer_t
 

Macros

#define MS   1000
 
#define SYS_TIMER_INTERVAL   10ul /* ms */
 

Typedefs

typedef struct SYS_Timer_t SYS_Timer_t
 
typedef enum SYS_TimerMode_t SYS_TimerMode_t
 

Enumerations

enum  SYS_TimerMode_t {
  SYS_TIMER_INTERVAL_MODE,
  SYS_TIMER_PERIODIC_MODE
}
 

Functions

void SYS_HwExpiry_Cb (void)
 
void SYS_TimerInit (void)
 
void SYS_TimerStart (SYS_Timer_t *timer)
 
bool SYS_TimerStarted (SYS_Timer_t *timer)
 
void SYS_TimerStop (SYS_Timer_t *timer)
 
void SYS_TimerTaskHandler (void)