STC15W408AS library
0.9.0
include
timer_common.h
Go to the documentation of this file.
1
#ifndef STC15_TIMERH
2
#define STC15_TIMERH
3
12
#include <bits.h>
13
#include <timer_structs.h>
14
15
//============================== Timer0 get mode, divider, pins declarations start ========
23
#define get_timer0_mode() (TMOD & 0x03)
24
32
#define get_timer0_clock_divider() (test_if_bit_cleared(AUXR, SBIT7) ? T12 : T1)
33
50
#define get_timer2_mode() (0)
51
59
#define get_timer2_clock_divider() (test_if_bit_set(AUXR, SBIT2) ? T1 : T12)
60
61
#endif
Generated by
1.9.4