Select one of the symbols to view example projects that use it.
 
Outline
#include <stdlib.h>
#include <string.h>
#include "esp_check.h"
#include "esp_log.h"
#include "esp_vfs.h"
#include "esp_vfs_fat.h"
#include "vfs_fat_internal.h"
#include "driver/sdspi_host.h"
#include "sdmmc_cmd.h"
#include "diskio_impl.h"
#include "diskio_sdmmc.h"
#include "soc/soc_caps.h"
#include "sd_protocol_defs.h"
#include "driver/sdmmc_host.h"
TAG
s_ctx
s_saved_ctx_id
s_get_context_id_by_card(const sdmmc_card_t *, uint32_t *)
s_get_unused_context_id()
get_vfs_fat_get_sd_ctx(const sdmmc_card_t *)
mount_prepare_mem(const char *, BYTE *, char **, sdmmc_card_t **)
s_f_mount(sdmmc_card_t *, FATFS *, const char *, uint8_t, const esp_vfs_fat_mount_config_t *, vfs_fat_x_ctx_flags_t *)
mount_to_vfs_fat(const esp_vfs_fat_mount_config_t *, sdmmc_card_t *, uint8_t, const char *, FATFS **, vfs_fat_x_ctx_flags_t *)
partition_card(const esp_vfs_fat_mount_config_t *, const char *, sdmmc_card_t *, BYTE)
init_sdmmc_host(int, const void *, int *)
esp_vfs_fat_sdmmc_mount(const char *, const sdmmc_host_t *, const void *, const esp_vfs_fat_mount_config_t *, sdmmc_card_t **)
init_sdspi_host(int, const void *, int *)
esp_vfs_fat_sdspi_mount(const char *, const sdmmc_host_t *, const sdspi_device_config_t *, const esp_vfs_fat_mount_config_t *, sdmmc_card_t **)
call_host_deinit(const sdmmc_host_t *)
unmount_card_core(const char *, sdmmc_card_t *)
esp_vfs_fat_sdmmc_unmount()
esp_vfs_fat_sdcard_unmount(const char *, sdmmc_card_t *)
esp_vfs_fat_sdcard_format_cfg(const char *, sdmmc_card_t *, esp_vfs_fat_mount_config_t *)
esp_vfs_fat_sdcard_format(const char *, sdmmc_card_t *)
Files
loading...
SourceVuESP-IDF Framework and ExamplesFatFSvfs/vfs_fat_sdmmc.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #include <stdlib.h> #include <string.h> #include "esp_check.h" #include "esp_log.h" #include "esp_vfs.h" #include "esp_vfs_fat.h" #include "vfs_fat_internal.h" #include "driver/sdspi_host.h" #include "sdmmc_cmd.h" #include "diskio_impl.h" #include "diskio_sdmmc.h" #include "soc/soc_caps.h" #include "sd_protocol_defs.h"13 includes #if SOC_SDMMC_HOST_SUPPORTED #include "driver/sdmmc_host.h" #endif static const char* TAG = "vfs_fat_sdmmc"; #define CHECK_EXECUTE_RESULT(err, str) do { \ if ((err) !=ESP_OK) { \ ESP_LOGE(TAG, str" (0x%x).", err); \ goto cleanup; \ }{...} \ }{...} while(0)... static vfs_fat_sd_ctx_t *s_ctx[FF_VOLUMES] = {}; /** * This `s_saved_ctx_id` is only used by `esp_vfs_fat_sdmmc_unmount`, which is deprecated. * This variable together with `esp_vfs_fat_sdmmc_unmount` should be removed in next major version *//* ... */ static uint32_t s_saved_ctx_id = FF_VOLUMES; static void call_host_deinit(const sdmmc_host_t *host_config); static esp_err_t partition_card(const esp_vfs_fat_mount_config_t *mount_config, const char *drv, sdmmc_card_t *card, BYTE pdrv); static bool s_get_context_id_by_card(const sdmmc_card_t *card, uint32_t *out_id) { vfs_fat_sd_ctx_t *p_ctx = NULL; for (int i = 0; i < FF_VOLUMES; i++) { p_ctx = s_ctx[i]; if (p_ctx) { if (p_ctx->card == card) { *out_id = i; return true; }{...} }{...} }{...} return false; }{ ... } static uint32_t s_get_unused_context_id(void) { for (uint32_t i = 0; i < FF_VOLUMES; i++) { if (!s_ctx[i]) { return i; }{...} }{...} return FF_VOLUMES; }{ ... } vfs_fat_sd_ctx_t* get_vfs_fat_get_sd_ctx(const sdmmc_card_t *card) { uint32_t id = FF_VOLUMES; if (s_get_context_id_by_card(card, &id)) { return s_ctx[id]; }{...} return NULL; }{ ... } static esp_err_t mount_prepare_mem(const char *base_path, BYTE *out_pdrv, char **out_dup_path, sdmmc_card_t** out_card) { esp_err_t err = ESP_OK; char* dup_path = NULL; sdmmc_card_t* card = NULL; // connect SDMMC driver to FATFS BYTE pdrv = FF_DRV_NOT_USED; if (ff_diskio_get_drive(&pdrv) != ESP_OK || pdrv == FF_DRV_NOT_USED) { ESP_LOGD(TAG, "the maximum count of volumes is already mounted"); return ESP_ERR_NO_MEM; }{...} // not using ff_memalloc here, as allocation in internal RAM is preferred card = (sdmmc_card_t*)malloc(sizeof(sdmmc_card_t)); if (card == NULL) { ESP_LOGD(TAG, "could not locate new sdmmc_card_t"); err = ESP_ERR_NO_MEM; goto cleanup; }{...} dup_path = strdup(base_path); if(!dup_path){ ESP_LOGD(TAG, "could not copy base_path"); err = ESP_ERR_NO_MEM; goto cleanup; }{...} *out_card = card; *out_pdrv = pdrv; *out_dup_path = dup_path; return ESP_OK; cleanup: free(card); free(dup_path); return err; }{ ... } static esp_err_t s_f_mount(sdmmc_card_t *card, FATFS *fs, const char *drv, uint8_t pdrv, const esp_vfs_fat_mount_config_t *mount_config, vfs_fat_x_ctx_flags_t *out_flags) { esp_err_t err = ESP_OK; FRESULT res = f_mount(fs, drv, 1); if (res != FR_OK) { err = ESP_FAIL; ESP_LOGW(TAG, "failed to mount card (%d)", res); bool need_mount_again = (res == FR_NO_FILESYSTEM || res == FR_INT_ERR) && mount_config->format_if_mount_failed; if (!need_mount_again) { return ESP_FAIL; }{...} err = partition_card(mount_config, drv, card, pdrv); if (err != ESP_OK) { return err; }{...} if (out_flags) { *out_flags |= FORMATTED_DURING_LAST_MOUNT; // set flag }{...} ESP_LOGW(TAG, "mounting again"); res = f_mount(fs, drv, 1); if (res != FR_OK) { err = ESP_FAIL; ESP_LOGD(TAG, "f_mount failed after formatting (%d)", res); return err; }{...} }{...} else { if (out_flags) { *out_flags &= ~FORMATTED_DURING_LAST_MOUNT; // reset flag }{...} }{...} return ESP_OK; }{ ... } static esp_err_t mount_to_vfs_fat(const esp_vfs_fat_mount_config_t *mount_config, sdmmc_card_t *card, uint8_t pdrv, const char *base_path, FATFS **out_fs, vfs_fat_x_ctx_flags_t *out_flags) { FATFS *fs = NULL; esp_err_t err; ff_diskio_register_sdmmc(pdrv, card); ff_sdmmc_set_disk_status_check(pdrv, mount_config->disk_status_check_enable); ESP_LOGD(TAG, "using pdrv=%i", pdrv); char drv[3] = {(char)('0' + pdrv), ':', 0}; // connect FATFS to VFS esp_vfs_fat_conf_t conf = { .base_path = base_path, .fat_drive = drv, .max_files = mount_config->max_files, }{...}; err = esp_vfs_fat_register_cfg(&conf, &fs); *out_fs = fs; if (err == ESP_ERR_INVALID_STATE) { // it's okay, already registered with VFS }{...} else if (err != ESP_OK) { ESP_LOGD(TAG, "esp_vfs_fat_register_cfg failed 0x(%x)", err); goto fail; }{...} // Try to mount partition err = s_f_mount(card, fs, drv, pdrv, mount_config, out_flags); if (err != ESP_OK) { goto fail; }{...} return ESP_OK; fail: if (fs) { f_mount(NULL, drv, 0); }{...} esp_vfs_fat_unregister_path(base_path); ff_diskio_unregister(pdrv); return err; }{ ... } static esp_err_t partition_card(const esp_vfs_fat_mount_config_t *mount_config, const char *drv, sdmmc_card_t *card, BYTE pdrv) { FRESULT res = FR_OK; esp_err_t err; const size_t workbuf_size = 4096; void* workbuf = NULL; ESP_LOGW(TAG, "partitioning card"); workbuf = ff_memalloc(workbuf_size); if (workbuf == NULL) { return ESP_ERR_NO_MEM; }{...} LBA_t plist[] = {100, 0, 0, 0}; res = f_fdisk(pdrv, plist, workbuf); if (res != FR_OK) { err = ESP_FAIL; ESP_LOGD(TAG, "f_fdisk failed (%d)", res); goto fail; }{...} size_t alloc_unit_size = esp_vfs_fat_get_allocation_unit_size( card->csd.sector_size, mount_config->allocation_unit_size); ESP_LOGW(TAG, "formatting card, allocation unit size=%d", alloc_unit_size); const MKFS_PARM opt = {(BYTE)FM_ANY, (mount_config->use_one_fat ? 1 : 2), 0, 0, alloc_unit_size}; res = f_mkfs(drv, &opt, workbuf, workbuf_size); if (res != FR_OK) { err = ESP_FAIL; ESP_LOGD(TAG, "f_mkfs failed (%d)", res); goto fail; }{...} free(workbuf); return ESP_OK; fail: free(workbuf); return err; }{ ... } #if SOC_SDMMC_HOST_SUPPORTED static esp_err_t init_sdmmc_host(int slot, const void *slot_config, int *out_slot) { *out_slot = slot; return sdmmc_host_init_slot(slot, (const sdmmc_slot_config_t*) slot_config); }{ ... } esp_err_t esp_vfs_fat_sdmmc_mount(const char* base_path, const sdmmc_host_t* host_config, const void* slot_config, const esp_vfs_fat_mount_config_t* mount_config, sdmmc_card_t** out_card) { esp_err_t err; vfs_fat_sd_ctx_t *ctx = NULL; uint32_t ctx_id = FF_VOLUMES; FATFS *fs = NULL; int card_handle = -1; //uninitialized sdmmc_card_t* card = NULL; BYTE pdrv = FF_DRV_NOT_USED; char* dup_path = NULL; bool host_inited = false; err = mount_prepare_mem(base_path, &pdrv, &dup_path, &card); if (err != ESP_OK) { ESP_LOGE(TAG, "mount_prepare failed"); return err; }{...} err = (*host_config->init)(); CHECK_EXECUTE_RESULT(err, "host init failed"); //deinit() needs to be called to revert the init host_inited = true; //If this failed (indicated by card_handle != -1), slot deinit needs to called() //leave card_handle as is to indicate that (though slot deinit not implemented yet. err = init_sdmmc_host(host_config->slot, slot_config, &card_handle); CHECK_EXECUTE_RESULT(err, "slot init failed"); // probe and initialize card err = sdmmc_card_init(host_config, card); CHECK_EXECUTE_RESULT(err, "sdmmc_card_init failed"); vfs_fat_x_ctx_flags_t flags = 0; err = mount_to_vfs_fat(mount_config, card, pdrv, dup_path, &fs, &flags); CHECK_EXECUTE_RESULT(err, "mount_to_vfs failed"); if (out_card != NULL) { *out_card = card; }{...} //For deprecation backward compatibility if (s_saved_ctx_id == FF_VOLUMES) { s_saved_ctx_id = 0; }{...} ctx = calloc(1, sizeof(vfs_fat_sd_ctx_t)); if (!ctx) { CHECK_EXECUTE_RESULT(ESP_ERR_NO_MEM, "no mem"); }{...} ctx->pdrv = pdrv; memcpy(&ctx->mount_config, mount_config, sizeof(esp_vfs_fat_mount_config_t)); ctx->card = card; ctx->base_path = dup_path; ctx->fs = fs; ctx->flags = flags; ctx_id = s_get_unused_context_id(); assert(ctx_id != FF_VOLUMES); s_ctx[ctx_id] = ctx; return ESP_OK; cleanup: if (host_inited) { call_host_deinit(host_config); }{...} free(card); free(dup_path); return err; }{ ... } #endif/* ... */ static esp_err_t init_sdspi_host(int slot, const void *slot_config, int *out_slot) { esp_err_t err = sdspi_host_init_device((const sdspi_device_config_t*)slot_config, out_slot); if (err != ESP_OK) { ESP_LOGE(TAG, "Failed to attach sdspi device onto an SPI bus (rc=0x%x), please initialize the \ bus first and check the device parameters." , err); }{...} return err; }{ ... } esp_err_t esp_vfs_fat_sdspi_mount(const char* base_path, const sdmmc_host_t* host_config_input, const sdspi_device_config_t* slot_config, const esp_vfs_fat_mount_config_t* mount_config, sdmmc_card_t** out_card) { const sdmmc_host_t* host_config = host_config_input; esp_err_t err; vfs_fat_sd_ctx_t *ctx = NULL; uint32_t ctx_id = FF_VOLUMES; FATFS *fs = NULL; int card_handle = -1; //uninitialized bool host_inited = false; BYTE pdrv = FF_DRV_NOT_USED; sdmmc_card_t* card = NULL; char* dup_path = NULL; err = mount_prepare_mem(base_path, &pdrv, &dup_path, &card); if (err != ESP_OK) { ESP_LOGE(TAG, "mount_prepare failed"); return err; }{...} //the init() function is usually empty, doesn't require any deinit to revert it err = (*host_config->init)(); CHECK_EXECUTE_RESULT(err, "host init failed"); err = init_sdspi_host(host_config->slot, slot_config, &card_handle); CHECK_EXECUTE_RESULT(err, "slot init failed"); //Set `host_inited` to true to indicate that host_config->deinit() needs //to be called to revert `init_sdspi_host` host_inited = true; /* * The `slot` argument inside host_config should be replaced by the SD SPI handled returned * above. But the input pointer is const, so create a new variable. *//* ... */ sdmmc_host_t new_config; if (card_handle != host_config->slot) { new_config = *host_config_input; host_config = &new_config; new_config.slot = card_handle; }{...} // probe and initialize card err = sdmmc_card_init(host_config, card); CHECK_EXECUTE_RESULT(err, "sdmmc_card_init failed"); vfs_fat_x_ctx_flags_t flags = 0; err = mount_to_vfs_fat(mount_config, card, pdrv, dup_path, &fs, &flags); CHECK_EXECUTE_RESULT(err, "mount_to_vfs failed"); if (out_card != NULL) { *out_card = card; }{...} //For deprecation backward compatibility if (s_saved_ctx_id == FF_VOLUMES) { s_saved_ctx_id = 0; }{...} ctx = calloc(1, sizeof(vfs_fat_sd_ctx_t)); if (!ctx) { CHECK_EXECUTE_RESULT(ESP_ERR_NO_MEM, "no mem"); }{...} ctx->pdrv = pdrv; memcpy(&ctx->mount_config, mount_config, sizeof(esp_vfs_fat_mount_config_t)); ctx->card = card; ctx->base_path = dup_path; ctx->fs = fs; ctx->flags = flags; ctx_id = s_get_unused_context_id(); assert(ctx_id != FF_VOLUMES); s_ctx[ctx_id] = ctx; return ESP_OK; cleanup: if (host_inited) { call_host_deinit(host_config); }{...} free(card); free(dup_path); return err; }{ ... } static void call_host_deinit(const sdmmc_host_t *host_config) { if (host_config->flags & SDMMC_HOST_FLAG_DEINIT_ARG) { host_config->deinit_p(host_config->slot); }{...} else { host_config->deinit(); }{...} }{ ... } static esp_err_t unmount_card_core(const char *base_path, sdmmc_card_t *card) { BYTE pdrv = ff_diskio_get_pdrv_card(card); if (pdrv == 0xff) { return ESP_ERR_INVALID_ARG; }{...} // unmount char drv[3] = {(char)('0' + pdrv), ':', 0}; f_mount(0, drv, 0); // release SD driver ff_diskio_unregister(pdrv); call_host_deinit(&card->host); free(card); esp_err_t err = esp_vfs_fat_unregister_path(base_path); return err; }{ ... } esp_err_t esp_vfs_fat_sdmmc_unmount(void) { esp_err_t err = unmount_card_core(s_ctx[s_saved_ctx_id]->base_path, s_ctx[s_saved_ctx_id]->card); free(s_ctx[s_saved_ctx_id]); s_ctx[s_saved_ctx_id] = NULL; s_saved_ctx_id = FF_VOLUMES; return err; }{ ... } esp_err_t esp_vfs_fat_sdcard_unmount(const char *base_path, sdmmc_card_t *card) { uint32_t id = FF_VOLUMES; bool found = s_get_context_id_by_card(card, &id); if (!found) { return ESP_ERR_INVALID_ARG; }{...} free(s_ctx[id]->base_path); s_ctx[id]->base_path = NULL; free(s_ctx[id]); s_ctx[id] = NULL; esp_err_t err = unmount_card_core(base_path, card); return err; }{ ... } esp_err_t esp_vfs_fat_sdcard_format_cfg(const char *base_path, sdmmc_card_t *card, esp_vfs_fat_mount_config_t *cfg) { esp_err_t ret = ESP_OK; if (!card) { ESP_LOGE(TAG, "card not initialized"); return ESP_ERR_INVALID_STATE; }{...} BYTE pdrv = ff_diskio_get_pdrv_card(card); if (pdrv == 0xff) { ESP_LOGE(TAG, "card driver not registered"); return ESP_ERR_INVALID_STATE; }{...} //unmount char drv[3] = {(char)('0' + pdrv), ':', 0}; FRESULT res = f_mount(0, drv, 0); if (res != FR_OK) { ESP_LOGE(TAG, "f_mount unmount failed (%d)", res); return ESP_FAIL; }{...} const size_t workbuf_size = 4096; void *workbuf = ff_memalloc(workbuf_size); if (workbuf == NULL) { return ESP_ERR_NO_MEM; }{...} //format uint32_t id = FF_VOLUMES; bool found = s_get_context_id_by_card(card, &id); assert(found); if (cfg) { s_ctx[id]->mount_config = *cfg; }{...} size_t alloc_unit_size = esp_vfs_fat_get_allocation_unit_size( card->csd.sector_size, s_ctx[id]->mount_config.allocation_unit_size); ESP_LOGI(TAG, "Formatting card, allocation unit size=%d", alloc_unit_size); const MKFS_PARM opt = {(BYTE)FM_ANY, (s_ctx[id]->mount_config.use_one_fat ? 1 : 2), 0, 0, alloc_unit_size}; res = f_mkfs(drv, &opt, workbuf, workbuf_size); free(workbuf); if (res != FR_OK) { ret = ESP_FAIL; ESP_LOGD(TAG, "f_mkfs failed (%d)", res); }{...} //mount back esp_err_t err = s_f_mount(card, s_ctx[id]->fs, drv, pdrv, &s_ctx[id]->mount_config, NULL); if (err != ESP_OK) { unmount_card_core(base_path, card); ESP_LOGE(TAG, "failed to format, resources recycled, please mount again"); }{...} return ret; }{ ... } esp_err_t esp_vfs_fat_sdcard_format(const char *base_path, sdmmc_card_t *card) { return esp_vfs_fat_sdcard_format_cfg(base_path, card, NULL); }{ ... }
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.