- adc is event based
- changed timer frequency - prepared for SW timer - added PowerSwitch_in git-svn-id: http://moon:8086/svn/projects/HendiControl@30 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -9,6 +9,20 @@
|
||||
#ifndef TIMER_H_
|
||||
#define TIMER_H_
|
||||
|
||||
void timer_init(uint16_t TIMER_RELOAD);
|
||||
typedef enum _eTimerClockSel
|
||||
{
|
||||
TimerClockSel_none = 0,
|
||||
TimerClockSel_PS_1 = (1<<CS10),
|
||||
TimerClockSel_PS_8 = (1<<CS11),
|
||||
TimerClockSel_PS_64 = (1<<CS11) | (1<<CS10),
|
||||
TimerClockSel_PS_256 = (1<<CS12),
|
||||
TimerClockSel_PS_1024 = (1<<CS12) | (1<<CS10),
|
||||
TimerClockSel_ext_T1_neg = (1<<CS12) | (1<<CS11),
|
||||
TimerClockSel_ext_T1_pos = (1<<CS12) | (1<<CS11) | (1<<CS10),
|
||||
TimerClockSel_mask = (1<<CS12) | (1<<CS11) | (1<<CS10),
|
||||
} TimerClockSel;
|
||||
|
||||
void timer_init(uint16_t TIMER_RELOAD, TimerClockSel clockSel);
|
||||
|
||||
|
||||
#endif /* TIMER_H_ */
|
||||
Reference in New Issue
Block a user