esp_rom: extract int matrix route and cpu ticks getter

This commit is contained in:
morris
2022-01-17 17:44:25 +08:00
parent 4cee573f44
commit ef00bd59dc
50 changed files with 170 additions and 223 deletions

View File

@@ -14,13 +14,7 @@
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
#ifndef __ASSEMBLER__
#if CONFIG_IDF_TARGET_ESP32C3
#include "esp32c3/rom/ets_sys.h"
#elif CONFIG_IDF_TARGET_ESP32H2
#include "esp32h2/rom/ets_sys.h"
#elif CONFIG_IDF_TARGET_ESP32C2
#include "esp32c2/rom/ets_sys.h"
#endif
#include "esp_rom_sys.h"
#endif // __ASSEMBLER__
/* The maximum interrupt priority from which FreeRTOS.org API functions can

View File

@@ -43,13 +43,6 @@ int xt_clock_freq(void) __attribute__((deprecated));
#ifndef __ASSEMBLER__
#include <assert.h>
#include "esp_rom_sys.h"
#if CONFIG_IDF_TARGET_ESP32
#include "esp32/rom/ets_sys.h" // will be removed in idf v5.0
#elif CONFIG_IDF_TARGET_ESP32S2
#include "esp32s2/rom/ets_sys.h"
#elif CONFIG_IDF_TARGET_ESP32S3
#include "esp32s3/rom/ets_sys.h"
#endif
#endif // __ASSEMBLER__
#if CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION