mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-31 04:59:55 +00:00 
			
		
		
		
	HAL: place cpu_ll_get_cycle_count in IRAM
Closes https://github.com/espressif/esp-idf/issues/9008
This commit is contained in:
		| @@ -39,7 +39,7 @@ static inline uint32_t IRAM_ATTR cpu_ll_get_core_id(void) | |||||||
|     return id; |     return id; | ||||||
| } | } | ||||||
|  |  | ||||||
| static inline uint32_t cpu_ll_get_cycle_count(void) | static inline uint32_t IRAM_ATTR cpu_ll_get_cycle_count(void) | ||||||
| { | { | ||||||
|     uint32_t result; |     uint32_t result; | ||||||
|     RSR(CCOUNT, result); |     RSR(CCOUNT, result); | ||||||
|   | |||||||
| @@ -33,7 +33,7 @@ static inline uint32_t IRAM_ATTR cpu_ll_get_core_id(void) | |||||||
|     return 0; |     return 0; | ||||||
| } | } | ||||||
|  |  | ||||||
| static inline uint32_t cpu_ll_get_cycle_count(void) | static inline uint32_t IRAM_ATTR cpu_ll_get_cycle_count(void) | ||||||
| { | { | ||||||
|     uint32_t result; |     uint32_t result; | ||||||
|     RSR(CCOUNT, result); |     RSR(CCOUNT, result); | ||||||
|   | |||||||
| @@ -38,7 +38,7 @@ static inline uint32_t IRAM_ATTR cpu_ll_get_core_id(void) | |||||||
|     return id; |     return id; | ||||||
| } | } | ||||||
|  |  | ||||||
| static inline uint32_t cpu_ll_get_cycle_count(void) | static inline uint32_t IRAM_ATTR cpu_ll_get_cycle_count(void) | ||||||
| { | { | ||||||
|     uint32_t result; |     uint32_t result; | ||||||
|     RSR(CCOUNT, result); |     RSR(CCOUNT, result); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Marius Vikhammer
					Marius Vikhammer