mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
New SPI API supporting DMA
Call targetConfiguration() once before config is loaded and again afterwards in case the config needs to be changed to load from SD card etc Drop SPI clock during binding Remove debug Add per device SPI DMA enable Fix sdioPinConfigure() declaration warning Reduce clock speed during SPI RX initialisation
This commit is contained in:
parent
6d286e25f1
commit
87c8847c13
136 changed files with 3585 additions and 2721 deletions
|
@ -521,7 +521,8 @@ static void serializeDataflashReadReply(sbuf_t *dst, uint32_t address, const uin
|
|||
#ifdef USE_HUFFMAN
|
||||
// compress in 256-byte chunks
|
||||
const uint16_t READ_BUFFER_SIZE = 256;
|
||||
uint8_t readBuffer[READ_BUFFER_SIZE];
|
||||
// This may be DMAable, so make it cache aligned
|
||||
__attribute__ ((aligned(32))) uint8_t readBuffer[READ_BUFFER_SIZE];
|
||||
|
||||
huffmanState_t state = {
|
||||
.bytesWritten = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue