mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Merge pull request #6871 from AlienWiiBF/MAX7456_GENERIC
Update MAX7456 driver for generic target
This commit is contained in:
commit
f34af48dcd
2 changed files with 8 additions and 4 deletions
|
@ -186,10 +186,6 @@
|
|||
#define __spiBusTransactionEnd(busdev) IOHi((busdev)->busdev_u.spi.csnPin)
|
||||
#endif
|
||||
|
||||
#ifndef MAX7456_SPI_CLK
|
||||
#define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD)
|
||||
#endif
|
||||
|
||||
busDevice_t max7456BusDevice;
|
||||
busDevice_t *busdev = &max7456BusDevice;
|
||||
|
||||
|
|
|
@ -25,6 +25,14 @@
|
|||
#define MAX7456_CLOCK_CONFIG_DEFAULT MAX7456_CLOCK_CONFIG_OC
|
||||
#endif
|
||||
|
||||
#ifndef MAX7456_SPI_CLK
|
||||
#define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD)
|
||||
#endif
|
||||
|
||||
#ifndef MAX7456_RESTORE_CLK
|
||||
#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
|
||||
#endif
|
||||
|
||||
#ifndef MAX7456_SPI_CS_PIN
|
||||
#define MAX7456_SPI_CS_PIN NONE
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue