in sev state
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
|
||||
// SPI until the SDIO-capable board arrives.
|
||||
#ifndef STORAGE_IFACE
|
||||
#define STORAGE_IFACE STORAGE_IFACE_SPI
|
||||
#define STORAGE_IFACE STORAGE_IFACE_SDMMC
|
||||
#endif
|
||||
|
||||
// --- Common -----------------------------------------------------------------
|
||||
@@ -75,12 +75,19 @@
|
||||
// --- SDIO / SD_MMC (production, 4-bit) --------------------------------------
|
||||
|
||||
// Default ESP32 SDMMC slot-1 pins (GPIO matrix, freely re-routable).
|
||||
#define STORAGE_SDMMC_CLK 6
|
||||
#define STORAGE_SDMMC_CMD 11
|
||||
#define STORAGE_SDMMC_D0 7
|
||||
#define STORAGE_SDMMC_D1 8
|
||||
#define STORAGE_SDMMC_D2 9
|
||||
#define STORAGE_SDMMC_D3 10
|
||||
// Interface 1: #define STORAGE_SDMMC_CLK 6
|
||||
// Interface 1: #define STORAGE_SDMMC_CMD 11
|
||||
// Interface 1: #define STORAGE_SDMMC_D0 7
|
||||
// Interface 1: #define STORAGE_SDMMC_D1 8
|
||||
// Interface 1: #define STORAGE_SDMMC_D2 9
|
||||
// Interface 1: #define STORAGE_SDMMC_D3 10
|
||||
|
||||
#define STORAGE_SDMMC_CLK 14
|
||||
#define STORAGE_SDMMC_CMD 15
|
||||
#define STORAGE_SDMMC_D0 2
|
||||
#define STORAGE_SDMMC_D1 4
|
||||
#define STORAGE_SDMMC_D2 12
|
||||
#define STORAGE_SDMMC_D3 13
|
||||
|
||||
// false = 4-bit wide bus (required for >8 MB/s). Do NOT enable 1-bit mode.
|
||||
#define STORAGE_SDMMC_MODE_1BIT false
|
||||
@@ -113,14 +120,20 @@
|
||||
// this benchmark disabled by setting the interval to 0 (measure once at boot).
|
||||
#define STORAGE_SPEED_MEASURE_INTERVAL_MS 0
|
||||
|
||||
// --- Bring-up sanity test ----------------------------------------------------
|
||||
|
||||
// Small fixed-content file written at boot to prove the card's write path
|
||||
// works end to end (create/open/write/close on the live mount).
|
||||
#define STORAGE_TEST_FILE_PATH STORAGE_MOUNT_POINT "/happy_file.txt"
|
||||
|
||||
// --- Audio logging ----------------------------------------------------------
|
||||
//
|
||||
// The DataLogger (docs/audio_logging.md) writes one multichannel WAV file
|
||||
// per rotation. The Node collection task feeds it interleaved 40-channel PCM
|
||||
// as chunks; the logger appends them and only the consumer touches the card.
|
||||
//
|
||||
// Stream rate: 40 ch x 48 kHz x 2 B = 3,840,000 B/s. The 128 KB pool holds
|
||||
// ~34 ms of audio, so collection rounds must stay <= ~25 ms (<= 96 KB) or
|
||||
// Stream rate: 40 ch x 48 kHz x 2 B = 3,840,000 B/s. The 64 KB pool holds
|
||||
// ~17 ms of audio, so collection rounds must stay <= ~12 ms (<= 48 KB) or
|
||||
// the pool must grow (see docs/audio_logging.md section 7).
|
||||
|
||||
// WAV parameters (must match what the Nodes produce).
|
||||
@@ -129,8 +142,9 @@
|
||||
#define STORAGE_AUDIO_BITS 16
|
||||
|
||||
// Chunk pool: STORAGE_LOG_POOL_SIZE chunks of STORAGE_LOG_CHUNK_SIZE bytes,
|
||||
// allocated with MALLOC_CAP_DMA. 128 KB total.
|
||||
#define STORAGE_LOG_CHUNK_SIZE (16 * 1024)
|
||||
// allocated with MALLOC_CAP_DMA. 64 KB total. Each interleave round (see
|
||||
// NET_ROUND_FRAMES) must fit inside one chunk.
|
||||
#define STORAGE_LOG_CHUNK_SIZE (8 * 1024)
|
||||
#define STORAGE_LOG_POOL_SIZE 8
|
||||
|
||||
// Recording directory and rotation policy.
|
||||
|
||||
Reference in New Issue
Block a user