40 lines
700 B
C
40 lines
700 B
C
/*
|
|
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define EXAMPLE_MAX_CHAR_SIZE 64
|
|
#define MOUNT_POINT "/sdcard"
|
|
|
|
extern uint64_t total_bytes;
|
|
extern uint64_t free_bytes;
|
|
extern float free_percent;
|
|
|
|
|
|
typedef struct {
|
|
const char** names;
|
|
const int* pins;
|
|
} pin_configuration_t;
|
|
|
|
|
|
static esp_err_t s_example_read_file(const char *path);
|
|
static esp_err_t s_example_write_file(const char *path, char *data);
|
|
|
|
void check_sd_card_pins(pin_configuration_t *config, const int pin_count);
|
|
|
|
void flux_sd_init(void);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|