Meshtastic device firmware
Go to file
Woutvstk 96277ed804
First attempt to adding hardware support for NRF52 SPI SD Card (#5561)
* First attempt to adding hardware support for NRF52 SPI SD Card using arduino SD library
My first time contributing to an open source project so not very confident in what i'm doing.

Changes to
FSCommon:
initializing SD library for NRF52. Progress: No compile error, but SD card does not get initialized properly yet
added ifdef ARCH_ESP32 conditions around esp32 SD library functions

memget: added ifdef conditional statements

StoreForwardModule.cpp: added ifdef conditional statements

Rak4631 platfromIO.ini and variant.h:
added arduino-libraries/SD@^1.3.0 library to libdeps
defined HAS_SDCARD and SPI pins

Arduino SD library. Made changes to library because using namespace SDLIB in header file caused ambiguity problems
Not sure this is the right way of adding a library, also, how do i implement changes to the library permanently to the project?

Am I going somewhat in the right direction with these changes? Tell me your thoughts, thanks

* replaced arduino SD library to custom fork.
A "using namespace" statement in the header file was to messy to work around.
NRF52 SD card initialisation added

* updated library reference
added card size and type function to SD library
added populateSDCard for NRF52

* Changed NRF52 SD object from SDFilesystem to SD

Changed NRF52 SD object from SDFilesystem to SD for more compatibility with esp32 SD library. Some functions are still different but most used open, read, write and close are the same.

* Removed duplicate ESP32/NRF52 SD card access code

Mainly made changes to the custom arduino SD library to make it compatible with the esp32 SD library already used in the store and forward code.
With these compatible function names and return, I removed some duplicate code.

* trunk fmt and pin SD library to commit hash

* print this out on ESP32 anyway

---------

Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
2025-01-05 21:19:16 +01:00
.devcontainer Windows Support - Trunk and Platformio (#5397) (#5518) 2024-12-12 16:58:19 +01:00
.github meshtasticd-docker: simplify, add USB compose (#5662) 2024-12-26 12:59:26 -06:00
.trunk Support TLORA_V3.0 (#5563) 2024-12-14 10:59:15 +01:00
.vscode Support for Polish OLED characters 2024-08-28 13:10:19 +02:00
arch Bump libch341 userspace to dev branch 2024-12-25 16:47:00 -06:00
bin Update Femtofox configs (#5646) 2024-12-22 10:04:18 +11:00
boards Minor TFT branch cherry-picks (#5682) 2024-12-28 08:32:24 -06:00
data/static Bundle WebUI (#878) 2021-10-09 17:15:12 +11:00
extra_scripts Fixes for #4395: nrf52 flash filesystem reliability (#4406) 2024-08-13 06:45:39 -05:00
images No idea why trunk wants to disturb these PNGs but... 2024-10-08 05:34:41 -05:00
meshtestic@dcac7e5673 python3 ref 2024-09-24 15:24:08 -05:00
monitor Fixes for #4395: nrf52 flash filesystem reliability (#4406) 2024-08-13 06:45:39 -05:00
protobufs@c55f120a9c [create-pull-request] automated change (#5660) 2024-12-25 19:31:46 -06:00
release Cleans up visibility in GPS.h (#5426) 2024-11-23 06:10:09 -06:00
src First attempt to adding hardware support for NRF52 SPI SD Card (#5561) 2025-01-05 21:19:16 +01:00
test Include log messages in unit tests (#5666) 2024-12-26 13:42:15 +11:00
variants First attempt to adding hardware support for NRF52 SPI SD Card (#5561) 2025-01-05 21:19:16 +01:00
.env.example meshtasticd-docker: simplify, add USB compose (#5662) 2024-12-26 12:59:26 -06:00
.gitattributes trunk roundhouse kick 2023-01-21 21:23:24 +01:00
.gitignore Remove ancient .gitignore lines (#4952) 2024-10-05 05:15:20 -05:00
.gitmodules Hello world for MeshTestic (#4607) 2024-09-01 11:29:34 -05:00
.gitpod.yml add a .yml to setup a Gitpod instance quickly (#4551) 2024-08-23 20:24:23 -05:00
.semgrepignore Fix de/compression buffer overflows in TAK packets (#4317) 2024-07-23 06:16:53 -05:00
alpine.Dockerfile meshtasticd-docker: Alpine container (#5659) 2024-12-26 13:00:50 -06:00
CODE_OF_CONDUCT.md Trunk 2024-11-28 06:26:51 -06:00
CONTRIBUTING.md lol of course trunk fmt 2024-09-04 15:33:28 -07:00
docker-compose.yml meshtasticd-docker: simplify, add USB compose (#5662) 2024-12-26 12:59:26 -06:00
Dockerfile meshtasticd-docker: simplify, add USB compose (#5662) 2024-12-26 12:59:26 -06:00
LICENSE move my bt experiment into its own repo (about to remove ttn) 2020-02-01 08:30:53 -08:00
partition-table.csv - new Bootloader for ESP-IDF 4.2 2022-09-26 22:42:58 +02:00
platformio.ini Exclude health telemetry by macro (#5679) 2024-12-28 08:49:24 +11:00
pyocd.yaml Add semihosting support for nrf52 devices (#4137) 2024-06-24 10:27:37 -05:00
README.md Update README.md 2023-10-09 22:30:02 +10:00
SECURITY.md Trunk things 2024-09-25 16:18:45 -05:00
suppressions.txt Cpp-check warnings cleanup (#3014) 2023-12-14 07:35:46 -06:00
userPrefs.jsonc Convert userprefs to a json file instead of header file which has to be included everywhere (#5471) 2024-12-03 06:17:25 -06:00
version.properties [create-pull-request] automated change (#5686) 2024-12-28 18:23:56 -06:00

Meshtastic Firmware

GitHub release downloads CI CLA assistant Fiscal Contributors Vercel

Overview

This repository contains the device firmware for the Meshtastic project.

Stats

Alt