Subversion Repositories Code-Repo

Rev

Blame | Last modification | View Log | RSS feed

#ifndef TIMER_H
#define TIMER_H

typedef struct {
    void (*timer_2_callback)(void);
    uint16_t delay;
    uint24_t counter;
} TIMER_DATA;

void TIMER_Init(TIMER_DATA *data);
void TIMER_2_Init(void (*callback)(void));
void TIMER_2_Set_Delay(uint16_t delay);
void TIMER_2_Start(void);
void TIMER_2_Stop(void);
void TIMER_2_Interrupt_Handler(void);

#endif  /* TIMER_H */