#include "SD.h" FATFS sdfs; uint8_t sd_scheduler_timer = 0; uint8_t sd_status = SD_STATUS_UNKNOWN; bool sd_mountstate = false; // Job flags bool sd_flag_needs_automount = false; bool sd_flag_needs_autounmount = false; bool sd_flag_was_automounted = false; bool sd_flag_was_autounmounted = false; void sd_init(void) { SPI_DDR |= _BV(SPI_MOSI) | _BV(SPI_CLK); SPI_DDR &= ~(_BV(SPI_MISO)); SPCR = (1<> 1); // Sec 0 }