From 5455b0970eb0435578d9213936915ed83cff0496 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 27 Feb 2010 23:21:25 +0100 Subject: Add missing GPIO definitions for I2C1, I2C2, SPI2. Thanks Thomas Otto for the patch! --- include/libopenstm32/gpio.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/libopenstm32/gpio.h b/include/libopenstm32/gpio.h index b8b7eb5..cfdc08b 100644 --- a/include/libopenstm32/gpio.h +++ b/include/libopenstm32/gpio.h @@ -118,15 +118,27 @@ #define GPIO_USART1_RX GPIO10 /* PA10 */ /* I2C1 */ +#define GPIO_I2C1_SMBAI GPIO5 /* PB5 */ #define GPIO_I2C1_SCL GPIO6 /* PB6 */ #define GPIO_I2C1_SDA GPIO7 /* PB7 */ +/* I2C2 */ +#define GPIO_I2C2_SCL GPIO10 /* PB10 */ +#define GPIO_I2C2_SDA GPIO11 /* PB11 */ +#define GPIO_I2C2_SMBAI GPIO12 /* PB12 */ + /* SPI1 */ #define GPIO_SPI1_NSS GPIO4 /* PA4 */ #define GPIO_SPI1_SCK GPIO5 /* PA5 */ #define GPIO_SPI1_MISO GPIO6 /* PA6 */ #define GPIO_SPI1_MOSI GPIO7 /* PA7 */ +/* SPI2 */ +#define GPIO_SPI2_NSS GPIO12 /* PB12 */ +#define GPIO_SPI2_SCK GPIO13 /* PB13 */ +#define GPIO_SPI2_MISO GPIO14 /* PB14 */ +#define GPIO_SPI2_MOSI GPIO15 /* PB15 */ + /* SPI3 */ #define GPIO_SPI3_NSS GPIO15 /* PA15 */ #define GPIO_SPI3_SCK GPIO3 /* PB3 */ -- cgit v1.2.3