Integrated linux log into fatfs and spiffs host tests

pull/7130/head
Jakob Hasse 2021-05-25 15:07:38 +08:00
rodzic 0ea20caa71
commit ef2dba3921
5 zmienionych plików z 16 dodań i 2 usunięć

Wyświetl plik

@ -17,7 +17,6 @@ INCLUDE_DIRS := \
app_update/include \ app_update/include \
driver/include \ driver/include \
freertos/include \ freertos/include \
log/include \
newlib/include \ newlib/include \
sdmmc/include \ sdmmc/include \
vfs/include \ vfs/include \
@ -27,6 +26,7 @@ INCLUDE_DIRS := \
esp_hw_support/include \ esp_hw_support/include \
esp_hw_support/include/soc \ esp_hw_support/include/soc \
esp_system/include \ esp_system/include \
log/include \
xtensa/include \ xtensa/include \
xtensa/esp32/include \ xtensa/esp32/include \
soc/esp32/include \ soc/esp32/include \

Wyświetl plik

@ -1,7 +1,12 @@
# pragma once # pragma once
#define CONFIG_IDF_TARGET_ESP32 1 #define CONFIG_IDF_TARGET_ESP32 1
#define CONFIG_WL_SECTOR_SIZE 4096 #define CONFIG_WL_SECTOR_SIZE 4096
// for the Linux log component
#define CONFIG_LOG_TIMESTAMP_SOURCE_RTOS 1
#define CONFIG_LOG_DEFAULT_LEVEL 3 #define CONFIG_LOG_DEFAULT_LEVEL 3
#define CONFIG_LOG_MAXIMUM_LEVEL 3
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000 #define CONFIG_PARTITION_TABLE_OFFSET 0x8000
#define CONFIG_ESPTOOLPY_FLASHSIZE "8MB" #define CONFIG_ESPTOOLPY_FLASHSIZE "8MB"
//currently use the legacy implementation, since the stubs for new HAL are not done yet //currently use the legacy implementation, since the stubs for new HAL are not done yet

Wyświetl plik

@ -19,6 +19,7 @@
#include <unistd.h> #include <unistd.h>
#include <sdkconfig.h> #include <sdkconfig.h>
#include <esp_log.h> #include <esp_log.h>
#include <assert.h>
// compile time switches // compile time switches
#define SPIFFS_TAG "SPIFFS" #define SPIFFS_TAG "SPIFFS"

Wyświetl plik

@ -17,7 +17,6 @@ INCLUDE_DIRS := \
app_update/include \ app_update/include \
driver/include \ driver/include \
freertos/include \ freertos/include \
log/include \
newlib/include \ newlib/include \
sdmmc/include \ sdmmc/include \
vfs/include \ vfs/include \
@ -28,6 +27,7 @@ INCLUDE_DIRS := \
esp_hw_support/include \ esp_hw_support/include \
esp_hw_support/include/soc \ esp_hw_support/include/soc \
esp_system/include \ esp_system/include \
log/include \
xtensa/include \ xtensa/include \
xtensa/esp32/include \ xtensa/esp32/include \
soc/esp32/include \ soc/esp32/include \

Wyświetl plik

@ -13,9 +13,17 @@
#define CONFIG_SPIFFS_USE_MTIME 1 #define CONFIG_SPIFFS_USE_MTIME 1
#define CONFIG_WL_SECTOR_SIZE 4096 #define CONFIG_WL_SECTOR_SIZE 4096
// for log component with linux target
#define CONFIG_LOG_DEFAULT_LEVEL 3 #define CONFIG_LOG_DEFAULT_LEVEL 3
#define CONFIG_LOG_MAXIMUM_LEVEL 3
#define CONFIG_LOG_TIMESTAMP_SOURCE_RTOS 1
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000 #define CONFIG_PARTITION_TABLE_OFFSET 0x8000
#define CONFIG_ESPTOOLPY_FLASHSIZE "8MB" #define CONFIG_ESPTOOLPY_FLASHSIZE "8MB"
//currently use the legacy implementation, since the stubs for new HAL are not done yet //currently use the legacy implementation, since the stubs for new HAL are not done yet
#define CONFIG_SPI_FLASH_USE_LEGACY_IMPL 1 #define CONFIG_SPI_FLASH_USE_LEGACY_IMPL 1
#undef _Static_assert
#define _Static_assert(cond, message)