Skip to content

Commit af03265

Browse files
committed
system/user: remove blufi_daemon & add key_daemon
1 parent edc3fcf commit af03265

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

main/src/system/user.c

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,24 @@
99
#include "freertos/task.h"
1010

1111
#include "user/gui_daemon.h"
12+
#include "user/key_daemon.h"
1213
#include "user/ntp_daemon.h"
1314
#include "user/led_daemon.h"
1415
#include "user/nfc_daemon.h"
15-
#include "user/wifi_daemon.h"
1616
#include "user/audio_daemon.h"
17-
#include "user/blufi_daemon.h"
1817
#include "user/http2_daemon.h"
1918

2019
void user_init(void)
2120
{
22-
xTaskCreate(nfc_daemon, "nfc_daemon", 4000, NULL, 5, NULL);
23-
xTaskCreate(ntp_daemon, "ntp_daemon", 2000, NULL, 5, NULL);
24-
xTaskCreate(wifi_daemon, "wifi_daemon", 768, NULL, 5, NULL);
21+
xTaskCreate(nfc_daemon, "nfc_daemon", 5120, NULL, 5, NULL);
22+
xTaskCreate(ntp_daemon, "ntp_daemon", 2048, NULL, 5, NULL);
23+
24+
#if defined(CONFIG_ENABLE_SMART_CONFIG)
25+
xTaskCreate(key_daemon, "key_daemon", 2048, NULL, 5, NULL);
26+
#endif
2527

2628
#if defined(CONFIG_ENABLE_LED)
27-
xTaskCreate(led_daemon, "led_daemon", 640, NULL, 6, NULL);
29+
xTaskCreate(led_daemon, "led_daemon", 1024, NULL, 6, NULL);
2830
#endif
2931

3032
#if defined(CONFIG_ENABLE_GUI)
@@ -35,9 +37,5 @@ void user_init(void)
3537
xTaskCreate(audio_daemon, "audio_daemon", 8448, NULL, 7, NULL);
3638
#endif
3739

38-
#if defined(CONFIG_ENABLE_BLUFI)
39-
xTaskCreate(blufi_daemon, "blufi_daemon", 1024, NULL, 7, NULL);
40-
#endif
41-
4240
xTaskCreate(http2_daemon, "http2_daemon", 19200, NULL, 7, NULL);
4341
}

0 commit comments

Comments
 (0)