diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-09 10:23:15 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-09 10:23:15 +0200 |
commit | f6ac5839b6b54713126d430d8a037138d6619dce (patch) | |
tree | 4ff12033575cdf17787f4ccd91e93222df93b20f /main/main.c | |
parent | 228f50b8cb0e2bbd579cc8ae4f0a08e6d34af66e (diff) |
clean up init functions
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/main/main.c b/main/main.c index 5d2abd1..1c615fc 100644 --- a/main/main.c +++ b/main/main.c @@ -1,34 +1,10 @@ #include <FreeRTOS.h> #include <task.h> -#include <pico/stdlib.h> -#include <pico/time.h> - -#include "config.h" #include "init.h" -#include "sock.h" -#include "i2c.h" - -void blink_task() { - await_init(); // `blink_task` uses GPIO - - while (true) { - cyw43_arch_gpio_put(CFG_LED_PIN, 1); - vTaskDelay(50 / portTICK_PERIOD_MS); - cyw43_arch_gpio_put(CFG_LED_PIN, 0); - vTaskDelay(1000 / portTICK_PERIOD_MS); - } -} int main() { init(); - - xTaskCreate((TaskFunction_t) blink_task, "blink", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL); -#ifndef CFG_SRV_DISABLE - xTaskCreate((TaskFunction_t) serve_task, "serve", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL); -#endif - xTaskCreate((TaskFunction_t) bus_task, "bus", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL); - vTaskStartScheduler(); } |