Skip to content

Instantly share code, notes, and snippets.

@flaminggoat
flaminggoat / main.rs
Created March 3, 2023 21:23
ESP32 SD card access from Rust using esp_idf_sys
use std::io::{BufWriter, Write};
use std::ptr::{null, null_mut};
use std::time::Instant;
use esp_idf_sys as _; // If using the `binstart` feature of `esp-idf-sys`, always keep this module imported
use esp_idf_sys::c_types::{c_int, c_void};
use std::fs::{self, File};
fn main() {
boot v1.17 (216T-CA)
^^RAM START (0x40400000)
***********************************************
* Eldon Technology Ltd. Bootloader (c) 2005 *
***********************************************
Info only: download v1.00 on Sep 7 2009 at 16:00:48