STC15W408AS library 0.17.0
Loading...
Searching...
No Matches
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

Timer0

Timer0 routines

#define get_timer0_mode()   (TMOD & 0x03)
 Get mode for timer0.
 
#define get_timer0_clock_divider()   (test_if_bit_cleared(AUXR, SBIT7) ? T12 : T1)
 Get clock divider for timer0.
 
Timer2

Timer2 routines

#define get_timer2_mode()   (0)
 Get mode for timer2.
 
#define get_timer2_clock_divider()   (test_if_bit_set(AUXR, SBIT2) ? T1 : T12)
 Get clock divider for timer2.