summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2013-10-01 17:13:34 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2013-10-01 17:13:34 +0200
commitef34f43a98f03e11c08819dfaa77b8f7f5705b2e (patch)
tree30be43c4310bf5f5ab7983ca1f49e04a523a8f4e
parent49b9c31a097b99945a5bb406db403655467fe218 (diff)
Added F1/F3 SPI definitions.
-rw-r--r--spi/spi.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/spi/spi.h b/spi/spi.h
index b6b0a90..1f9e0eb 100644
--- a/spi/spi.h
+++ b/spi/spi.h
@@ -33,7 +33,13 @@ class SPI_t {
};
#if defined(STM32F1)
-
+static SPI_t SPI1(0x40013000);
+static SPI_t SPI2(0x40003800);
+static SPI_t SPI3(0x40003c00);
+#elif defined(STM32F3)
+static SPI_t SPI1(0x40013000);
+static SPI_t SPI2(0x40003800);
+static SPI_t SPI3(0x40003c00);
#elif defined(STM32F4)
static SPI_t SPI1(0x40013000);
static SPI_t SPI2(0x40003800);