-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesp32c3.h
52 lines (44 loc) · 971 Bytes
/
esp32c3.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#pragma clang diagnostic ignored "-Wstrict-prototypes"
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <esp_app_desc.h>
#include <esp_attr.h>
#include <esp_err.h>
#include <esp_http_server.h>
#include <esp_log.h>
#include <esp_netif.h>
#include <esp_system.h>
#include <esp_timer.h>
#include <esp_wifi.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/timers.h>
inline int32_t esp_timer_get_time_ms(void)
{
return (int32_t)(esp_timer_get_time() / 1000);
}
inline int32_t esp_timer_get_time_us(void)
{
return (int32_t)esp_timer_get_time();
}
extern int uart0_tx;
extern int uart0_rx;
extern int uart1_tx;
extern int uart1_rx;
extern esp_netif_t* ap_netif;
extern esp_netif_t* sta_netif;
extern httpd_handle_t httpd_server;
#ifdef __cplusplus
};
#endif
#ifdef __cplusplus
#include <string>
#endif