diff --git a/code/include/defines.h b/code/include/defines.h index fdae30cd..ac709256 100644 --- a/code/include/defines.h +++ b/code/include/defines.h @@ -313,8 +313,8 @@ // ETH_EN activates power for the Ethernet // PER_EN activates power for camera,leds,and SDcard, Battery measurement voltage divider - #define ETH_EN GPIO_NUM_45 - #define PER_EN GPIO_NUM_46 + #define ETH_ENABLE GPIO_NUM_45 + #define PER_ENABLE GPIO_NUM_46 // SD card (operated with SDMMC peripheral) //------------------------------------------------- @@ -331,27 +331,6 @@ #define GPIO_SDCARD_D3 GPIO_NUM_13 #endif - /* - #define PWDN_GPIO_NUM -1 - #define RESET_GPIO_NUM -1 - #define XCLK_GPIO_NUM GPIO_NUM_15 - #define SIOD_GPIO_NUM GPIO_NUM_4 - #define SIOC_GPIO_NUM GPIO_NUM_5 - - #define Y9_GPIO_NUM GPIO_NUM_16 - #define Y8_GPIO_NUM GPIO_NUM_17 - #define Y7_GPIO_NUM GPIO_NUM_18 - #define Y6_GPIO_NUM GPIO_NUM_12 - #define Y5_GPIO_NUM GPIO_NUM_10 - #define Y4_GPIO_NUM GPIO_NUM_8 - #define Y3_GPIO_NUM GPIO_NUM_9 - #define Y2_GPIO_NUM GPIO_NUM_11 - #define VSYNC_GPIO_NUM GPIO_NUM_6 - #define HREF_GPIO_NUM GPIO_NUM_7 - #define PCLK_GPIO_NUM GPIO_NUM_13 - */ - - #define CAM_PIN_PWDN GPIO_NUM_NC #define CAM_PIN_RESET GPIO_NUM_NC //software reset will be performed #define CAM_PIN_XCLK GPIO_NUM_15 diff --git a/code/main/main.cpp b/code/main/main.cpp index 253566cc..a9dbc05f 100644 --- a/code/main/main.cpp +++ b/code/main/main.cpp @@ -219,12 +219,12 @@ extern "C" void app_main(void) // 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); + // PER_ENABLE activates power for camera,leds,and SDcard, Battery measurement voltage divider + gpio_pad_select_gpio(PER_ENABLE); + gpio_set_direction(PER_ENABLE, GPIO_MODE_OUTPUT); + gpio_set_level(PER_ENABLE, 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); + ESP_LOGI(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 &&