M5Utility 0.0.6 git rev:8f9da9c
Loading...
Searching...
No Matches
compatibility_feature.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD
3 *
4 * SPDX-License-Identifier: MIT
5 */
10#ifndef M5_UTILITY_COMPATIBILITY_FEATURE_HPP
11#define M5_UTILITY_COMPATIBILITY_FEATURE_HPP
12
13#include <freertos/FreeRTOS.h>
14#include <esp_timer.h>
15
16namespace m5 {
17namespace utility {
18
21
24unsigned long millis();
25
29unsigned long micros();
30
36void delay(const unsigned long ms);
37
43void delayMicroseconds(const unsigned int us);
45
46} // namespace utility
47} // namespace m5
48#endif
IRAM_ATTR unsigned long millis()
Returns the number of milliseconds passed since the Arduino board began running the current program.
Definition compatibility_feature.cpp:21
IRAM_ATTR unsigned long micros()
Returns the number of microseconds since the Arduino board began running the current program.
Definition compatibility_feature.cpp:26
void delay(const unsigned long ms)
Pauses the program for the amount of time (in milliseconds) specified as parameter.
Definition compatibility_feature.cpp:31
void delayMicroseconds(const unsigned int us)
Pauses the program for the amount of time (in microseconds) specified by the parameter.
Definition compatibility_feature.cpp:45
Top level namespace of M5.
Definition bit_segment.hpp:17
For utilities.