diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2017-04-10 13:41:28 +0200 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2017-04-10 13:41:28 +0200 |
commit | d0e5a94a55334b0a27652959fba5066f56128135 (patch) | |
tree | 058987518e64691297b4409d5b06d65e9b335167 /source/main.c | |
parent | b3bc06bef795fdc57254729c74c04e2732a6092d (diff) |
CAN and communication updates
Diffstat (limited to 'source/main.c')
-rw-r--r-- | source/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/main.c b/source/main.c index 341627d..5e6a9d3 100644 --- a/source/main.c +++ b/source/main.c @@ -95,6 +95,11 @@ int main(void) { PRINTF("create SPI task error\r\n"); } + if(xTaskCreate(can_task, "CAN_task", 2000L / sizeof(portSTACK_TYPE), NULL, 2, &can_task_handle) != pdPASS) + { + PRINTF("create CAN task error\r\n"); + } + #ifdef BOARD_USES_ADC if(xTaskCreate(adc_task, "ADC_task", 2000L / sizeof(portSTACK_TYPE), NULL, 2, &adc_task_handle) != pdPASS) { |