aboutsummaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorThomasintAnker <thomasintanker1@gmail.com>2024-06-18 16:23:51 +0200
committerThomasintAnker <thomasintanker1@gmail.com>2024-06-18 16:23:51 +0200
commita55d0bed6240c54f6173b1e38e80212c02c302de (patch)
tree07c15eebc8cd84e1071a3f72d3c74475017372f3 /main/main.c
parentb45b5d04daa29fcdd456233a931dcbb5b287769f (diff)
parent245fde65808ce902064ab438296f04f691d007e7 (diff)
Merge branch 'master' into wip/handover
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/main/main.c b/main/main.c
index 7558a0b..7c1bb6a 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1,32 +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(LED_PIN, 0);
- vTaskDelay(250 / portTICK_PERIOD_MS);
- cyw43_arch_gpio_put(LED_PIN, 1);
- vTaskDelay(250 / portTICK_PERIOD_MS);
- }
-}
int main() {
init();
-
- xTaskCreate((TaskFunction_t) blink_task, "blink", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL);
- xTaskCreate((TaskFunction_t) serve_task, "serve", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL);
- xTaskCreate((TaskFunction_t) bus_task, "bus", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL);
-
vTaskStartScheduler();
while(1) {