aboutsummaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/main.c b/main/main.c
index 19dd3cd..9fefed5 100644
--- a/main/main.c
+++ b/main/main.c
@@ -13,9 +13,9 @@ void blink_task() {
await_init(); // `blink_task` uses GPIO
while (true) {
- cyw43_arch_gpio_put(LED_PIN, 0);
+ cyw43_arch_gpio_put(CFG_LED_PIN, 0);
vTaskDelay(250 / portTICK_PERIOD_MS);
- cyw43_arch_gpio_put(LED_PIN, 1);
+ cyw43_arch_gpio_put(CFG_LED_PIN, 1);
vTaskDelay(250 / portTICK_PERIOD_MS);
}
}
@@ -24,7 +24,9 @@ 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);
+#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();