mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
Initial Modifikations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user