summaryrefslogtreecommitdiff
path: root/source/main.c
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2017-11-09 19:51:32 +0100
committerDominik Sliwa <dominik.sliwa@toradex.com>2017-11-28 11:06:57 +0100
commit3020f5caf0b09fcaf85b3b3fa84fdf688ba22cc0 (patch)
tree971e36ac2bbd28b534791ca07efeca9e762c614a /source/main.c
parent41a46914821b1ea72c6dd68b308a3740276139ee (diff)
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'source/main.c')
-rw-r--r--source/main.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/source/main.c b/source/main.c
index 5e6a9d3..d910ab1 100644
--- a/source/main.c
+++ b/source/main.c
@@ -74,7 +74,8 @@ TaskHandle_t debug_task_handle;
#ifdef SDK_DEBUGCONSOLE
static void debug_task(void *pvParameters) {
for (;;) {
- vTaskDelay(10000);
+ vTaskDelay(10000);
+ PRINTF("Alive\r\n");
}
}
#endif
@@ -90,23 +91,29 @@ int main(void) {
PRINTF("Apalis K20 Firmware Version %d.%d\r\n", FW_MAJOR, FW_MINOR);
/* Create RTOS task */
- if(xTaskCreate(spi_task, "SPI_task", 2000L / sizeof(portSTACK_TYPE), NULL, 4, &spi_task_handle) != pdPASS)
+ if(xTaskCreate(spi_task, "SPI_task", 1000L / sizeof(portSTACK_TYPE), NULL, 4, &spi_task_handle) != pdPASS)
{
PRINTF("create SPI task error\r\n");
}
- if(xTaskCreate(can_task, "CAN_task", 2000L / sizeof(portSTACK_TYPE), NULL, 2, &can_task_handle) != pdPASS)
+
+ if(xTaskCreate(can0_task, "CAN0_task", 1000L / sizeof(portSTACK_TYPE), NULL, 2, &can0_task_handle) != pdPASS)
+ {
+ PRINTF("create CAN0 task error\r\n");
+ }
+
+ if(xTaskCreate(can1_task, "CAN1_task", 1000L / sizeof(portSTACK_TYPE), NULL, 2, &can1_task_handle) != pdPASS)
{
- PRINTF("create CAN task error\r\n");
+ PRINTF("create CAN1 task error\r\n");
}
#ifdef BOARD_USES_ADC
- if(xTaskCreate(adc_task, "ADC_task", 2000L / sizeof(portSTACK_TYPE), NULL, 2, &adc_task_handle) != pdPASS)
+ if(xTaskCreate(adc_task, "ADC_task", 1000L / sizeof(portSTACK_TYPE), NULL, 2, &adc_task_handle) != pdPASS)
{
PRINTF("create ADC task error\r\n");
}
- if(xTaskCreate(tsc_task, "TSC_task", 2000L / sizeof(portSTACK_TYPE), NULL, 2, &tsc_task_handle) != pdPASS)
+ if(xTaskCreate(tsc_task, "TSC_task", 1000L / sizeof(portSTACK_TYPE), NULL, 2, &tsc_task_handle) != pdPASS)
{
PRINTF("create TSC task error\r\n");
}