aboutsummaryrefslogtreecommitdiff
path: root/include/libopenstm32
diff options
context:
space:
mode:
authorUwe Hermann2010-02-27 23:21:25 +0100
committerUwe Hermann2010-02-27 23:21:25 +0100
commit5455b0970eb0435578d9213936915ed83cff0496 (patch)
treecdc0ddb5e418e11a9956f731a6242640d7ca49d0 /include/libopenstm32
parentcdc1846f5b89d5bd802743a9ad8a316f321caf66 (diff)
Add missing GPIO definitions for I2C1, I2C2, SPI2.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
Diffstat (limited to 'include/libopenstm32')
-rw-r--r--include/libopenstm32/gpio.h12
1 files changed, 12 insertions, 0 deletions
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 */