|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Classes | |
| struct | board_bringup_t |
Macros | |
| #define | BOARD_GNSS_DIAG_ANTENNA_SHORT 1 /* PD10 low: antenna switch fault */ |
| #define | BOARD_GNSS_LISTEN_MS 1500U /* > one 1 Hz NMEA period */ |
| #define | BOARD_SD_STAGE_CMD0 1 |
| #define | BOARD_SD_STAGE_CMD8 2 |
| #define | BOARD_SD_STAGE_ACMD41 3 |
| #define | BOARD_SD_STAGE_CMD58 4 |
| #define | BOARD_SD_STAGE_CMD10 5 |
| #define | BOARD_SD_INIT_MS 1000U /* ACMD41 loop limit (SD spec: 1 s) */ |
| #define | BOARD_EMMC_DIAG_STATE 0x10000 |
Functions | |
| void | board_bringup_power_up (board_bringup_t *bringup) |
| self_test_battery_t | board_bringup_read_battery (void *context, uint32_t now_ms, uint32_t budget_ms) |
| bool | board_bringup_on_usb (void) |
| self_test_reply_t | board_bringup_probe (void *context, uint16_t device_id, uint8_t attempt, uint32_t now_ms, uint32_t budget_ms) |
| #define BOARD_EMMC_DIAG_STATE 0x10000 |
Definition at line 49 of file board_bringup.h.
Referenced by emmc_identify().
| #define BOARD_GNSS_DIAG_ANTENNA_SHORT 1 /* PD10 low: antenna switch fault */ |
Definition at line 24 of file board_bringup.h.
Referenced by gnss_probe().
| #define BOARD_GNSS_LISTEN_MS 1500U /* > one 1 Hz NMEA period */ |
Definition at line 25 of file board_bringup.h.
Referenced by gnss_probe().
| #define BOARD_SD_INIT_MS 1000U /* ACMD41 loop limit (SD spec: 1 s) */ |
Definition at line 34 of file board_bringup.h.
Referenced by sd_nand_probe().
| #define BOARD_SD_STAGE_ACMD41 3 |
Definition at line 31 of file board_bringup.h.
Referenced by sd_nand_probe().
| #define BOARD_SD_STAGE_CMD0 1 |
Definition at line 29 of file board_bringup.h.
Referenced by sd_nand_probe().
| #define BOARD_SD_STAGE_CMD10 5 |
Definition at line 33 of file board_bringup.h.
Referenced by sd_nand_probe().
| #define BOARD_SD_STAGE_CMD58 4 |
Definition at line 32 of file board_bringup.h.
Referenced by sd_nand_probe().
| #define BOARD_SD_STAGE_CMD8 2 |
Definition at line 30 of file board_bringup.h.
Referenced by sd_nand_probe().
| bool board_bringup_on_usb | ( | void | ) |
Definition at line 393 of file board_bringup.c.
References GPIO_PIN_RESET, HAL_GPIO_ReadPin(), SW_ST_GPIO_Port, and SW_ST_Pin.
Referenced by bringup_task(), and on_usb().
| void board_bringup_power_up | ( | board_bringup_t * | bringup | ) |
Definition at line 286 of file board_bringup.c.
References b, board_adc_init(), board_deadline_passed(), board_now_ms(), board_spi_init(), board_spi_self_test_exchange(), board_time_start(), EMMC_RST_GPIO_Port, EMMC_RST_Pin, enable(), ETH_RST_GPIO_Port, ETH_RST_Pin, GPIO_PIN_SET, HAL_GPIO_ReadPin(), HAL_GPIO_WritePin(), ms5611_reset(), NULL, osDelay(), RADIO_BUSY_GPIO_Port, RADIO_BUSY_Pin, RADIO_NRST_GPIO_Port, RADIO_NRST_Pin, REG_3V6_EN_GPIO_Port, REG_3V6_EN_Pin, SELF_TEST_DEVICE_BAROMETER, SELF_TEST_DEVICE_ETHERNET, SELF_TEST_DEVICE_HIGH_G, SELF_TEST_DEVICE_IMU, SELF_TEST_DEVICE_RADIO, and wait_since_boot().
Referenced by bringup_task().
| self_test_reply_t board_bringup_probe | ( | void * | context, |
| uint16_t | device_id, | ||
| uint8_t | attempt, | ||
| uint32_t | now_ms, | ||
| uint32_t | budget_ms ) |
Definition at line 399 of file board_bringup.c.
References b, emmc_probe(), gnss_probe(), r, sd_nand_probe(), SELF_TEST_DEVICE_EMMC, SELF_TEST_DEVICE_GNSS, SELF_TEST_DEVICE_NAND, self_test_devices_probe(), and SELF_TEST_NOT_CONFIGURED.
Referenced by bringup_task().
| self_test_battery_t board_bringup_read_battery | ( | void * | context, |
| uint32_t | now_ms, | ||
| uint32_t | budget_ms ) |
Definition at line 364 of file board_bringup.c.
References b, battery(), board_adc_read(), BOARD_ADC_VBAT, board_now_ms(), reply(), SELF_TEST_FAIL, SELF_TEST_NOT_CONFIGURED, SELF_TEST_PASS, and start().
Referenced by bringup_task(), and read_battery().