Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
periph_cpu_esp32h2.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2025 Gunar Schorcht
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#pragma once
10
21
#include "
sdkconfig.h
"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
28
#define CLOCK_CORECLOCK (1000000UL * CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ)
29
33
#define CPU_CYCLES_PER_LOOP (4)
34
39
#define GPIO0 (GPIO_PIN(PORT_GPIO, 0))
40
#define GPIO1 (GPIO_PIN(PORT_GPIO, 1))
41
#define GPIO2 (GPIO_PIN(PORT_GPIO, 2))
42
#define GPIO3 (GPIO_PIN(PORT_GPIO, 3))
43
#define GPIO4 (GPIO_PIN(PORT_GPIO, 4))
44
#define GPIO5 (GPIO_PIN(PORT_GPIO, 5))
45
#define GPIO6 (GPIO_PIN(PORT_GPIO, 6))
46
#define GPIO7 (GPIO_PIN(PORT_GPIO, 7))
47
#define GPIO8 (GPIO_PIN(PORT_GPIO, 8))
48
#define GPIO9 (GPIO_PIN(PORT_GPIO, 9))
49
#define GPIO10 (GPIO_PIN(PORT_GPIO, 10))
50
#define GPIO11 (GPIO_PIN(PORT_GPIO, 11))
51
#define GPIO12 (GPIO_PIN(PORT_GPIO, 12))
52
#define GPIO13 (GPIO_PIN(PORT_GPIO, 13))
53
#define GPIO14 (GPIO_PIN(PORT_GPIO, 14))
54
#define GPIO15 (GPIO_PIN(PORT_GPIO, 15))
55
#define GPIO16 (GPIO_PIN(PORT_GPIO, 16))
56
#define GPIO17 (GPIO_PIN(PORT_GPIO, 17))
57
#define GPIO18 (GPIO_PIN(PORT_GPIO, 18))
58
#define GPIO19 (GPIO_PIN(PORT_GPIO, 19))
59
#define GPIO20 (GPIO_PIN(PORT_GPIO, 20))
60
#define GPIO21 (GPIO_PIN(PORT_GPIO, 21))
61
#define GPIO22 (GPIO_PIN(PORT_GPIO, 22))
62
#define GPIO23 (GPIO_PIN(PORT_GPIO, 23))
63
#define GPIO24 (GPIO_PIN(PORT_GPIO, 24))
64
#define GPIO25 (GPIO_PIN(PORT_GPIO, 25))
65
#define GPIO26 (GPIO_PIN(PORT_GPIO, 26))
66
#define GPIO27 (GPIO_PIN(PORT_GPIO, 27))
149
#ifdef MODULE_ESP_HW_COUNTER
150
# error "Counter based timers are not supported by ESP32-H2"
151
#endif
152
174
#ifdef __cplusplus
175
}
176
#endif
177
sdkconfig.h
RIOT-OS modification of the bootloader SDK configuration.
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1