mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-31 13:09:38 +00:00 
			
		
		
		
	esp_phy: use spinlock to avoid regi2c access conflicts
This commit is contained in:
		| @@ -61,6 +61,10 @@ uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_ad | ||||
| void regi2c_ctrl_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data); | ||||
| void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data); | ||||
|  | ||||
| /* enter the critical section that protects internal registers. Don't use it in SDK. Use the functions above. */ | ||||
| void regi2c_enter_critical(void); | ||||
| void regi2c_exit_critical(void); | ||||
|  | ||||
| #endif // BOOTLOADER_BUILD | ||||
|  | ||||
| /* Convenience macros for the above functions, these use register definitions | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael (XIAO Xufeng)
					Michael (XIAO Xufeng)