Add spi_pinmap_t struct

pull/11892/head
Przemyslaw Stekiel 2019-08-20 12:23:25 +02:00
parent a1cddbae5f
commit 5aae19792f
1 changed files with 11 additions and 1 deletions

View File

@ -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