mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
SPI Bus stub functions for RP PICO
This commit is contained in:
parent
4648ca7a85
commit
766c7c019b
1 changed files with 6 additions and 25 deletions
|
@ -37,21 +37,6 @@
|
||||||
#include "hardware/spi.h"
|
#include "hardware/spi.h"
|
||||||
#include "hardware/gpio.h"
|
#include "hardware/gpio.h"
|
||||||
|
|
||||||
|
|
||||||
static uint16_t spiDivisorToBRbits(spi_inst_t *instance, uint16_t divisor)
|
|
||||||
{
|
|
||||||
UNUSED(instance);
|
|
||||||
divisor = constrain(divisor, 2, 256);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void spiSetDivisorBRreg(spi_inst_t *instance, uint16_t divisor)
|
|
||||||
{
|
|
||||||
//TODO: implement
|
|
||||||
UNUSED(instance);
|
|
||||||
UNUSED(divisor);
|
|
||||||
}
|
|
||||||
|
|
||||||
void spiInitDevice(SPIDevice device)
|
void spiInitDevice(SPIDevice device)
|
||||||
{
|
{
|
||||||
//TODO: implement
|
//TODO: implement
|
||||||
|
@ -70,16 +55,6 @@ void spiInternalResetStream(dmaChannelDescriptor_t *descriptor)
|
||||||
UNUSED(descriptor);
|
UNUSED(descriptor);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool spiInternalReadWriteBufPolled(spi_inst_t *instance, const uint8_t *txData, uint8_t *rxData, int len)
|
|
||||||
{
|
|
||||||
//TODO: implement
|
|
||||||
UNUSED(instance);
|
|
||||||
UNUSED(txData);
|
|
||||||
UNUSED(rxData);
|
|
||||||
UNUSED(len);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void spiInternalInitStream(const extDevice_t *dev, bool preInit)
|
void spiInternalInitStream(const extDevice_t *dev, bool preInit)
|
||||||
{
|
{
|
||||||
//TODO: implement
|
//TODO: implement
|
||||||
|
@ -105,4 +80,10 @@ void spiSequenceStart(const extDevice_t *dev)
|
||||||
//TODO: implement
|
//TODO: implement
|
||||||
UNUSED(dev);
|
UNUSED(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint16_t spiCalculateDivider(uint32_t freq)
|
||||||
|
{
|
||||||
|
UNUSED(freq);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue