mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 22:08:28 +00:00 
			
		
		
		
	bugfix: esprv_intc_int_set_type should not use bitmap parameter
This commit is contained in:
		@@ -58,7 +58,7 @@ void esp_cache_err_int_init(void)
 | 
				
			|||||||
    intr_matrix_set(core_id, ETS_CACHE_CORE0_ACS_INTR_SOURCE, ETS_CACHEERR_INUM);
 | 
					    intr_matrix_set(core_id, ETS_CACHE_CORE0_ACS_INTR_SOURCE, ETS_CACHEERR_INUM);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Set the type and priority to cache error interrupts. */
 | 
					    /* Set the type and priority to cache error interrupts. */
 | 
				
			||||||
    esprv_intc_int_set_type(BIT(ETS_CACHEERR_INUM), INTR_TYPE_LEVEL);
 | 
					    esprv_intc_int_set_type(ETS_CACHEERR_INUM, INTR_TYPE_LEVEL);
 | 
				
			||||||
    esprv_intc_int_set_priority(ETS_CACHEERR_INUM, SOC_INTERRUPT_LEVEL_MEDIUM);
 | 
					    esprv_intc_int_set_priority(ETS_CACHEERR_INUM, SOC_INTERRUPT_LEVEL_MEDIUM);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* On the hardware side, stat by clearing all the bits reponsible for
 | 
					    /* On the hardware side, stat by clearing all the bits reponsible for
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -458,7 +458,7 @@ void esp_memprot_set_intr_matrix(mem_type_prot_t mem_type)
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Set the type and priority to cache error interrupts. */
 | 
					    /* Set the type and priority to cache error interrupts. */
 | 
				
			||||||
    esprv_intc_int_set_type(BIT(ETS_MEMPROT_ERR_INUM), INTR_TYPE_LEVEL);
 | 
					    esprv_intc_int_set_type(ETS_MEMPROT_ERR_INUM, INTR_TYPE_LEVEL);
 | 
				
			||||||
    esprv_intc_int_set_priority(ETS_MEMPROT_ERR_INUM, SOC_INTERRUPT_LEVEL_MEDIUM);
 | 
					    esprv_intc_int_set_priority(ETS_MEMPROT_ERR_INUM, SOC_INTERRUPT_LEVEL_MEDIUM);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ESP_INTR_ENABLE(ETS_MEMPROT_ERR_INUM);
 | 
					    ESP_INTR_ENABLE(ETS_MEMPROT_ERR_INUM);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -144,7 +144,7 @@ static inline void intr_cntrl_ll_set_int_level(int intr, int level)
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
static inline void intr_cntrl_ll_set_int_type(int intr, int_type_t type)
 | 
					static inline void intr_cntrl_ll_set_int_type(int intr, int_type_t type)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    esprv_intc_int_set_type(BIT(intr), type);
 | 
					    esprv_intc_int_set_type(intr, type);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __cplusplus
 | 
					#ifdef __cplusplus
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user