-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reseting the gitignore file and cache
- Loading branch information
Fortinbra
committed
May 10, 2024
1 parent
adbe9f6
commit 5eaedd3
Showing
11 changed files
with
117 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "lib/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico"] | ||
path = lib/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico | ||
url = https://github.com/carlk3/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico.git | ||
[submodule "GP2040-RE-Pico/Libraries/KiCad-RP-Pico"] | ||
path = GP2040-RE-Pico/Libraries/KiCad-RP-Pico | ||
url = https://github.com/ncarandini/KiCad-RP-Pico.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(kicad_pcb (version 20240108) (generator "pcbnew") (generator_version "8.0") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"board": { | ||
"design_settings": { | ||
"defaults": {}, | ||
"diff_pair_dimensions": [], | ||
"drc_exclusions": [], | ||
"rules": {}, | ||
"track_widths": [], | ||
"via_dimensions": [] | ||
} | ||
}, | ||
"boards": [], | ||
"libraries": { | ||
"pinned_footprint_libs": [], | ||
"pinned_symbol_libs": [] | ||
}, | ||
"meta": { | ||
"filename": "kicad.kicad_pro", | ||
"version": 1 | ||
}, | ||
"net_settings": { | ||
"classes": [], | ||
"meta": { | ||
"version": 0 | ||
} | ||
}, | ||
"pcbnew": { | ||
"page_layout_descr_file": "" | ||
}, | ||
"sheets": [], | ||
"text_variables": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(kicad_sch (version 20231120) (generator "eeschema") (generator_version "8.0") | ||
(paper "A4") | ||
(lib_symbols) | ||
(symbol_instances) | ||
) |
Submodule KiCad-RP-Pico
added at
dc6f9b
Submodule no-OS-FatFS-SD-SDIO-SPI-RPi-Pico
deleted from
6bf8a9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#include "headers/FileManager.h" | ||
|
||
#define SDIO_CMD_PIN 17 | ||
#define SDIO_D0_PIN 18 | ||
|
||
FileManager::FileManager() | ||
: sdio(SDIO()) // Initialize the SDIO instance | ||
{ | ||
} | ||
|
||
void FileManager::initSDCard() | ||
{ | ||
// Initialize the SDIO hardware | ||
sdio_init(); | ||
|
||
// Mount the file system | ||
FRESULT res = f_mount(&fs, "", 1); | ||
|
||
// Check for errors | ||
if (res != FR_OK) | ||
{ | ||
printf("Failed to mount the file system (res = %d)\n", res); | ||
return; | ||
} | ||
|
||
// The SD card is now ready to use | ||
printf("SD card initialized successfully\n"); | ||
} | ||
|
||
void FileManager::readFromSDCard(char *filename, char *buffer, int bufferSize) | ||
{ | ||
// Read data from the SD card using the SDIO instance | ||
} | ||
|
||
void FileManager::writeToSDCard(char *filename, char *buffer, int bufferSize) | ||
{ | ||
// Write data to the SD card using the SDIO instance | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "ff.h" | ||
|
||
class FileManager { | ||
public: | ||
FileManager(); | ||
void initSDCard(); // Add this method | ||
void readFromSDCard(char* filename, char* buffer, int bufferSize); // Add this method | ||
void writeToSDCard(char* filename, char* buffer, int bufferSize); // Add this method | ||
|
||
private: | ||
FATFS fs; | ||
}; |