mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Touch up
This commit is contained in:
parent
0c803f23d2
commit
1923316efd
2 changed files with 0 additions and 6 deletions
|
@ -93,8 +93,6 @@ const spiDefaultConfig_t spiDefaultConfig[] = {
|
||||||
|
|
||||||
void pgResetFn_spiPinConfig(spiPinConfig_t *spiPinConfig)
|
void pgResetFn_spiPinConfig(spiPinConfig_t *spiPinConfig)
|
||||||
{
|
{
|
||||||
memset(spiPinConfig, 0, sizeof(*spiPinConfig));
|
|
||||||
|
|
||||||
for (size_t i = 0 ; i < ARRAYLEN(spiDefaultConfig) ; i++) {
|
for (size_t i = 0 ; i < ARRAYLEN(spiDefaultConfig) ; i++) {
|
||||||
const spiDefaultConfig_t *defconf = &spiDefaultConfig[i];
|
const spiDefaultConfig_t *defconf = &spiDefaultConfig[i];
|
||||||
spiPinConfig->ioTagSck[defconf->device] = defconf->sck;
|
spiPinConfig->ioTagSck[defconf->device] = defconf->sck;
|
||||||
|
|
|
@ -2756,10 +2756,6 @@ const cliResourceValue_t resourceTable[] = {
|
||||||
{ OWNER_I2C_SCL, PG_I2C_CONFIG, offsetof(i2cConfig_t, ioTagScl[0]), I2CDEV_COUNT },
|
{ OWNER_I2C_SCL, PG_I2C_CONFIG, offsetof(i2cConfig_t, ioTagScl[0]), I2CDEV_COUNT },
|
||||||
{ OWNER_I2C_SDA, PG_I2C_CONFIG, offsetof(i2cConfig_t, ioTagSda[0]), I2CDEV_COUNT },
|
{ OWNER_I2C_SDA, PG_I2C_CONFIG, offsetof(i2cConfig_t, ioTagSda[0]), I2CDEV_COUNT },
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_SPEKTRUM_BIND
|
|
||||||
{ OWNER_RX_BIND, PG_RX_CONFIG, offsetof(rxConfig_t, spektrum_bind_pin_override_ioTag), 0 },
|
|
||||||
{ OWNER_RX_BIND_PLUG, PG_RX_CONFIG, offsetof(rxConfig_t, spektrum_bind_plug_ioTag), 0 },
|
|
||||||
#endif
|
|
||||||
#ifdef USE_SPI
|
#ifdef USE_SPI
|
||||||
{ OWNER_SPI_SCK, PG_SPI_PIN_CONFIG, offsetof(spiPinConfig_t, ioTagSck[0]), SPIDEV_COUNT },
|
{ OWNER_SPI_SCK, PG_SPI_PIN_CONFIG, offsetof(spiPinConfig_t, ioTagSck[0]), SPIDEV_COUNT },
|
||||||
{ OWNER_SPI_MISO, PG_SPI_PIN_CONFIG, offsetof(spiPinConfig_t, ioTagMiso[0]), SPIDEV_COUNT },
|
{ OWNER_SPI_MISO, PG_SPI_PIN_CONFIG, offsetof(spiPinConfig_t, ioTagMiso[0]), SPIDEV_COUNT },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue