Subversion Repositories Code-Repo

Rev

Rev 316 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
316 Kevin 1
#ifndef TIMER_H
2
#define	TIMER_H
3
 
4
typedef struct {
5
    void (*timer_2_callback)(void);
6
    uint16_t delay;
7
    uint24_t counter;
8
} TIMER_DATA;
9
 
10
void TIMER_Init(TIMER_DATA *data);
11
void TIMER_2_Init(void (*callback)(void));
12
void TIMER_2_Set_Delay(uint16_t delay);
13
void TIMER_2_Start(void);
14
void TIMER_2_Stop(void);
15
void TIMER_2_Interrupt_Handler(void);
16
 
17
#endif	/* TIMER_H */
18