Loading...
Searching...
No Matches
periph_cpu_esp32c6.h File Reference

ESP32-C6 specific peripheral configuration. More...

Detailed Description

ESP32-C6 specific peripheral configuration.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file periph_cpu_esp32c6.h.

#include "sdkconfig.h"
+ Include dependency graph for periph_cpu_esp32c6.h:

Go to the source code of this file.

#define CLOCK_CORECLOCK   (1000000UL * CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ)
 Mapping configured ESP32-C6 default clock to CLOCK_CORECLOCK define.
 
#define CPU_CYCLES_PER_LOOP   (4)
 CPU cycles per busy wait loop.
 

Predefined GPIO names

#define GPIO0   (GPIO_PIN(PORT_GPIO, 0))
 GPIO0.
 
#define GPIO1   (GPIO_PIN(PORT_GPIO, 1))
 GPIO1.
 
#define GPIO2   (GPIO_PIN(PORT_GPIO, 2))
 GPIO2.
 
#define GPIO3   (GPIO_PIN(PORT_GPIO, 3))
 GPIO3.
 
#define GPIO4   (GPIO_PIN(PORT_GPIO, 4))
 GPIO4.
 
#define GPIO5   (GPIO_PIN(PORT_GPIO, 5))
 GPIO5.
 
#define GPIO6   (GPIO_PIN(PORT_GPIO, 6))
 GPIO6.
 
#define GPIO7   (GPIO_PIN(PORT_GPIO, 7))
 GPIO7.
 
#define GPIO8   (GPIO_PIN(PORT_GPIO, 8))
 GPIO8.
 
#define GPIO9   (GPIO_PIN(PORT_GPIO, 9))
 GPIO9.
 
#define GPIO10   (GPIO_PIN(PORT_GPIO, 10))
 GPIO10 is not broken out on chips with flash.
 
#define GPIO11   (GPIO_PIN(PORT_GPIO, 11))
 GPIO11 is not broken out on chips with flash.
 
#define GPIO12   (GPIO_PIN(PORT_GPIO, 12))
 GPIO12.
 
#define GPIO13   (GPIO_PIN(PORT_GPIO, 13))
 GPIO13.
 
#define GPIO14   (GPIO_PIN(PORT_GPIO, 14))
 GPIO14 is not usable for chips w/o flash.
 
#define GPIO15   (GPIO_PIN(PORT_GPIO, 15))
 GPIO15.
 
#define GPIO16   (GPIO_PIN(PORT_GPIO, 16))
 GPIO16.
 
#define GPIO17   (GPIO_PIN(PORT_GPIO, 17))
 GPIO17.
 
#define GPIO18   (GPIO_PIN(PORT_GPIO, 18))
 GPIO18.
 
#define GPIO19   (GPIO_PIN(PORT_GPIO, 19))
 GPIO19.
 
#define GPIO20   (GPIO_PIN(PORT_GPIO, 20))
 GPIO20.
 
#define GPIO21   (GPIO_PIN(PORT_GPIO, 21))
 GPIO21.
 
#define GPIO22   (GPIO_PIN(PORT_GPIO, 22))
 GPIO22.
 
#define GPIO23   (GPIO_PIN(PORT_GPIO, 23))
 GPIO23.
 
#define GPIO24   (GPIO_PIN(PORT_GPIO, 24))
 GPIO24.
 
#define GPIO25   (GPIO_PIN(PORT_GPIO, 25))
 GPIO25 is not broken out on chips with flash.
 
#define GPIO26   (GPIO_PIN(PORT_GPIO, 26))
 GPIO26 is not broken out on chips with flash.
 
#define GPIO27   (GPIO_PIN(PORT_GPIO, 27))
 GPIO27 is not broken out on chips with flash.
 
#define GPIO28   (GPIO_PIN(PORT_GPIO, 28))
 GPIO28 is not broken out on chips with flash.
 
#define GPIO29   (GPIO_PIN(PORT_GPIO, 29))
 GPIO29 is not broken out on chips with flash.
 
#define GPIO30   (GPIO_PIN(PORT_GPIO, 30))
 GPIO30 is not broken out on chips with flash.
 

Macro Definition Documentation

◆ CLOCK_CORECLOCK

#define CLOCK_CORECLOCK   (1000000UL * CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ)

Mapping configured ESP32-C6 default clock to CLOCK_CORECLOCK define.

Definition at line 25 of file periph_cpu_esp32c6.h.

◆ CPU_CYCLES_PER_LOOP

#define CPU_CYCLES_PER_LOOP   (4)

CPU cycles per busy wait loop.

Definition at line 30 of file periph_cpu_esp32c6.h.

◆ GPIO0

#define GPIO0   (GPIO_PIN(PORT_GPIO, 0))

GPIO0.

Definition at line 36 of file periph_cpu_esp32c6.h.

◆ GPIO1

#define GPIO1   (GPIO_PIN(PORT_GPIO, 1))

GPIO1.

Definition at line 37 of file periph_cpu_esp32c6.h.

◆ GPIO10

#define GPIO10   (GPIO_PIN(PORT_GPIO, 10))

GPIO10 is not broken out on chips with flash.

Definition at line 46 of file periph_cpu_esp32c6.h.

◆ GPIO11

#define GPIO11   (GPIO_PIN(PORT_GPIO, 11))

GPIO11 is not broken out on chips with flash.

Definition at line 47 of file periph_cpu_esp32c6.h.

◆ GPIO12

#define GPIO12   (GPIO_PIN(PORT_GPIO, 12))

GPIO12.

Definition at line 48 of file periph_cpu_esp32c6.h.

◆ GPIO13

#define GPIO13   (GPIO_PIN(PORT_GPIO, 13))

GPIO13.

Definition at line 49 of file periph_cpu_esp32c6.h.

◆ GPIO14

#define GPIO14   (GPIO_PIN(PORT_GPIO, 14))

GPIO14 is not usable for chips w/o flash.

Definition at line 50 of file periph_cpu_esp32c6.h.

◆ GPIO15

#define GPIO15   (GPIO_PIN(PORT_GPIO, 15))

GPIO15.

Definition at line 51 of file periph_cpu_esp32c6.h.

◆ GPIO16

#define GPIO16   (GPIO_PIN(PORT_GPIO, 16))

GPIO16.

Definition at line 52 of file periph_cpu_esp32c6.h.

◆ GPIO17

#define GPIO17   (GPIO_PIN(PORT_GPIO, 17))

GPIO17.

Definition at line 53 of file periph_cpu_esp32c6.h.

◆ GPIO18

#define GPIO18   (GPIO_PIN(PORT_GPIO, 18))

GPIO18.

Definition at line 54 of file periph_cpu_esp32c6.h.

◆ GPIO19

#define GPIO19   (GPIO_PIN(PORT_GPIO, 19))

GPIO19.

Definition at line 55 of file periph_cpu_esp32c6.h.

◆ GPIO2

#define GPIO2   (GPIO_PIN(PORT_GPIO, 2))

GPIO2.

Definition at line 38 of file periph_cpu_esp32c6.h.

◆ GPIO20

#define GPIO20   (GPIO_PIN(PORT_GPIO, 20))

GPIO20.

Definition at line 56 of file periph_cpu_esp32c6.h.

◆ GPIO21

#define GPIO21   (GPIO_PIN(PORT_GPIO, 21))

GPIO21.

Definition at line 57 of file periph_cpu_esp32c6.h.

◆ GPIO22

#define GPIO22   (GPIO_PIN(PORT_GPIO, 22))

GPIO22.

Definition at line 58 of file periph_cpu_esp32c6.h.

◆ GPIO23

#define GPIO23   (GPIO_PIN(PORT_GPIO, 23))

GPIO23.

Definition at line 59 of file periph_cpu_esp32c6.h.

◆ GPIO24

#define GPIO24   (GPIO_PIN(PORT_GPIO, 24))

GPIO24.

Definition at line 60 of file periph_cpu_esp32c6.h.

◆ GPIO25

#define GPIO25   (GPIO_PIN(PORT_GPIO, 25))

GPIO25 is not broken out on chips with flash.

Definition at line 61 of file periph_cpu_esp32c6.h.

◆ GPIO26

#define GPIO26   (GPIO_PIN(PORT_GPIO, 26))

GPIO26 is not broken out on chips with flash.

Definition at line 62 of file periph_cpu_esp32c6.h.

◆ GPIO27

#define GPIO27   (GPIO_PIN(PORT_GPIO, 27))

GPIO27 is not broken out on chips with flash.

Definition at line 63 of file periph_cpu_esp32c6.h.

◆ GPIO28

#define GPIO28   (GPIO_PIN(PORT_GPIO, 28))

GPIO28 is not broken out on chips with flash.

Definition at line 64 of file periph_cpu_esp32c6.h.

◆ GPIO29

#define GPIO29   (GPIO_PIN(PORT_GPIO, 29))

GPIO29 is not broken out on chips with flash.

Definition at line 65 of file periph_cpu_esp32c6.h.

◆ GPIO3

#define GPIO3   (GPIO_PIN(PORT_GPIO, 3))

GPIO3.

Definition at line 39 of file periph_cpu_esp32c6.h.

◆ GPIO30

#define GPIO30   (GPIO_PIN(PORT_GPIO, 30))

GPIO30 is not broken out on chips with flash.

Definition at line 66 of file periph_cpu_esp32c6.h.

◆ GPIO4

#define GPIO4   (GPIO_PIN(PORT_GPIO, 4))

GPIO4.

Definition at line 40 of file periph_cpu_esp32c6.h.

◆ GPIO5

#define GPIO5   (GPIO_PIN(PORT_GPIO, 5))

GPIO5.

Definition at line 41 of file periph_cpu_esp32c6.h.

◆ GPIO6

#define GPIO6   (GPIO_PIN(PORT_GPIO, 6))

GPIO6.

Definition at line 42 of file periph_cpu_esp32c6.h.

◆ GPIO7

#define GPIO7   (GPIO_PIN(PORT_GPIO, 7))

GPIO7.

Definition at line 43 of file periph_cpu_esp32c6.h.

◆ GPIO8

#define GPIO8   (GPIO_PIN(PORT_GPIO, 8))

GPIO8.

Definition at line 44 of file periph_cpu_esp32c6.h.

◆ GPIO9

#define GPIO9   (GPIO_PIN(PORT_GPIO, 9))

GPIO9.

Definition at line 45 of file periph_cpu_esp32c6.h.