|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include "gnss_task.h"#include "board_time.h"#include "board_uart9.h"#include "cmsis_os2.h"#include "emmc_stm32.h"#include "main.h"Go to the source code of this file.
Macros | |
| #define | EV_RX (1U << 0) |
| #define | EV_MODE (1U << 1) /* gnss_task_set_active() */ |
Functions | |
| static void | gps_power (bool on) |
| static void | send (void *ctx, const uint8_t *bytes, uint16_t len) |
| static void | set_baud (void *ctx, uint32_t baud) |
| static void | to_emmc (void *ctx, uint8_t type, const void *data, uint8_t len) |
| static void | gnss_task (void *argument) |
| bool | gnss_task_start (void) |
| void | gnss_task_set_active (bool on) |
| void | gnss_task_poll_status (bool on) |
| const gnss_core_t * | gnss_task_core (void) |
Variables | |
| static gnss_core_t | core |
| static osThreadId_t | thread |
| static volatile bool | want_active |
| static volatile bool | want_status |
| #define EV_MODE (1U << 1) /* gnss_task_set_active() */ |
Definition at line 10 of file gnss_task.c.
Referenced by gnss_task(), gnss_task_set_active(), idle_task(), idle_task_set_active(), sensors_task(), and sensors_task_set_active().
| #define EV_RX (1U << 0) |
Definition at line 9 of file gnss_task.c.
Referenced by gnss_task().
|
static |
Definition at line 43 of file gnss_task.c.
References active, board_time_last_pps(), board_time_us(), board_uart9_read(), board_uart9_start(), core, board_pps_t::count, board_pps_t::edge_us, EV_MODE, EV_RX, gnss_core_feed(), gnss_core_init(), gnss_core_poll(), gnss_core_request_status(), gnss_core_set_pps(), gnss_core_wait_us(), gps_power(), NULL, osFlagsWaitAny, osThreadFlagsWait(), osThreadGetId(), osWaitForever, send(), set_baud(), to_emmc(), want_active, and want_status.
Referenced by gnss_task_start().
| const gnss_core_t * gnss_task_core | ( | void | ) |
Definition at line 110 of file gnss_task.c.
References core.
| void gnss_task_poll_status | ( | bool | on | ) |
Definition at line 106 of file gnss_task.c.
References want_status.
| void gnss_task_set_active | ( | bool | on | ) |
Definition at line 99 of file gnss_task.c.
References EV_MODE, osThreadFlagsSet(), thread, and want_active.
Referenced by app_set_state(), and app_start().
| bool gnss_task_start | ( | void | ) |
Definition at line 89 of file gnss_task.c.
References gnss_task(), NULL, osPriorityNormal, osThreadNew(), and thread.
Referenced by app_start().
|
static |
Definition at line 19 of file gnss_task.c.
References GPIO_PIN_RESET, GPIO_PIN_SET, HAL_GPIO_WritePin(), osDelay(), REG_3V6_EN_GPIO_Port, and REG_3V6_EN_Pin.
Referenced by gnss_task().
|
static |
Definition at line 27 of file gnss_task.c.
References board_uart9_send().
Referenced by backend.routers.layerx.UploadSizeGuard::__call__(), anonymous_namespace{ota_service_main.cpp}::flashFirmware(), gnss_task(), anonymous_namespace{ota_service_main.cpp}::handleClient(), anonymous_namespace{sequencer_main.cpp}::handleCommandLine(), handleControlClient(), main(), sequencer::SequencerService::notifyControllerFireOnce(), runControlServer(), and FakeDb::start().
|
static |
Definition at line 32 of file gnss_task.c.
References board_uart9_set_baud().
Referenced by fake_gnss_io(), and gnss_task().
|
static |
Definition at line 37 of file gnss_task.c.
References emmc_log_append(), emmc_stm32_log(), and osKernelGetTickCount().
Referenced by gnss_task(), and sensors_task().
|
static |
Definition at line 12 of file gnss_task.c.
Referenced by gnss_task(), gnss_task_core(), sensors_task(), and sensors_task_snapshot().
|
static |
Definition at line 13 of file gnss_task.c.
Referenced by board_exti_route(), board_uart9_start(), gnss_task_set_active(), gnss_task_start(), HAL_GPIO_EXTI_Callback(), idle_task_command(), idle_task_set_active(), idle_task_start(), sensors_task_set_active(), and sensors_task_start().
|
static |
Definition at line 14 of file gnss_task.c.
Referenced by gnss_task(), gnss_task_set_active(), idle_task(), idle_task_set_active(), sensors_task(), sensors_task_set_active(), and work_waiting().
|
static |
Definition at line 15 of file gnss_task.c.
Referenced by gnss_task(), and gnss_task_poll_status().