STC15W408AS library 0.9.0
timer0_to_ms.h
Go to the documentation of this file.
1#ifndef STC15_TIMER0_TO_MSH
2#define STC15_TIMER0_TO_MSH
3
13#include <stdint.h>
14#include <frequency.h>
15#include <timer0_mode0.h>
16#include <timer_common.h>
17#include <timer_to_ms_common.h>
18
23
40#define timer0_uint16_ticks_to_freq100(ticks) (timer_uint16_ticks_to_freq100(ticks, get_timer0_clock_divider(), get_frequency_divider_scale()))
41
57#define timer0_frequency_to_ticks_unsafe(frequency) (timer_frequency_to_ticks_unsafe(frequency, get_timer0_clock_divider(), get_frequency_divider_scale()))
58
69#define timer0_ticks_to_ms_usafe(ticks) (timer_ticks_to_ms_usafe(ticks, get_timer0_clock_divider(), get_frequency_divider_scale()))
70
85#define timer0_ms_to_ticks_usafe(ms) (timer_ms_to_ticks_usafe(ms, get_timer0_clock_divider()))
86
88
89#endif