Updates for riscv support

* Target components pull in xtensa component directly
* Use CPU HAL where applicable
* Remove unnecessary xtensa headers
* Compilation changes necessary to support non-xtensa gcc types (ie int32_t/uint32_t is no
  longer signed/unsigned int).

Changes come from internal branch commit a6723fc
This commit is contained in:
Angus Gratton
2020-11-06 15:00:07 +11:00
parent 87e13baaf1
commit 420aef1ffe
75 changed files with 498 additions and 183 deletions

View File

@@ -15,6 +15,7 @@
#include "unity.h"
#include "sdkconfig.h"
#include "soc/cpu.h"
#include "hal/cpu_hal.h"
#include "esp_rom_uart.h"
#if CONFIG_IDF_TARGET_ESP32
#include "esp32/clk.h"
@@ -75,12 +76,12 @@ void unity_gets(char *dst, size_t len)
void unity_exec_time_start(void)
{
RSR(CCOUNT, s_test_start);
s_test_start = cpu_hal_get_cycle_count();
}
void unity_exec_time_stop(void)
{
RSR(CCOUNT, s_test_stop);
s_test_stop = cpu_hal_get_cycle_count();
}
uint32_t unity_exec_time_get_ms(void)