STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
board_bringup.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "self_test_devices.h"
Include dependency graph for board_bringup.h:
This graph shows which files directly or indirectly include this file:

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)

Macro Definition Documentation

◆ BOARD_EMMC_DIAG_STATE

#define BOARD_EMMC_DIAG_STATE   0x10000

Definition at line 49 of file board_bringup.h.

Referenced by emmc_identify().

◆ BOARD_GNSS_DIAG_ANTENNA_SHORT

#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().

◆ BOARD_GNSS_LISTEN_MS

#define BOARD_GNSS_LISTEN_MS   1500U /* > one 1 Hz NMEA period */

Definition at line 25 of file board_bringup.h.

Referenced by gnss_probe().

◆ BOARD_SD_INIT_MS

#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().

◆ BOARD_SD_STAGE_ACMD41

#define BOARD_SD_STAGE_ACMD41   3

Definition at line 31 of file board_bringup.h.

Referenced by sd_nand_probe().

◆ BOARD_SD_STAGE_CMD0

#define BOARD_SD_STAGE_CMD0   1

Definition at line 29 of file board_bringup.h.

Referenced by sd_nand_probe().

◆ BOARD_SD_STAGE_CMD10

#define BOARD_SD_STAGE_CMD10   5

Definition at line 33 of file board_bringup.h.

Referenced by sd_nand_probe().

◆ BOARD_SD_STAGE_CMD58

#define BOARD_SD_STAGE_CMD58   4

Definition at line 32 of file board_bringup.h.

Referenced by sd_nand_probe().

◆ BOARD_SD_STAGE_CMD8

#define BOARD_SD_STAGE_CMD8   2

Definition at line 30 of file board_bringup.h.

Referenced by sd_nand_probe().

Function Documentation

◆ board_bringup_on_usb()

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().

◆ board_bringup_power_up()

◆ board_bringup_probe()

self_test_reply_t board_bringup_probe ( void * context,
uint16_t device_id,
uint8_t attempt,
uint32_t now_ms,
uint32_t budget_ms )

◆ board_bringup_read_battery()

self_test_battery_t board_bringup_read_battery ( void * context,
uint32_t now_ms,
uint32_t budget_ms )