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:
Guillaume Souchere
2022-07-21 19:24:42 +08:00
committed by Darian Leung
parent 781d06af73
commit 6005cc9163
89 changed files with 362 additions and 343 deletions

View File

@@ -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)