gpio: Fix the bug that gpio interrupt cannot be triggered on app cpu on ESP32S3

Add a test case for checking the interrupt on other cores.

Closes https://github.com/espressif/esp-idf/issues/7885
This commit is contained in:
songruojing
2021-11-15 12:11:40 +08:00
parent 0e8286c57b
commit 91f1159f9c
4 changed files with 57 additions and 24 deletions

View File

@@ -1,16 +1,9 @@
// Copyright 2017-2021 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _SOC_GPIO_STRUCT_H_
#define _SOC_GPIO_STRUCT_H_
@@ -116,19 +109,19 @@ typedef volatile struct gpio_dev_s {
};
uint32_t val;
} status1_w1tc;
uint32_t pcpu_int;
uint32_t pcpu_nmi_int;
uint32_t pcpu_int; /*GPIO0~31 PRO & APP CPU interrupt status*/
uint32_t pcpu_nmi_int; /*GPIO0~31 PRO & APP CPU non-maskable interrupt status*/
uint32_t cpusdio_int;
union {
struct {
uint32_t intr : 22;
uint32_t intr : 22; /*GPIO32-48 PRO & APP CPU interrupt status*/
uint32_t reserved22 : 10;
};
uint32_t val;
} pcpu_int1;
union {
struct {
uint32_t intr : 22;
uint32_t intr : 22; /*GPIO32-48 PRO & APP CPU non-maskable interrupt status*/
uint32_t reserved22 : 10;
};
uint32_t val;