GFX : wait end of transfert using a task notification.

Code cleaning in SpiMaster.
This commit is contained in:
JF
2020-01-26 15:35:18 +01:00
parent 5fa4f5abe0
commit 640e8cd1fe
4 changed files with 82 additions and 63 deletions

View File

@@ -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;