mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Cache SPI handle to improve performance
This commit is contained in:
parent
e97e23e0be
commit
6edb4b9c19
6 changed files with 59 additions and 27 deletions
|
@ -383,3 +383,8 @@ uint8_t spiReadRegister(const busDevice_t *bus, uint8_t reg)
|
|||
|
||||
return data;
|
||||
}
|
||||
|
||||
void spiBusSetInstance(busDevice_t *bus, SPI_TypeDef *instance)
|
||||
{
|
||||
bus->spi.instance = instance;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue