mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +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
|
@ -273,6 +273,20 @@ void initialiseMemorySections(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef STM32H7
|
||||
void initialiseD2MemorySections(void)
|
||||
{
|
||||
/* Load DMA_DATA variable intializers into D2 RAM */
|
||||
extern uint8_t _sdmaram_bss;
|
||||
extern uint8_t _edmaram_bss;
|
||||
extern uint8_t _sdmaram_data;
|
||||
extern uint8_t _edmaram_data;
|
||||
extern uint8_t _sdmaram_idata;
|
||||
bzero(&_sdmaram_bss, (size_t) (&_edmaram_bss - &_sdmaram_bss));
|
||||
memcpy(&_sdmaram_data, &_sdmaram_idata, (size_t) (&_edmaram_data - &_sdmaram_data));
|
||||
}
|
||||
#endif
|
||||
|
||||
static void unusedPinInit(IO_t io)
|
||||
{
|
||||
if (IOGetOwner(io) == OWNER_FREE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue