|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include "sensors_task.h"#include "board_devbus.h"#include "board_exti.h"#include "board_time.h"#include "cmsis_os2.h"#include "emmc_stm32.h"#include "main.h"Go to the source code of this file.
Macros | |
| #define | EV_MODE (1U << 4) /* sensors_task_set_active() */ |
Functions | |
| static void | to_emmc (void *ctx, uint8_t type, const void *data, uint8_t len) |
| static void | sensors_task (void *argument) |
| void | sensors_task_snapshot (sensors_core_t *out) |
| bool | sensors_task_start (void) |
| void | sensors_task_set_active (bool on) |
Variables | |
| static sensors_core_t | core |
| static osMutexId_t | snapshot_lock |
| static osThreadId_t | thread |
| static volatile bool | want_active |
| #define EV_MODE (1U << 4) /* sensors_task_set_active() */ |
Definition at line 10 of file sensors_task.c.
|
static |
Definition at line 25 of file sensors_task.c.
References ACCEL_INT_1_Pin, active, board_devbus(), board_exti_last_us(), board_exti_route(), BOARD_SPI_BARO, BOARD_SPI_HIGH_G, BOARD_SPI_IMU, board_time_us(), core, EV_MODE, IMU_INT1_Pin, osFlagsError, osFlagsWaitAny, osMutexAcquire(), osMutexRelease(), osThreadFlagsWait(), osThreadGetId(), osWaitForever, sensors_core_init(), sensors_core_step(), sensors_core_stop(), sensors_core_wait_us(), SENSORS_EV_HIGHG, SENSORS_EV_IMU, snapshot_lock, to_emmc(), and want_active.
Referenced by sensors_task_start().
| void sensors_task_set_active | ( | bool | on | ) |
Definition at line 88 of file sensors_task.c.
References EV_MODE, osThreadFlagsSet(), thread, and want_active.
Referenced by app_set_state(), and app_start().
| void sensors_task_snapshot | ( | sensors_core_t * | out | ) |
Definition at line 69 of file sensors_task.c.
References core, osMutexAcquire(), osMutexRelease(), osWaitForever, and snapshot_lock.
| bool sensors_task_start | ( | void | ) |
Definition at line 75 of file sensors_task.c.
References NULL, osMutexNew(), osMutexPrioInherit, osPriorityRealtime, osThreadNew(), sensors_task(), snapshot_lock, and thread.
Referenced by app_start().
|
static |
Definition at line 17 of file sensors_task.c.
References emmc_log_append(), emmc_stm32_log(), and osKernelGetTickCount().
|
static |
Definition at line 12 of file sensors_task.c.
|
static |
Definition at line 13 of file sensors_task.c.
Referenced by sensors_task(), sensors_task_snapshot(), and sensors_task_start().
|
static |
Definition at line 14 of file sensors_task.c.
|
static |
Definition at line 15 of file sensors_task.c.