jacqueline
94c30b7591
Isolate the SD card from the SPI bus when talking to the display ( #176 )
...
This should help significantly with https://codeberg.org/cool-tech-zone/tangara-fw/issues/121 , which seems to be caused by some SD cards being very picky about being the only SPI device on their bus.
Co-authored-by: ailurux <ailuruxx@gmail.com>
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/176
Co-authored-by: jacqueline <me@jacqueline.id.au>
Co-committed-by: jacqueline <me@jacqueline.id.au>
3 months ago
jacqueline
50d6efada5
Use '/sd' instead of '/sdcard' for accessing the sd card
...
it's cleaner
7 months ago
jacqueline
39460931d8
Remove spi locking hack + increase max sd frequency
...
These two changes (mostly the former) dramatically increase
responsiveness when doing database updates; previously we were suffering
from some nasty priority inversion.
afaict the underlying need to acquire_spi seems to be fixed? i.e. spi
bus acquisition is working properly. fingers heavily heavily crossed.
11 months ago
jacqueline
26eb580043
move driver includes into a subdir as well
12 months ago
jacqueline
968d545d67
hand off the sd card to the samd properly, and remount when it's finished
1 year ago
jacqueline
c399199bfc
Improve handling of sd card changes during runtime
...
- mount if an sd card is inserted
- unmount if it's removed
1 year ago
Robin Howard
18d90051c9
Annotates the kTag with maybe_unused; they're only used for logging.
2 years ago
jacqueline
4d99d22e10
std::string -> std::pmr::string in psram
2 years ago
jacqueline
320fdeb9d8
Use a service locator instead of passing around subsets of drivers between FSMs
2 years ago
jacqueline
592f231627
Improve sd card errors
2 years ago
jacqueline
80d7df9109
fuck off
2 years ago
jacqueline
230af8e105
Initial r5 bringup
2 years ago
jacqueline
371f0a20ca
Clean up gpios interface
2 years ago
jacqueline
0347555d5b
Start on converting gpio expander interupts to fsm events
2 years ago
jacqueline
a4f94c812a
Annote E V E R Y T H I N G with license info
2 years ago
jacqueline
a6ab150405
Add tinyfsm, start converting core functions to an FSM-based event loop
2 years ago
jacqueline
7083459cf3
wrap driver instance ownership + di in a class
2 years ago
jacqueline
01be69eca1
better handling of chunk buffer
2 years ago
jacqueline
d82a7e3d94
first go at r2 bringup. waiting on mosfets.
2 years ago
jacqueline
acd6d78900
Progress on own pipeline. Still very WIP
2 years ago
jacqueline
1d340db871
Order and group headers correctly
2 years ago
jacqueline
0ef333164b
Use underscores instead of dashes in filenames consistently
2 years ago
jacqueline
675d52c9a5
use a less fun but more descriptive namespace
2 years ago
jacqueline
28d73ad866
Split driver-y things into a separate component
2 years ago
jacqueline
7e9a7393bb
use hpp instead of h
3 years ago
jacqueline
a495c5f0d0
Fix use after free
3 years ago
jacqueline
3726fb750a
standardise on formatting
3 years ago
jacqueline
4fc5f931ac
WIP use result<> and RAII
3 years ago
jacqueline
b9ee0eb88f
Automatically acquire the CS lock when talking to the SD card
3 years ago
jacqueline
4e643baf5f
Neaten up the gpio api, use RAII, make it thread safe
3 years ago
jacqueline
122306d619
Clean up new storage bits
3 years ago
jacqueline
f6f4903442
Basic fat32 mounting!
3 years ago
jacqueline
6d20efc702
SPI and SD card initialisation
3 years ago