fix(interrupt): fixed wrongly reserved interrupt for wifi on H2

This commit is contained in:
Marius Vikhammer 2024-12-30 17:40:18 +08:00
parent dbe1e41c6f
commit 94d9ab88bb
2 changed files with 9 additions and 10 deletions

View File

@ -10,13 +10,12 @@
void esp_cpu_intr_get_desc(int core_id, int intr_num, esp_cpu_intr_desc_t *intr_desc_ret)
{
/* On the ESP32-H2, interrupt:
* - 1 is for Wi-Fi
* - 6 for "permanently disabled interrupt"
*
* Interrupts 3, 4 and 7 are unavailable for PULP CPU as they are bound to Core-Local Interrupts (CLINT)
*/
// [TODO: IDF-2465]
const uint32_t rsvd_mask = BIT(1) | BIT(3) | BIT(4) | BIT(6) | BIT(7);
const uint32_t rsvd_mask = BIT(3) | BIT(4) | BIT(6) | BIT(7);
intr_desc_ret->priority = 1;
intr_desc_ret->type = ESP_CPU_INTR_TYPE_NA;

View File

@ -1,17 +1,17 @@
CPU 0 interrupt status:
Int Level Type Status
0 * * Reserved
1 * * Reserved
2 1 Level Used: LP_RTC_TIMER
1 1 Level Used: LP_RTC_TIMER
2 1 Level Used: SYSTIMER_TARGET2
3 * * Reserved
4 * * Reserved
5 1 Level Used: SYSTIMER_TARGET2
5 1 Level Used: CPUFROM_CPU_0
6 * * Reserved
7 * * Reserved
8 1 Level Used: CPUFROM_CPU_0
9 1 Level Used: SYSTIMER_TARGET0
10 1 Level Used: TG0_WDT
11 1 Level Used: UART0
8 1 Level Used: SYSTIMER_TARGET0
9 1 Level Used: TG0_WDT
10 1 Level Used: UART0
11 * * Free
12 * * Free
13 * * Free
14 * * Free
@ -32,5 +32,5 @@ CPU 0 interrupt status:
29 * * Free
30 * * Free
31 * * Free
Interrupts available for general use: 17
Interrupts available for general use: 18
Shared interrupts: 0