feat(dedic_gpio): add support for esp32c5

This commit is contained in:
Chen Jichang
2024-07-11 14:56:10 +08:00
parent 9ca974c8b3
commit 9b94afdd38
21 changed files with 161 additions and 80 deletions
@@ -4,12 +4,18 @@
* SPDX-License-Identifier: CC0-1.0
*/
#include "sdkconfig.h"
#include "soc/soc_caps.h"
/* RISC-V fast GPIO special registers, taken from "hal/dedic_gpio_cpu_ll.h" */
#define CSR_GPIO_IN_USER 0x804
#define CSR_GPIO_OUT_USER 0x805
/* Special register for machine cycle count */
#if SOC_CPU_HAS_CSR_PC
#define CSR_PCCR_MACHINE 0x7e2
#else
#define CSR_PCCR_MACHINE mcycle
#endif
.section .text