Skip to content

Commit

Permalink
target: add gyro exti
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Nov 4, 2023
1 parent 4a8baea commit bb54c99
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/core/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,17 @@ typedef struct {
MEMBER(port, uint8_t) \
MEMBER(nss, gpio_pins_t)

typedef struct {
spi_ports_t port;
gpio_pins_t nss;
gpio_pins_t exti;
} target_gyro_spi_device_t;

#define TARGET_SPI_DEVICE_MEMBERS \
MEMBER(port, uint8_t) \
MEMBER(nss, gpio_pins_t) \
MEMBER(exti, gpio_pins_t)

typedef struct {
spi_ports_t port;
gpio_pins_t nss;
Expand Down Expand Up @@ -148,7 +159,7 @@ typedef struct {
target_serial_port_t serial_soft_ports[SERIAL_SOFT_COUNT];
target_spi_port_t spi_ports[SPI_PORT_MAX];

target_spi_device_t gyro;
target_gyro_spi_device_t gyro;
uint8_t gyro_orientation;
target_spi_device_t osd;
target_spi_device_t flash;
Expand Down

0 comments on commit bb54c99

Please sign in to comment.