16 // Demo application includes
22 #include "eints/eints.h"
27 #include "leds/leds.h"
28 #include "monitor/monitor.h"
30 #include "sensors/sensors.h"
31 #include "uart/uart.h"
32 #include "usbser/usbser.h"
33 #include "usbmass/usbmass.h"
38 #define BAUD_UART0 115200
39 #define BAUD_UART1 4800
41 #ifdef CFG_CONSOLE_UART1
43 #define BAUD_UART1 115200
46 #if defined CFG_CONSOLE_USB && defined CFG_USB_MSC
47 #error Cannot have USB console and MSC defined at the same time
53 xTaskHandle taskHandles [TASKHANDLE_LAST];
61 uartInit (0, BAUD_UART0, 64);
62 uartInit (1, BAUD_UART1, 64);
76 memset (taskHandles, 0, sizeof (taskHandles));
78 xTaskCreate (vSensorsTask, (const signed portCHAR * const) "Sensors", 1024, NULL, (configMAX_PRIORITIES - 2), &taskHandles [TASKHANDLE_SENSORS]);
79 #ifndef CFG_CONSOLE_UART1
80 xTaskCreate (vGPSTask, (const signed portCHAR * const) "GPS", 768, NULL, (tskIDLE_PRIORITY + 1), &taskHandles [TASKHANDLE_GPS]);
82 xTaskCreate (vMonitorTask, (const signed portCHAR * const) "Monitor", 1024, NULL, (tskIDLE_PRIORITY + 1), &taskHandles [TASKHANDLE_MONITOR]);
83 xTaskCreate (vLEDFlashTask, (const signed portCHAR * const) "LEDx", configMINIMAL_STACK_SIZE, NULL, (tskIDLE_PRIORITY + 1), &taskHandles [TASKHANDLE_LED]);
84 vTaskStartScheduler ();