STC15W408AS library 0.9.0
Macros
timer_common.h File Reference
#include <bits.h>
#include <timer_structs.h>
Include dependency graph for timer_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define get_timer0_mode()   (TMOD & 0x03)
 Get timer0 mode. More...
 
#define get_timer0_clock_divider()   (test_if_bit_cleared(AUXR, SBIT7) ? T12 : T1)
 Get timer0 clock divider. More...
 
#define get_timer2_mode()   (0)
 Enable output of meandr with timer interval on P3.5 pin. More...
 
#define get_timer2_clock_divider()   (test_if_bit_set(AUXR, SBIT2) ? T1 : T12)