STC15W408AS library 0.9.0
|
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) |
Enumerations | |
enum | timer_clock_divider_t { T1 = 1 , T12 = 12 } |
Timer clock divider values enum. More... | |
Common functions and data structures for timers.
Get timer0 clock divider.
#define get_timer0_mode | ( | ) | (TMOD & 0x03) |
Get timer0 mode.
Get timer2 clock divider
#define get_timer2_mode | ( | ) | (0) |
Enable output of meandr with timer interval on P3.5 pin.
By default output is disabled
enable | bool if true output is enabled otherwise output is disabled Get timer2 mode |