From f18b200071c5cb8bb1fbba6af14ac54dbc88e95c Mon Sep 17 00:00:00 2001 From: zwsd Date: Mon, 26 Sep 2022 15:29:51 +0800 Subject: [PATCH] update --- main/CMakeLists.txt | 1 + main/app_main.cpp | 1 + main/camera.cpp | 4 +++- main/camera.h | 3 ++- main/heating_plate.c | 9 +++++++++ main/heating_plate.h | 6 ++++++ main/wifi.c | 4 ++-- main/wifi.h | 4 ++-- 8 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 main/heating_plate.c create mode 100644 main/heating_plate.h diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 8db0980..af478c3 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -5,6 +5,7 @@ set(srcs "app_main.cpp" # "port.c" "key.c" "wifi.c" + "heating_plate.c" ) idf_component_register(SRCS "${srcs}"# diff --git a/main/app_main.cpp b/main/app_main.cpp index 18d69fc..3f5d87a 100644 --- a/main/app_main.cpp +++ b/main/app_main.cpp @@ -6,6 +6,7 @@ extern "C" #include "light.h" #include "key.h" #include "wifi.h" +#include "heating_plate.h" } power_state_light_structer_t power_state_light_structer = { diff --git a/main/camera.cpp b/main/camera.cpp index 38688b1..37c09c5 100644 --- a/main/camera.cpp +++ b/main/camera.cpp @@ -20,4 +20,6 @@ void camera_init(void) {} void camera_registered_cb(void) {} -void camera_taking_pictures(void) {} \ No newline at end of file +void camera_taking_pictures(void) {} + +void camera_recognition_reaction_plate(void) {} \ No newline at end of file diff --git a/main/camera.h b/main/camera.h index f8d8134..8feeff9 100644 --- a/main/camera.h +++ b/main/camera.h @@ -3,4 +3,5 @@ void camera_motion_detection_init(void); void camera_init(void); void camera_registered_cb(void); -void camera_taking_pictures(void); \ No newline at end of file +void camera_taking_pictures(void); +void camera_recognition_reaction_plate(void); \ No newline at end of file diff --git a/main/heating_plate.c b/main/heating_plate.c new file mode 100644 index 0000000..49ac34b --- /dev/null +++ b/main/heating_plate.c @@ -0,0 +1,9 @@ +#include "heating_plate.h" + +void T_heating_plate_init(void) {} + +void T_heating_plate_registered_cb(void) {} + +void T_heating_plate_start(void) {} + +void T_heating_plate_stop(void) {} diff --git a/main/heating_plate.h b/main/heating_plate.h new file mode 100644 index 0000000..a215ae6 --- /dev/null +++ b/main/heating_plate.h @@ -0,0 +1,6 @@ +#pragma once + +void T_heating_plate_init(void); +void T_heating_plate_registered_cb(void); +void T_heating_plate_start(void); +void T_heating_plate_stop(void); \ No newline at end of file diff --git a/main/wifi.c b/main/wifi.c index 2f8b00c..2a67b2e 100644 --- a/main/wifi.c +++ b/main/wifi.c @@ -8,9 +8,9 @@ void T_wifi_init(void) {} void T_wifi_registered_cb(void) {} -void T_wifi_start_connect(void) {} +void T_wifi_connect(void) {} -void T_wifi_stop_connect(void) {} +void T_wifi_disconnect(void) {} bool T_wifi_connect_timeout(void) { return true; } diff --git a/main/wifi.h b/main/wifi.h index 34a6a55..6b371db 100644 --- a/main/wifi.h +++ b/main/wifi.h @@ -10,7 +10,7 @@ typedef struct void T_wifi_init(void); void T_wifi_registered_cb(void); -void T_wifi_start_connect(void); -void T_wifi_stop_connect(void); +void T_wifi_connect(void); +void T_wifi_disconnect(void); bool T_wifi_connect_timeout(void); void T_wifi_send_data(void); \ No newline at end of file