diff --git a/TC1/TC1.mk b/TC1/TC1.mk index 42d7982..ac0c3f3 100644 --- a/TC1/TC1.mk +++ b/TC1/TC1.mk @@ -32,7 +32,7 @@ $(NAME)_SOURCES := main.c\ user_sntp.c\ user_rtc.c\ user_mqtt_client.c\ - user_tftp_ota.c\ + user_ota.c\ user_function.c $(NAME)_COMPONENTS := protocols/SNTP\ diff --git a/TC1/user_function.c b/TC1/user_function.c index 1918cd0..6b0d0ef 100644 --- a/TC1/user_function.c +++ b/TC1/user_function.c @@ -3,6 +3,7 @@ #include "main.h" #include "user_gpio.h" #include "cJSON/cJSON.h" +#include "user_ota.h" uint32_t last_time = 0; diff --git a/TC1/user_gpio.c b/TC1/user_gpio.c index f023f4c..259ba74 100644 --- a/TC1/user_gpio.c +++ b/TC1/user_gpio.c @@ -5,7 +5,6 @@ #include "user_mqtt_client.h" #include "user_udp.h" #include "cJSON/cJSON.h" -#include "user_tftp_ota.h" mico_gpio_t relay[Relay_NUM] = { Relay_0, Relay_1, Relay_2, Relay_3, Relay_4, Relay_5 }; diff --git a/TC1/user_tftp_ota.c b/TC1/user_ota.c similarity index 100% rename from TC1/user_tftp_ota.c rename to TC1/user_ota.c diff --git a/TC1/user_ota.h b/TC1/user_ota.h new file mode 100644 index 0000000..0f9ede0 --- /dev/null +++ b/TC1/user_ota.h @@ -0,0 +1,7 @@ +#ifndef __USER_OTA_H_ +#define __USER_OTA_H_ + + +void user_ota_start(char *url, char *md5); + +#endif diff --git a/TC1/user_tftp_ota.h b/TC1/user_tftp_ota.h deleted file mode 100644 index 5d7f8b7..0000000 --- a/TC1/user_tftp_ota.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef __USER_TFTP_OTA_H_ -#define __USER_TFTP_OTA_H_ - - -void user_ota_start(char *url, char *md5); - -#endif