summaryrefslogtreecommitdiff
path: root/src/drivers/include
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-06-03 21:02:24 +1000
committerjacqueline <me@jacqueline.id.au>2024-06-03 21:02:24 +1000
commit39460931d8e3d044f00f7a4f58b44b1035338f09 (patch)
treea12b989d1f132ae3c5f830959b35315d6f69c51a /src/drivers/include
parent9457f9021a633ab97b8259f162124857cc0acf8e (diff)
downloadtangara-fw-39460931d8e3d044f00f7a4f58b44b1035338f09.tar.gz
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.
Diffstat (limited to 'src/drivers/include')
-rw-r--r--src/drivers/include/drivers/spi.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/include/drivers/spi.hpp b/src/drivers/include/drivers/spi.hpp
index 60638f71..95b002b4 100644
--- a/src/drivers/include/drivers/spi.hpp
+++ b/src/drivers/include/drivers/spi.hpp
@@ -13,6 +13,6 @@ namespace drivers {
esp_err_t init_spi(void);
esp_err_t deinit_spi(void);
-std::lock_guard<std::mutex> acquire_spi(void);
+int acquire_spi(void);
} // namespace drivers