From e347d2afd6967ff7ed429269ffee8ab22007a7fe Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Fri, 30 Oct 2020 08:23:49 +0100 Subject: [PATCH] board: add spi_pins_conf structure --- src/board.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/board.hpp b/src/board.hpp index 6bf15a1..e18f97f 100644 --- a/src/board.hpp +++ b/src/board.hpp @@ -27,6 +27,15 @@ typedef struct { uint8_t tdo_pin; /*! TDO pin offset */ } jtag_pins_conf_t; +typedef struct { + uint8_t cs_pin; /*! CS pin offset */ + uint8_t sck_pin; /*! SCK pin offset */ + uint8_t miso_pin; /*! MISO pin offset */ + uint8_t mosi_pin; /*! MOSI pin offset */ + uint8_t holdn_pin; /*! HOLDN pin offset */ + uint8_t wpn_pin; /*! WPN pin offset */ +} spi_pins_conf_t; + /*! * \brief a board has a target cable and optionnally a pin configuration * (bitbang mode)