evb_tasks.h
Go to the documentation of this file.
1 #include <asf.h>
2 #include <string>
3 #include <stream_buffer.h>
4 
5 #include "sd_mmc_mem.h"
6 #include "wifi.h"
7 #include "xbee.h"
8 #include "globals.h"
9 #include "communications.h"
10 #include "user_interface.h"
11 #include "sd_card_logger.h"
12 #include "control_law.h"
13 #include "CAN.h"
14 #include "drivers/d_adc.h"
15 
16 // RTOS Task Configuration
17 #define TASK_COMM_PERIOD_MS 1
18 #define TASK_LOGGER_PERIOD_MS 1
19 #define TASK_WIFI_PERIOD_MS 10
20 #define TASK_MAINT_PERIOD_MS 10
21 #define TASK_MAINT_SLOW_SEC_PERIOD_MS 1000
22 
23 // #define TASK_COMM_STACK_SIZE (4096/sizeof(portSTACK_TYPE))
24 #define TASK_COMM_STACK_SIZE (8192/sizeof(portSTACK_TYPE))
25 #define TASK_MAINT_STACK_SIZE (4096/sizeof(portSTACK_TYPE))
26 // #define TASK_LOGGER_STACK_SIZE (4096/sizeof(portSTACK_TYPE))
27 #define TASK_LOGGER_STACK_SIZE (8192/sizeof(portSTACK_TYPE))
28 #define TASK_WIFI_STACK_SIZE (2048/sizeof(portSTACK_TYPE))
29 
30 #define TASK_COMM_PRIORITY (tskIDLE_PRIORITY + 4) // Highest
31 #define TASK_LOGGER_PRIORITY (tskIDLE_PRIORITY + 3)
32 #define TASK_WIFI_PRIORITY (tskIDLE_PRIORITY + 2)
33 #define TASK_MAINT_PRIORITY (tskIDLE_PRIORITY + 1)
34 
35 #undef printf
36 #define printf(...)
37 #define printf_mutex(...)
38 
39 
40 is_comm_instance_t& evbTaskCommInit(void *pvParameters);
41 void evbTaskComm(rtos_task_t &task, is_comm_instance_t &comm);
42 
43 is_comm_instance_t& evbTaskLoggerInit(void *pvParameters);
45 
46 void evbTaskMaintInit(void *pvParameters);
47 int evbTaskMaint(rtos_task_t &task);
48 
49 void evbMainInit(void);
50 void evbMainInitHdw(void);
51 void evbMainInitRTOS(pdTASK_CODE pxTaskComm,
52  pdTASK_CODE pxTaskLogg,
53  pdTASK_CODE pxTaskWifi,
54  pdTASK_CODE pxTaskMant );
55 
56 int evbMain(void);
int evbTaskMaint(rtos_task_t &task)
Definition: evb_tasks.cpp:110
int evbMain(void)
Definition: evb_tasks.cpp:220
void evbTaskLogger(rtos_task_t &task, is_comm_instance_t &comm)
Definition: evb_tasks.cpp:86
void evbTaskComm(rtos_task_t &task, is_comm_instance_t &comm)
Definition: evb_tasks.cpp:42
void evbTaskMaintInit(void *pvParameters)
Definition: evb_tasks.cpp:104
void evbMainInitRTOS(pdTASK_CODE pxTaskComm, pdTASK_CODE pxTaskLogg, pdTASK_CODE pxTaskWifi, pdTASK_CODE pxTaskMant)
Definition: evb_tasks.cpp:196
#define pdTASK_CODE
Definition: FreeRTOS.h:922
void evbMainInitHdw(void)
Definition: evb_tasks.cpp:182
Autogenerated API include file for the Atmel Software Framework (ASF)
is_comm_instance_t & evbTaskCommInit(void *pvParameters)
Definition: evb_tasks.cpp:17
CTRL_ACCESS interface for common SD/MMC stack.
is_comm_instance_t & evbTaskLoggerInit(void *pvParameters)
Definition: evb_tasks.cpp:66
void evbMainInit(void)
Definition: evb_tasks.cpp:151


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:57