-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsdcard.h
More file actions
27 lines (22 loc) · 945 Bytes
/
sdcard.h
File metadata and controls
27 lines (22 loc) · 945 Bytes
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
// =========================================================
// RowBoy Firmware Prototype v1.0 (ESP32-S3)
// ---------------------------------------------------------
// sdcard.h — SPI SD Card Interface (Header)
//
// Provides:
// • setupSD() — Mounts SD card over shared SPI bus
// • listDir() — Recursive directory listing utility
// =========================================================
#pragma once
#include <Arduino.h>
#include <SPI.h>
#include <SD.h>
// =========================================================
// PUBLIC API
// =========================================================
// Initializes SD card on HSPI and logs stats if enabled.
void setupSD();
// Recursively lists directory contents up to `levels` deep.
// Primarily used for debugging SD mounts or verifying files.
void listDir(fs::FS& fs, const char* dirname, uint8_t levels);
// ======================= End of File =======================