PER Firmware
Loading...
Searching...
No Matches
sd_card.h
Go to the documentation of this file.
1
8#ifndef SD_CARD_H
9#define SD_CARD_H
10
11#include <stdint.h>
12#include "common/rtos/rtos.h"
13
25
26static constexpr uint32_t SD_FSM_PERIOD_MS = 50;
27void sd_card_periodic(void);
28void sd_power_loss_callback(void);
29
30#endif // SD_CARD_H
Wrapper macros for FreeRTOS constructs (tasks, queues, semaphores) to simplify static memory allocati...
void sd_card_periodic(void)
Definition sd_card.c:72
static constexpr uint32_t SD_FSM_PERIOD_MS
Definition sd_card.h:26
void sd_power_loss_callback(void)
Definition sd_card.c:67
sd_state_t
Definition sd_card.h:14
@ SD_STATE_RECOVERING
Definition sd_card.h:22
@ SD_STATE_UNMOUNTING
Definition sd_card.h:21
@ SD_STATE_DISABLED
Definition sd_card.h:15
@ SD_STATE_CLOSING_FILE
Definition sd_card.h:20
@ SD_STATE_READY2LOG
Definition sd_card.h:19
@ SD_STATE_INSERT_CARD
Definition sd_card.h:16
@ SD_STATE_OPENING_FILE
Definition sd_card.h:18
@ SD_STATE_FATAL
Definition sd_card.h:23
@ SD_STATE_MOUNTING
Definition sd_card.h:17