Subversion Repositories Code-Repo

Rev

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

Rev Author Line No. Line
206 Kevin 1
#ifndef TIMER4_H
2
#define	TIMER4_H
3
 
4
typedef struct {
237 Kevin 5
    void (*callback_function_1)(void);
6
    void (*callback_function_2)(void);
7
    uint32_t divider;
8
    uint32_t count;
206 Kevin 9
} TIMER4_DATA;
10
 
237 Kevin 11
void TIMER4_Init(TIMER4_DATA *data, void (*callback_ms)(void),
12
        void (*callback_div)(void), uint32_t time_ms);
206 Kevin 13
void TIMER4_Start(void);
14
void TIMER4_Stop(void);
15
 
16
#endif	/* TIMER4_H */
17