mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
refactor(esp_hal_gpio): move some caps definitions to esp_hal_gpio
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define GPIO_CAPS_GET(_attr) _GPIO_ ## _attr
|
||||
|
||||
#define _GPIO_MATRIX_DELAY_NS 25 /* the gpio matrix signal routing const time */
|
||||
@@ -28,9 +28,6 @@
|
||||
// Get GPIO hardware instance with giving gpio num
|
||||
#define GPIO_LL_GET_HW(num) (((num) == 0) ? (&GPIO) : NULL)
|
||||
|
||||
// the gpio matrix signal routing const time
|
||||
#define GPIO_LL_MATRIX_DELAY_NS 25
|
||||
|
||||
#define GPIO_LL_APP_CPU_INTR_ENA (BIT(0))
|
||||
#define GPIO_LL_APP_CPU_NMI_INTR_ENA (BIT(1))
|
||||
#define GPIO_LL_PRO_CPU_INTR_ENA (BIT(2))
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define RTC_GPIO_CAPS_GET(_attr) _RTC_GPIO_ ## _attr
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define SDM_CAPS_GET(_attr) _SDM_ ## _attr
|
||||
|
||||
#define _SDM_INST_NUM 1 /* Number of SDM instances */
|
||||
#define _SDM_CHANS_PER_INST 8 /* Number of channels in each SDM instance */
|
||||
#define _SDM_FUNC_CLOCK_SUPPORT_APB 1 /* SDM function clock can be sourced from APB */
|
||||
@@ -17,9 +17,6 @@
|
||||
|
||||
#define SDM_LL_PRESCALE_MAX (GPIO_SD0_PRESCALE_V + 1)
|
||||
|
||||
// Support APB as function clock
|
||||
#define SDM_LL_FUNC_CLOCK_SUPPORT_APB 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user