mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			617 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			617 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* Utility functions to test that APB access is still safe
 | 
						|
   while the other CPU performs some set of DPORT accesses
 | 
						|
 | 
						|
   (see ECO 3.10 and the standalone esp32 test_dport.c for more).
 | 
						|
*/
 | 
						|
 | 
						|
/* start_apb_access_loop() starts a task reading from APB in a loop on the non-Unity-test CPU.
 | 
						|
 | 
						|
   Call this before doing something which involes DPORT reads.
 | 
						|
 | 
						|
   Does nothing in unicore mode.
 | 
						|
*/
 | 
						|
void start_apb_access_loop(void);
 | 
						|
 | 
						|
/* verify_apb_access_loop() kills the task started by start_apb_access_loop()
 | 
						|
   and verifies that none of the APB reads were corrupted by unsafe DPORT reads.
 | 
						|
*/
 | 
						|
void verify_apb_access_loop(void);
 |