aboutsummaryrefslogtreecommitdiff
path: root/main/tasks.c
blob: d83525dc683645231f1a83b95dd4b45ec6944b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <FreeRTOS.h>
#include <task.h>

#include "config.h"
#include "tasks.h"

#include "blink.h"
#include "i2c.h"
#include "sock.h"

void init_tasks() {
	xTaskCreate((TaskFunction_t) blink_task, "blink", 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);
}