Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
periph_cpu_esp32c3.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2022 Gunar Schorcht
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#include "
sdkconfig.h
"
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
25
#define CLOCK_CORECLOCK (1000000UL * CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ)
26
30
#define CPU_CYCLES_PER_LOOP (4)
31
36
#define GPIO0 (GPIO_PIN(PORT_GPIO, 0))
37
#define GPIO1 (GPIO_PIN(PORT_GPIO, 1))
38
#define GPIO2 (GPIO_PIN(PORT_GPIO, 2))
39
#define GPIO3 (GPIO_PIN(PORT_GPIO, 3))
40
#define GPIO4 (GPIO_PIN(PORT_GPIO, 4))
41
#define GPIO5 (GPIO_PIN(PORT_GPIO, 5))
42
#define GPIO6 (GPIO_PIN(PORT_GPIO, 6))
43
#define GPIO7 (GPIO_PIN(PORT_GPIO, 7))
44
#define GPIO8 (GPIO_PIN(PORT_GPIO, 8))
45
#define GPIO9 (GPIO_PIN(PORT_GPIO, 9))
46
#define GPIO10 (GPIO_PIN(PORT_GPIO, 10))
47
#define GPIO11 (GPIO_PIN(PORT_GPIO, 11))
48
#define GPIO12 (GPIO_PIN(PORT_GPIO, 12))
49
#define GPIO13 (GPIO_PIN(PORT_GPIO, 13))
50
#define GPIO14 (GPIO_PIN(PORT_GPIO, 14))
51
#define GPIO15 (GPIO_PIN(PORT_GPIO, 15))
52
#define GPIO16 (GPIO_PIN(PORT_GPIO, 16))
53
#define GPIO17 (GPIO_PIN(PORT_GPIO, 17))
54
#define GPIO18 (GPIO_PIN(PORT_GPIO, 18))
55
#define GPIO19 (GPIO_PIN(PORT_GPIO, 19))
56
#define GPIO20 (GPIO_PIN(PORT_GPIO, 20))
57
#define GPIO21 (GPIO_PIN(PORT_GPIO, 21))
59
76
96
103
138
144
145
#ifdef MODULE_ESP_HW_COUNTER
146
#error "Counter based timers are not supported by ESP32-C3"
147
#endif
148
169
170
#ifdef __cplusplus
171
}
172
#endif
173
sdkconfig.h
SDK configuration used by ESP-IDF for all ESP32x SoC variants (families)
Generated on Mon Sep 15 2025 13:46:10 by
1.13.2