mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	esp32c3: memprot API upgrade and test application
Closes IDF-2641
This commit is contained in:
		
				
					committed by
					
						
						Angus Gratton
					
				
			
			
				
	
			
			
			
						parent
						
							2ed3e8b344
						
					
				
				
					commit
					6dfff2fdbd
				
			@@ -26,6 +26,32 @@
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
//convenient constants for better code readabilty
 | 
			
		||||
#define RD_ENA                  true
 | 
			
		||||
#define RD_DIS                  false
 | 
			
		||||
#define WR_ENA                  true
 | 
			
		||||
#define WR_DIS                  false
 | 
			
		||||
#define EX_ENA                  true
 | 
			
		||||
#define EX_DIS                  false
 | 
			
		||||
#define RD_LOW_ENA              true
 | 
			
		||||
#define RD_LOW_DIS              false
 | 
			
		||||
#define WR_LOW_ENA              true
 | 
			
		||||
#define WR_LOW_DIS              false
 | 
			
		||||
#define EX_LOW_ENA              true
 | 
			
		||||
#define EX_LOW_DIS              false
 | 
			
		||||
#define RD_HIGH_ENA             true
 | 
			
		||||
#define RD_HIGH_DIS             false
 | 
			
		||||
#define WR_HIGH_ENA             true
 | 
			
		||||
#define WR_HIGH_DIS             false
 | 
			
		||||
#define EX_HIGH_ENA             true
 | 
			
		||||
#define EX_HIGH_DIS             false
 | 
			
		||||
#define PANIC_HNDL_ON           true
 | 
			
		||||
#define PANIC_HNDL_OFF          false
 | 
			
		||||
#define MEMPROT_LOCK            true
 | 
			
		||||
#define MEMPROT_UNLOCK          false
 | 
			
		||||
#define DEF_SPLIT_LINE          NULL
 | 
			
		||||
 | 
			
		||||
//memory range types
 | 
			
		||||
typedef enum {
 | 
			
		||||
    MEMPROT_NONE =              0x00000000,
 | 
			
		||||
    MEMPROT_IRAM0_SRAM =        0x00000001, //0x40020000-0x4006FFFF, RWX
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user