Politician 1.0.0
WiFi Auditing Library for ESP32
Loading...
Searching...
No Matches
politician_compat.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef ARDUINO
4 #include <Arduino.h>
5#else
6 #include <esp_timer.h>
7 #include <freertos/FreeRTOS.h>
8 #include <freertos/task.h>
9 #include <stdint.h>
10 inline uint32_t millis() {
11 return (uint32_t)(esp_timer_get_time() / 1000ULL);
12 }
13 inline void delay(uint32_t ms) {
14 vTaskDelay(pdMS_TO_TICKS(ms));
15 }
16#endif
void delay(uint32_t ms)
uint32_t millis()