14 #include "../../../hw-libs/drivers/d_i2c.h" 23 #ifdef CONF_BOARD_CAN_TEST 77 #if STREAM_INS_FOR_TIME_SYNC // Stream INS message on startup. Necessary to update EVB RTC for correct data log date and time. 112 static uint32_t m2sPeriodMs = 0;
154 XDMAC->XDMAC_GID = 0xFFFFFFFF;
157 XDMAC->XDMAC_CHID[i].XDMAC_CID = 0xFFFFFFFF;
188 #ifdef CONF_BOARD_ADC 204 #ifdef CONF_BOARD_SPI_ATWINC_WIFI // ATWINC WIFI 223 printf(
"Starting FreeRTOS\n\r");
is_comm_instance_t g_commTx
void vTaskStartScheduler(TaskHandle_t *idleTaskHandle, TaskHandle_t *timerTaskHandle) PRIVILEGED_FUNCTION
is_comm_instance_t & evbTaskLoggerInit(void *pvParameters)
void wdt_restart(Wdt *p_wdt)
Restart the watchdog timer.
#define UNUSED(v)
Marking v as a unused parameter or value.
void board_init(void)
This function initializes the board target resources.
void sd_card_maintenance(void)
void evbMainInitHdw(void)
void evbTaskComm(rtos_task_t &task, is_comm_instance_t &comm)
#define TASK_LOGGER_STACK_SIZE
int serInit(int serialNum, uint32_t baudRate, sam_usart_opt_t *options, uint32_t *overrunStatus)
Initialize serial port with specific USART/UART and DMA settings. If not NULL, the overrun status wil...
#define TASK_WIFI_STACK_SIZE
is_comm_instance_t & evbTaskCommInit(void *pvParameters)
#define XDMAC
(XDMAC ) Base Address
int evbTaskMaint(rtos_task_t &task)
void mcan_test_slave(void)
uint32_t wdt_get_timeout_value(uint32_t ul_us, uint32_t ul_sclk)
Get counter value or permitted range value of watchdog timer from the desired timeout period (in us)...
rtos_task_t task[UINS_RTOS_NUM_TASKS]
void evbUiRefreshLedCfg()
#define TASK_COMM_PRIORITY
void udc_stop(void)
Stop the USB Device stack.
void evbUiRefreshLedLog()
void communications_init(void)
#define TASK_MAINT_STACK_SIZE
#define WDT
(WDT ) Base Address
void velocity_control(is_comm_instance_t &comm)
static bool ioport_get_pin_level(ioport_pin_t pin)
Get current value of an IOPORT pin, which has been configured as an input.
void evbTaskMaintInit(void *pvParameters)
#define EVB2_CB_PRESET_DEFAULT
#define TASK_MAINT_SLOW_SEC_PERIOD_MS
void evbTaskLogger(rtos_task_t &task, is_comm_instance_t &comm)
#define TASK_COMM_PERIOD_MS
uint32_t g_uInsBootloaderEnableTimeMs
#define WDT_MR_WDDBGHLT
(WDT_MR) Watchdog Debug Halt
#define TASK_WIFI_PERIOD_MS
#define TASK_WIFI_PRIORITY
void rtos_monitor(int numRtosTasks)
#define TASK_LOGGER_PERIOD_MS
void is_comm_init(is_comm_instance_t *instance, uint8_t *buffer, int bufferSize)
#define MAX_TASK_NAME_LEN
#define TASK_MAINT_PERIOD_MS
evb_flash_cfg_t * g_flashCfg
#define TASK_COMM_STACK_SIZE
void step_logger_control(cISLogger &logger, is_comm_instance_t &comm)
void sd_card_logger_init(void)
void evbMainInitRTOS(pdTASK_CODE pxTaskComm, pdTASK_CODE pxTaskLogg, pdTASK_CODE pxTaskWifi, pdTASK_CODE pxTaskMant)
#define TASK_LOGGER_PRIORITY
void step_com_bridge(is_comm_instance_t &comm)
void step_user_interface(uint32_t time_ms)
#define XDMACCHID_NUMBER
Xdmac hardware registers.
void vTaskDelay(const TickType_t xTicksToDelay) PRIVILEGED_FUNCTION
void time_sync_from_uINS(void)
void board_IO_config(void)
void wdt_init(Wdt *p_wdt, uint32_t ul_mode, uint16_t us_counter, uint16_t us_delta)
Initialize watchdog timer with the given mode.
#define WDT_MR_WDRSTEN
(WDT_MR) Watchdog Reset Enable
char name[MAX_TASK_NAME_LEN]
#define TASK_MAINT_PRIORITY
#define BOARD_FREQ_SLCK_XTAL
int createTask(int index, pdTASK_CODE pxTaskCode, const char *const pcName, unsigned short usStackDepth, void *pvParameters, unsigned portBASE_TYPE uxPriority, portTickType xTimeIncrement)
void log_uINS_data(cISLogger &logger, is_comm_instance_t &comm)