aboutsummaryrefslogtreecommitdiff
path: root/main/init.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-09 10:23:15 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-09 10:23:15 +0200
commitf6ac5839b6b54713126d430d8a037138d6619dce (patch)
tree4ff12033575cdf17787f4ccd91e93222df93b20f /main/init.h
parent228f50b8cb0e2bbd579cc8ae4f0a08e6d34af66e (diff)
clean up init functions
Diffstat (limited to 'main/init.h')
-rw-r--r--main/init.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/main/init.h b/main/init.h
index de9023c..73d2773 100644
--- a/main/init.h
+++ b/main/init.h
@@ -1,38 +1,11 @@
#pragma once
-#include <FreeRTOS.h>
-#include <event_groups.h>
-
-/**
- * \brief init function complete event group handle
- *
- * This is required to make sure the main task waits until initialization is
- * complete. Due to the combination of FreeRTOS + lwIP, the initialization
- * should be done while the task scheduler is running. Specifically the
- * cyw43_arch_init functions make the pico hang indefinitely when used while
- * the task scheduler is not running.
- *
- * \note `init_complete` only utilizes LSB, so `uxBitsToWaitFor` should always
- * be set to *1*
- */
-extern EventGroupHandle_t init_complete;
-
/**
- * \brief initialize all peripherals on the pico
+ * \brief initialize the main controller
*
* This function only synchronously initializes the standard input/output (used
* for `printf` and `panic`), and queues all other types of initialization in
* the `init` task using FreeRTOS.
- *
- * \note Tasks dependent on the wifi being initialized should use the
- * `init_complete` event group to wait for initialization to complete!
*/
void init();
-/**
- * \brief block task until all initialization is complete
- *
- * utility function, see above comments
- */
-void await_init();
-