IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
|
#include <esp_log.h>
#include <freertos/FreeRTOS.h>
Go to the source code of this file.
Macros | |
#define | TAG_SD "SD" |
#define | SD_ERR_BASE 0x200 |
Enumerations | |
enum | sd_err_t { SD_ERR_SPI_INIT = 0x200 + 1 , SD_ERR_MOUNT_FAIL = 0x200 + 2 , SD_ERR_FILE_OPEN = 0x200 + 3 , SD_ERR_WRITE_FAIL = 0x200 + 4 , SD_ERR_FILE_CLOSED = 0x200 + 5 } |
Functions | |
esp_err_t | init_sd_card (FILE **logFile) |
esp_err_t | write_to_file (FILE *file, const char *message, const char *endl) |
char * | sd_err_to_name (esp_err_t err) |
#define SD_ERR_BASE 0x200 |
#define TAG_SD "SD" |
enum sd_err_t |
esp_err_t init_sd_card | ( | FILE ** | logFile | ) |
Initialize SD card reader.
< host supports SPI protocol
< host deinit function called with the slot argument
< SD/MMC Default speed (limited by clock divider)
< esp_err_t value indicating success (no error)
< esp_err_t value indicating success (no error)
< esp_err_t value indicating success (no error)
char * sd_err_to_name | ( | esp_err_t | err | ) |
< esp_err_t value indicating success (no error)
esp_err_t write_to_file | ( | FILE * | file, |
const char * | message, | ||
const char * | endl ) |
Writes the message to the file and saves it.
< esp_err_t value indicating success (no error)