From 39460931d8e3d044f00f7a4f58b44b1035338f09 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 3 Jun 2024 21:02:24 +1000 Subject: 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. --- src/drivers/storage.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/drivers/storage.cpp') diff --git a/src/drivers/storage.cpp b/src/drivers/storage.cpp index b2b7174e..f4be5864 100644 --- a/src/drivers/storage.cpp +++ b/src/drivers/storage.cpp @@ -57,6 +57,7 @@ auto SdStorage::Create(IGpios& gpio) -> cpp::result { } auto host = std::make_unique(sdmmc_host_t SDSPI_HOST_DEFAULT()); + host->max_freq_khz = SDMMC_FREQ_HIGHSPEED; auto card = std::make_unique(); host->slot = handle; -- cgit v1.2.3