mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-20 09:51:44 +00:00
feat(ana_cmpr): support analog comparator on C5
This commit is contained in:
36
components/soc/esp32c5/include/soc/ana_cmpr_struct.h
Normal file
36
components/soc/esp32c5/include/soc/ana_cmpr_struct.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/* NOTE: this file is created manually for compatibility */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include "soc/gpio_ext_struct.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief The Analog Comparator Device struct
|
||||
* @note The field in it are register pointers, which point to the physical address
|
||||
* of the corresponding configuration register
|
||||
* @note see 'ana_cmpr_periph.c' for the device instance
|
||||
*/
|
||||
typedef struct {
|
||||
volatile gpio_ext_pad_comp_config_0_reg_t *pad_comp_config;
|
||||
volatile gpio_ext_pad_comp_filter_0_reg_t *pad_comp_filter;
|
||||
volatile gpio_ext_int_st_reg_t *int_st;
|
||||
volatile gpio_ext_int_ena_reg_t *int_ena;
|
||||
volatile gpio_ext_int_clr_reg_t *int_clr;
|
||||
} analog_cmpr_dev_t;
|
||||
|
||||
extern analog_cmpr_dev_t ANALOG_CMPR[1];
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user