mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
hal: Deprecate interrupt_controller_hal.h, cpu_hal.h and cpu_ll.h interfaces
This commit marks all functions in interrupt_controller_hal.h, cpu_ll.h and cpu_hal.h as deprecated. Users should use functions from esp_cpu.h instead.
This commit is contained in:

committed by
Darian Leung

parent
781d06af73
commit
6005cc9163
@@ -7,7 +7,7 @@
|
||||
#include <stdbool.h>
|
||||
#include "unity.h"
|
||||
#include "sdkconfig.h"
|
||||
#include "hal/cpu_hal.h"
|
||||
#include "esp_cpu.h"
|
||||
#include "esp_rom_uart.h"
|
||||
#include "esp_private/esp_clk.h"
|
||||
|
||||
@@ -90,12 +90,12 @@ void unity_gets(char *dst, size_t len)
|
||||
|
||||
void unity_exec_time_start(void)
|
||||
{
|
||||
s_test_start = cpu_hal_get_cycle_count();
|
||||
s_test_start = esp_cpu_get_cycle_count();
|
||||
}
|
||||
|
||||
void unity_exec_time_stop(void)
|
||||
{
|
||||
s_test_stop = cpu_hal_get_cycle_count();
|
||||
s_test_stop = esp_cpu_get_cycle_count();
|
||||
}
|
||||
|
||||
uint32_t unity_exec_time_get_ms(void)
|
||||
|
Reference in New Issue
Block a user