Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT200T_ESP32
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
RT200T
RT200T_ESP32
Commits
1a023499
Commit
1a023499
authored
Jun 06, 2024
by
李茂军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:升级时才开wifi
parent
204d45bf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
Protocol_User.c
RT200T_2_ESP32/main/Protocol_User.c
+1
-1
main_user.c
RT200T_2_ESP32/main/main_user.c
+10
-9
sdkconfig
RT200T_2_ESP32/sdkconfig
+2
-0
wifi_service.c
RT200T_2_ESP32/source/wifi/wifi_service.c
+1
-1
No files found.
RT200T_2_ESP32/main/Protocol_User.c
View file @
1a023499
...
...
@@ -273,7 +273,7 @@ static void Protocol_UartHandle(const Protocol_Data_t *pData)//esp接收底板
{
Wifi_OTA_Request
=
1
;
printf
(
"收到进入OTA指令
\r\n
"
);
SwitchMode
=
1
;
SwitchMode
=
0x5AA57AA7
;
wifiServiceStart
();
}
// }
...
...
RT200T_2_ESP32/main/main_user.c
View file @
1a023499
...
...
@@ -42,9 +42,10 @@ uint32_t Sys_1ms_Cnt;
#define SYS_RUN_TASK_1000MS (Sys_1ms_Cnt % 1000 == 5)
uint32_t
testcnt
;
TaskHandle_t
wifi_service_hdl
=
NULL
;
extern
void
Upgrade_BAT32A239_Task
(
void
*
arg
);
void
wifi_service_task
(
void
*
arg
);
extern
uint32_t
SwitchMode
;
static
void
Sys_Run_Tasks
(
void
*
arg
)
{
...
...
@@ -53,6 +54,8 @@ static void Sys_Run_Tasks(void *arg)
{
if
(
SwitchMode
!=
0
)
{
xTaskCreatePinnedToCore
(
wifi_service_task
,
"wifi_service_task"
,
4096
,
NULL
,
5
,
&
wifi_service_hdl
,
1
);
xTaskCreatePinnedToCore
(
Upgrade_BAT32A239_Task
,
"Upgrade_BAT32A239_Task"
,
1024
*
4
,
NULL
,
5
,
NULL
,
1
);
break
;
}
if
(
Sys_1ms_Cnt
<
499
)
...
...
@@ -128,11 +131,9 @@ static void Sys_Run_Tasks(void *arg)
vTaskDelete
(
NULL
);
}
TaskHandle_t
wifi_service_hdl
=
NULL
;
extern
uint32_t
SwitchMode
;
extern
void
wifiServiceStart
(
void
);
extern
void
Upgrade_BAT32A239_Task
(
void
*
arg
);
static
void
wifi_service_task
(
void
*
arg
)
void
wifi_service_task
(
void
*
arg
)
{
while
(
1
)
{
...
...
@@ -161,8 +162,8 @@ void app_main(void)
printf
(
"KL30 INIT OVER~~~~~~
\r\n
"
);
xTaskCreatePinnedToCore
(
Sys_Run_Tasks
,
"Sys_Run_Tasks"
,
4096
,
NULL
,
3
,
Sys_Run_Taskshdl
,
1
);
xTaskCreatePinnedToCore
(
wifi_service_task
,
"wifi_service_task"
,
4096
,
NULL
,
5
,
&
wifi_service_hdl
,
1
);
xTaskCreatePinnedToCore
(
Upgrade_BAT32A239_Task
,
"Upgrade_BAT32A239_Task"
,
1024
*
4
,
NULL
,
5
,
NULL
,
1
);
//
xTaskCreatePinnedToCore(wifi_service_task, "wifi_service_task", 4096, NULL, 5, &wifi_service_hdl, 1);
//
xTaskCreatePinnedToCore(Upgrade_BAT32A239_Task, "Upgrade_BAT32A239_Task", 1024 * 4, NULL, 5, NULL, 1);
}
...
...
RT200T_2_ESP32/sdkconfig
View file @
1a023499
...
...
@@ -701,6 +701,8 @@ CONFIG_BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD=20
CONFIG_BTDM_RESERVE_DRAM=0xdb5c
CONFIG_BTDM_CTRL_HLI=y
# end of Controller Options
# CONFIG_BT_HCI_LOG_DEBUG_EN is not set
# end of Bluetooth
# CONFIG_BLE_MESH is not set
...
...
RT200T_2_ESP32/source/wifi/wifi_service.c
View file @
1a023499
...
...
@@ -120,7 +120,7 @@ void wifi_service(void)
void
wifiServiceStart
(
void
)
{
if
(
wifi_service_info
.
status
==
WIFI_SERVICE_STOP
)
//
if(wifi_service_info.status == WIFI_SERVICE_STOP)
{
// 开启WiFi服务
wifi_service_info
.
status
=
WIFI_SERVICE_INIT
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment