summaryrefslogtreecommitdiff
path: root/src/drivers/SpiMaster.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-01-26 15:35:18 +0100
committerJF <jf@codingfield.com>2020-01-26 15:35:18 +0100
commit640e8cd1febc679b976fb26225aec8d462a4c241 (patch)
treee008509713b90cf7c71b442b903a415d11227c1f /src/drivers/SpiMaster.h
parent5fa4f5abe0b752bb2d990378e02d6424a1d1b661 (diff)
GFX : wait end of transfert using a task notification.
Code cleaning in SpiMaster.
Diffstat (limited to 'src/drivers/SpiMaster.h')
-rw-r--r--src/drivers/SpiMaster.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/SpiMaster.h b/src/drivers/SpiMaster.h
index 7dac747a..60013242 100644
--- a/src/drivers/SpiMaster.h
+++ b/src/drivers/SpiMaster.h
@@ -34,7 +34,9 @@ namespace Pinetime {
void Wakeup();
private:
- void setup_workaround_for_ftpan_58(NRF_SPIM_Type *spim, uint32_t ppi_channel, uint32_t gpiote_channel);
+ void SetupWorkaroundForFtpan58(NRF_SPIM_Type *spim, uint32_t ppi_channel, uint32_t gpiote_channel);
+ void DisableWorkaroundForFtpan58(NRF_SPIM_Type *spim, uint32_t ppi_channel, uint32_t gpiote_channel);
+ void PrepareTx(const volatile uint32_t bufferAddress, const volatile size_t size);
NRF_SPIM_Type * spiBaseAddress;
uint8_t pinCsn;