diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-08 15:38:57 +0200 | 
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-08 15:38:57 +0200 | 
| commit | e4b241c8ec4f12fe6ac479c2153cc540830e6a5d (patch) | |
| tree | f2cbc6ed8421449f605e7e602785f45779cde6cc /main/main.c | |
| parent | ebf45f066dfe308b6de1472399672fd132c157b4 (diff) | |
clean up repository
Diffstat (limited to 'main/main.c')
| -rw-r--r-- | main/main.c | 8 | 
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();  |