aboutsummaryrefslogtreecommitdiff
path: root/main/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.cpp')
-rw-r--r--main/main.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp
index d85c76e..d9d5e56 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -2,10 +2,15 @@
#include <task.h>
#include <pico/stdlib.h>
+#include <pico/time.h>
#include "config.h"
#include "init.h"
+#include <lwip/sockets.h>
+#include <lwip/sys.h>
+#include <lwip/opt.h>
+
void blink_task() {
while (true) {
cyw43_arch_gpio_put(LED_PIN, 0);
@@ -18,7 +23,15 @@ void blink_task() {
int main() {
init();
- xTaskCreate((TaskFunction_t) blink_task, "blink", 128, NULL, 1, NULL);
- vTaskStartScheduler();
+ for (int i = 5; i > 0; i--) {
+ printf("starting in %d...\n", i);
+ sleep_ms(1000);
+ }
+
+ // this should compile but not work
+ lwip_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
+
+ // xTaskCreate((TaskFunction_t) blink_task, "blink", 128, NULL, 1, NULL);
+ // vTaskStartScheduler();
}