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>
13
14typedef enum {
15 SD_STATE_DISABLED = 0,
16 SD_STATE_INSERT_CARD = 1,
17 SD_STATE_MOUNTING = 2,
18 SD_STATE_OPENING_FILE = 3,
19 SD_STATE_READY2LOG = 4,
20 SD_STATE_CLOSING_FILE = 5,
21 SD_STATE_UNMOUNTING = 6,
22 SD_STATE_RECOVERING = 7,
23 SD_STATE_FATAL = 8
24} sd_state_t;
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...