|
STC15W408AS library 0.12.0
|
#include <sys.h>#include <bits.h>#include <interrupt.h>#include <stdint.h>#include <stdbool.h>#include <timer_structs.h>

Go to the source code of this file.
Macros | |
init | |
Timer initializaion functions | |
| #define | timer2_mode0_12T_init() |
| Initialize mode0 12T for timer2. | |
| #define | timer2_mode0_1T_init() |
| Initialize mode0 1T for timer2. | |
config | |
Timer configuration functions | |
| #define | timer2_mode0_enable_P30_output() (bit_set(INT_CLKO, SBIT2)) |
| Enable output of meander with timer times on P3.0 pin. | |
| #define | timer2_mode0_disable_P30_output() (bit_clr(INT_CLKO, CBIT2)) |
| Disable output of meander with timer times on P3.0 pin. | |
| #define | is_timer2_mode0_P30_output_enabled() (test_if_bit_set(INT_CLKO, SBIT2)) |
run in async mode | |
Timer run/stop/reload functions | |
| #define | timer2_mode0_start(ticks) |
| Run timer2 mode0 with interrupt support. | |
| #define | timer2_mode0_direct_start(th0, tl0) |
| Run timer2 mode0 with direct set of TH0 and TL0 registers. | |
| #define | timer2_mode0_stop() |
| Stop timer2 mode0. | |
| #define | is_timer2_mode0_started() (test_if_bit_set(AUXR, SBIT4)) |
| Get timer2 started status. | |
| #define | timer2_mode0_reload(ticks) |
| Reload timer2 ticks on the fly. | |
| #define | timer2_mode0_direct_reload(th2, tl2) |
| Reload timer2 T2H and T2L registers on the fly. | |