Initial Modifikations

This commit is contained in:
jomjol
2025-03-01 20:08:25 +01:00
parent cf96d49bd0
commit 9a82e0ac92
7 changed files with 4778 additions and 2 deletions

View File

@@ -213,13 +213,28 @@ bool Init_NVS_SDCard()
extern "C" void app_main(void)
{
TickType_t xDelay;
#if defined (BOARD_ESP32_S3_ALEKSEI)
// gpio_pad_select_gpio(ETH_EN);
// gpio_set_direction(ETH_EN, GPIO_MODE_OUTPUT);
// gpio_set_level(ETH_EN, 0);
// PER_EN activates power for camera,leds,and SDcard, Battery measurement voltage divider
gpio_pad_select_gpio(PER_EN);
gpio_set_direction(PER_EN, GPIO_MODE_OUTPUT);
gpio_set_level(PER_EN, 1);
xDelay = 1000 / portTICK_PERIOD_MS;
ESP_LOGD(TAG, "BOARD_ESP32_S3_ALEKSEI - Switch on Power for camera, ... : sleep for: %ldms", (long) xDelay * CONFIG_FREERTOS_HZ/portTICK_PERIOD_MS);
vTaskDelay( xDelay );
#endif //ETH_EN &&
//#ifdef CONFIG_HEAP_TRACING_STANDALONE
#if defined HEAP_TRACING_MAIN_WIFI || defined HEAP_TRACING_MAIN_START
//register a buffer to record the memory trace
ESP_ERROR_CHECK( heap_trace_init_standalone(trace_record, NUM_RECORDS) );
#endif
TickType_t xDelay;
#ifdef DISABLE_BROWNOUT_DETECTOR
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector