Esp8266/Components/driver/include/driver/os_timer.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * os_timer.h
8  *
9  * @author: 13 August 2018 - mikee47 <mike@sillyhouse.net>
10  *
11  * An alternative method for setting software timers based on the tick count.
12  *
13  */
14 
15 #pragma once
16 
17 #include <esp_systemapi.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
38 void os_timer_arm_ticks(os_timer_t* ptimer, uint32_t ticks, bool repeat_flag);
39 
42 #ifdef __cplusplus
43 }
44 #endif
void os_timer_arm_ticks(os_timer_t *ptimer, uint32_t ticks, bool repeat_flag)
Set a software timer using the Timer2 tick value.
ETSTimer os_timer_t
Definition: Esp32/Components/driver/include/driver/os_timer.h:31