mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +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
|
@ -146,18 +146,18 @@ extern "C" {
|
|||
void delay(uint32_t) {}
|
||||
void delayMicroseconds(uint32_t) {}
|
||||
|
||||
bool busBusy(const busDevice_t*, bool*) {return false;}
|
||||
bool busRawReadRegisterBuffer(const busDevice_t*, uint8_t, uint8_t*, uint8_t) {return true;}
|
||||
bool busRawReadRegisterBufferStart(const busDevice_t*, uint8_t, uint8_t*, uint8_t) {return true;}
|
||||
bool busRawWriteRegister(const busDevice_t*, uint8_t, uint8_t) {return true;}
|
||||
bool busRawWriteRegisterStart(const busDevice_t*, uint8_t, uint8_t) {return true;}
|
||||
void busDeviceRegister(const busDevice_t*) {}
|
||||
bool busBusy(const extDevice_t*, bool*) {return false;}
|
||||
bool busRawReadRegisterBuffer(const extDevice_t*, uint8_t, uint8_t*, uint8_t) {return true;}
|
||||
bool busRawReadRegisterBufferStart(const extDevice_t*, uint8_t, uint8_t*, uint8_t) {return true;}
|
||||
bool busRawWriteRegister(const extDevice_t*, uint8_t, uint8_t) {return true;}
|
||||
bool busRawWriteRegisterStart(const extDevice_t*, uint8_t, uint8_t) {return true;}
|
||||
void busDeviceRegister(const extDevice_t*) {}
|
||||
|
||||
uint16_t spiCalculateDivider() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
void spiBusSetDivisor() {
|
||||
void spiSetClkDivisor() {
|
||||
}
|
||||
|
||||
void spiPreinitByIO() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue