STC15W408AS library 0.17.0
Loading...
Searching...
No Matches
timer_common.h
Go to the documentation of this file.
1#ifndef STC15_TIMERH
2#define STC15_TIMERH
3
14#include <bits.h>
15#include <timer_structs.h>
16
21
28#define get_timer0_mode() (TMOD & 0x03)
29
37#define get_timer0_clock_divider() (test_if_bit_cleared(AUXR, SBIT7) ? T12 : T1)
39
44
51#define get_timer2_mode() (0)
52
60#define get_timer2_clock_divider() (test_if_bit_set(AUXR, SBIT2) ? T1 : T12)
62
63#endif