aboutsummaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-10 13:34:22 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-10 13:34:22 +0200
commit8a53d06efd517908f88f697a250059200e882c06 (patch)
tree7a259dfa35d77e4b27ee78c0ccd5145e07f05371 /main/main.c
parent9263beca5c84f5f136c913439fe0557f1469e120 (diff)
fix TCP socket server
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/main/main.c b/main/main.c
index a0a09a0..73b6708 100644
--- a/main/main.c
+++ b/main/main.c
@@ -8,10 +8,6 @@
#include "init.h"
#include "sock.h"
-// #include <lwip/sockets.h>
-// #include <lwip/sys.h>
-// #include <lwip/opt.h>
-
void blink_task() {
await_init(); // `blink_task` uses GPIO
@@ -23,20 +19,10 @@ void blink_task() {
}
}
-void test_task() {
- int i = 0;
- while (true) {
- // stdio is initialized synchronously, so no `await_init` is needed
- printf("hello #%d...\n", ++i);
- vTaskDelay(1000 / portTICK_PERIOD_MS);
- }
-}
-
int main() {
init();
xTaskCreate((TaskFunction_t) blink_task, "blink", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL);
- xTaskCreate((TaskFunction_t) test_task, "test", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL);
xTaskCreate((TaskFunction_t) serve_task, "serve", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL);
vTaskStartScheduler();