Merge branch 'feature/dfs' into 'master'

Dynamic frequency scaling

See merge request !1189
This commit is contained in:
Ivan Grokhotkov
2017-10-22 12:34:11 +08:00
55 changed files with 1988 additions and 156 deletions

View File

@@ -8,6 +8,7 @@
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "esp_clk.h"
#include "soc/cpu.h"
#include "esp_heap_caps.h"
#include "test_utils.h"
@@ -179,7 +180,7 @@ static void unity_run_single_test_by_index_parse(const char* filter, int index_m
unity_run_single_test_by_index(test_index - 1);
uint32_t end;
RSR(CCOUNT, end);
uint32_t ms = (end - start) / (XT_CLOCK_FREQ / 1000);
uint32_t ms = (end - start) / (esp_clk_cpu_freq() / 1000);
printf("Test ran in %dms\n", ms);
}
}