Skip to content

Commit

Permalink
Update workflows names
Browse files Browse the repository at this point in the history
Add optimizations
  • Loading branch information
Sgw32 committed Oct 6, 2024
1 parent d1f85e6 commit 5288d69
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 33 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions ESP32/Digifiz/build/bootloader/config/sdkconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
#define CONFIG_PARTITION_TABLE_MD5 1
#define CONFIG_COMPILER_OPTIMIZATION_SIZE 1
#define CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE 1
#define CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT 1
#define CONFIG_COMPILER_FLOAT_LIB_FROM_GCCLIB 1
#define CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL 2
#define CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL 1
#define CONFIG_COMPILER_HIDE_PATHS_MACROS 1
#define CONFIG_COMPILER_STACK_CHECK_MODE_NONE 1
#define CONFIG_COMPILER_RT_LIB_GCCLIB 1
Expand Down Expand Up @@ -521,7 +521,7 @@
#define CONFIG_FREERTOS_ENABLE_TASK_SNAPSHOT 1
#define CONFIG_FREERTOS_PLACE_SNAPSHOT_FUNS_INTO_FLASH 1
#define CONFIG_HAL_ASSERTION_EQUALS_SYSTEM 1
#define CONFIG_HAL_DEFAULT_ASSERTION_LEVEL 2
#define CONFIG_HAL_DEFAULT_ASSERTION_LEVEL 1
#define CONFIG_HAL_WDT_USE_ROM_IMPL 1
#define CONFIG_LOG_DEFAULT_LEVEL_INFO 1
#define CONFIG_LOG_DEFAULT_LEVEL 3
Expand Down Expand Up @@ -595,7 +595,7 @@
#define CONFIG_LOG_BOOTLOADER_LEVEL_INFO CONFIG_BOOTLOADER_LOG_LEVEL_INFO
#define CONFIG_MAIN_TASK_STACK_SIZE CONFIG_ESP_MAIN_TASK_STACK_SIZE
#define CONFIG_MONITOR_BAUD CONFIG_ESPTOOLPY_MONITOR_BAUD
#define CONFIG_OPTIMIZATION_ASSERTIONS_ENABLED CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE
#define CONFIG_OPTIMIZATION_ASSERTIONS_SILENT CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT
#define CONFIG_OPTIMIZATION_ASSERTION_LEVEL CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL
#define CONFIG_OPTIMIZATION_LEVEL_RELEASE CONFIG_COMPILER_OPTIMIZATION_SIZE
#define CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS CONFIG_SPI_FLASH_DANGEROUS_WRITE_ABORTS
Expand Down
8 changes: 4 additions & 4 deletions ESP32/Digifiz/build/config/sdkconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@
#define CONFIG_DEFAULT_AP_ESP_WIFI_SSID "Digifiz_AP"
#define CONFIG_DEFAULT_AP_ESP_WIFI_PASS ""
#define CONFIG_COMPILER_OPTIMIZATION_SIZE 1
#define CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE 1
#define CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT 1
#define CONFIG_COMPILER_FLOAT_LIB_FROM_GCCLIB 1
#define CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL 2
#define CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL 1
#define CONFIG_COMPILER_HIDE_PATHS_MACROS 1
#define CONFIG_COMPILER_STACK_CHECK_MODE_NONE 1
#define CONFIG_COMPILER_RT_LIB_GCCLIB 1
Expand Down Expand Up @@ -613,7 +613,7 @@
#define CONFIG_FREERTOS_ENABLE_TASK_SNAPSHOT 1
#define CONFIG_FREERTOS_PLACE_SNAPSHOT_FUNS_INTO_FLASH 1
#define CONFIG_HAL_ASSERTION_EQUALS_SYSTEM 1
#define CONFIG_HAL_DEFAULT_ASSERTION_LEVEL 2
#define CONFIG_HAL_DEFAULT_ASSERTION_LEVEL 1
#define CONFIG_HAL_WDT_USE_ROM_IMPL 1
#define CONFIG_HAL_SPI_MASTER_FUNC_IN_IRAM 1
#define CONFIG_HAL_SPI_SLAVE_FUNC_IN_IRAM 1
Expand Down Expand Up @@ -925,7 +925,7 @@
#define CONFIG_LOG_BOOTLOADER_LEVEL_INFO CONFIG_BOOTLOADER_LOG_LEVEL_INFO
#define CONFIG_MAIN_TASK_STACK_SIZE CONFIG_ESP_MAIN_TASK_STACK_SIZE
#define CONFIG_MONITOR_BAUD CONFIG_ESPTOOLPY_MONITOR_BAUD
#define CONFIG_OPTIMIZATION_ASSERTIONS_ENABLED CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE
#define CONFIG_OPTIMIZATION_ASSERTIONS_SILENT CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT
#define CONFIG_OPTIMIZATION_ASSERTION_LEVEL CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL
#define CONFIG_OPTIMIZATION_LEVEL_RELEASE CONFIG_COMPILER_OPTIMIZATION_SIZE
#define CONFIG_PM_POWER_DOWN_TAGMEM_IN_LIGHT_SLEEP CONFIG_PM_RESTORE_CACHE_TAGMEM_AFTER_LIGHT_SLEEP
Expand Down
12 changes: 6 additions & 6 deletions ESP32/Digifiz/main/device_sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ static void deep_sleep_task(void *args)
}
}

static void example_deep_sleep_register_rtc_timer_wakeup(void)
{
const int wakeup_time_sec = 20;
printf("Enabling timer wakeup, %ds\n", wakeup_time_sec);
ESP_ERROR_CHECK(esp_sleep_enable_timer_wakeup(wakeup_time_sec * 1000000));
}
// static void example_deep_sleep_register_rtc_timer_wakeup(void)
// {
// const int wakeup_time_sec = 20;
// printf("Enabling timer wakeup, %ds\n", wakeup_time_sec);
// ESP_ERROR_CHECK(esp_sleep_enable_timer_wakeup(wakeup_time_sec * 1000000));
// }

esp_err_t initDeviceSleep() {
ESP_LOGI(LOG_TAG, "initDeviceSleep started");
Expand Down
6 changes: 3 additions & 3 deletions ESP32/Digifiz/main/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ typedef enum {
PARAMETER_SET_MINUTE = 254,
PARAMETER_RESET_DAILY_MILEAGE = 253,
PARAMETER_RESET_DIGIFIZ = 252,
PARAMETER_TOGGLE_MILES = 251,
PARAMETER_TOGGLE_GALLONS = 250,
PARAMETER_TOGGLE_FAHRENHEIT = 249,
// Data acquisition
PARAMETER_GET_ACCUMULATED_UPTIME = 251,
PARAMETER_GET_COOLANT_TEMPERATURE = 250,
Expand All @@ -78,6 +75,9 @@ typedef enum {
PARAMETER_GET_GPIO_PINS = 236,
PARAMETER_MEMORY_LOCK = 235,
PARAMETER_MEMORY_UNLOCK = 234,
PARAMETER_TOGGLE_MILES = 233,
PARAMETER_TOGGLE_GALLONS = 232,
PARAMETER_TOGGLE_FAHRENHEIT = 231,
} DigifizProtocol;

void initComProtocol();
Expand Down
31 changes: 15 additions & 16 deletions ESP32/Digifiz/sdkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,11 @@ CONFIG_DEFAULT_AP_ESP_WIFI_PASS=""
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
# CONFIG_COMPILER_OPTIMIZATION_PERF is not set
# CONFIG_COMPILER_OPTIMIZATION_NONE is not set
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
# CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT is not set
# CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE is not set
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
# CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE is not set
CONFIG_COMPILER_FLOAT_LIB_FROM_GCCLIB=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2
CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=1
# CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT is not set
CONFIG_COMPILER_HIDE_PATHS_MACROS=y
# CONFIG_COMPILER_CXX_EXCEPTIONS is not set
Expand Down Expand Up @@ -1267,8 +1267,7 @@ CONFIG_FREERTOS_PLACE_SNAPSHOT_FUNS_INTO_FLASH=y
CONFIG_HAL_ASSERTION_EQUALS_SYSTEM=y
# CONFIG_HAL_ASSERTION_DISABLE is not set
# CONFIG_HAL_ASSERTION_SILENT is not set
# CONFIG_HAL_ASSERTION_ENABLE is not set
CONFIG_HAL_DEFAULT_ASSERTION_LEVEL=2
CONFIG_HAL_DEFAULT_ASSERTION_LEVEL=1
CONFIG_HAL_WDT_USE_ROM_IMPL=y
CONFIG_HAL_SPI_MASTER_FUNC_IN_IRAM=y
CONFIG_HAL_SPI_SLAVE_FUNC_IN_IRAM=y
Expand Down Expand Up @@ -1899,14 +1898,6 @@ CONFIG_WIFI_PROV_STA_ALL_CHANNEL_SCAN=y
# CONFIG_WIFI_PROV_STA_FAST_SCAN is not set
# end of Wi-Fi Provisioning Manager

#
# jsmn
#
# CONFIG_JSMN_PARENT_LINKS is not set
# CONFIG_JSMN_STRICT is not set
# CONFIG_JSMN_STATIC is not set
# end of jsmn

#
# mDNS
#
Expand Down Expand Up @@ -1936,6 +1927,14 @@ CONFIG_MDNS_PREDEF_NETIF_AP=y
CONFIG_MDNS_PREDEF_NETIF_ETH=y
# end of MDNS Predefined interfaces
# end of mDNS

#
# jsmn
#
# CONFIG_JSMN_PARENT_LINKS is not set
# CONFIG_JSMN_STRICT is not set
# CONFIG_JSMN_STATIC is not set
# end of jsmn
# end of Component config

# CONFIG_IDF_EXPERIMENTAL_FEATURES is not set
Expand All @@ -1962,10 +1961,10 @@ CONFIG_MONITOR_BAUD=115200
# CONFIG_COMPILER_OPTIMIZATION_DEFAULT is not set
CONFIG_OPTIMIZATION_LEVEL_RELEASE=y
CONFIG_COMPILER_OPTIMIZATION_LEVEL_RELEASE=y
CONFIG_OPTIMIZATION_ASSERTIONS_ENABLED=y
# CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is not set
# CONFIG_OPTIMIZATION_ASSERTIONS_ENABLED is not set
CONFIG_OPTIMIZATION_ASSERTIONS_SILENT=y
# CONFIG_OPTIMIZATION_ASSERTIONS_DISABLED is not set
CONFIG_OPTIMIZATION_ASSERTION_LEVEL=2
CONFIG_OPTIMIZATION_ASSERTION_LEVEL=1
# CONFIG_CXX_EXCEPTIONS is not set
CONFIG_STACK_CHECK_NONE=y
# CONFIG_STACK_CHECK_NORM is not set
Expand Down

0 comments on commit 5288d69

Please sign in to comment.