From 5aae19792f6fabb3ee08ba10111c482557af3fc1 Mon Sep 17 00:00:00 2001 From: Przemyslaw Stekiel Date: Tue, 20 Aug 2019 12:23:25 +0200 Subject: [PATCH] Add spi_pinmap_t struct --- hal/spi_api.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hal/spi_api.h b/hal/spi_api.h index 54ea7fa221..91fc36059e 100644 --- a/hal/spi_api.h +++ b/hal/spi_api.h @@ -51,7 +51,17 @@ typedef struct { */ typedef struct spi_s spi_t; -#endif +typedef struct { + const int peripheral; + const PinName mosi_pin; + const int mosi_function; + const PinName miso_pin; + const int miso_function; + const PinName sclk_pin; + const int sclk_function; + const PinName ssel_pin; + const int ssel_function; +} spi_pinmap_t; /** * Describes the capabilities of a SPI peripherals