aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/mb525/fancyblink/fancyblink.c3
-rw-r--r--examples/mb525/pwmleds/pwmleds.c1
-rw-r--r--examples/stm32-h103/fancyblink/fancyblink.c3
-rw-r--r--examples/stm32-h103/miniblink/miniblink.c3
-rw-r--r--examples/stm32-h103/spi/spi.c2
-rw-r--r--examples/stm32-h103/usart/usart.c4
-rw-r--r--include/libopenstm32/adc.h3
-rw-r--r--include/libopenstm32/flash.h3
-rw-r--r--include/libopenstm32/i2c.h3
-rw-r--r--include/libopenstm32/nvic.h3
-rw-r--r--include/libopenstm32/rtc.h3
-rw-r--r--include/libopenstm32/spi.h3
-rw-r--r--include/libopenstm32/usart.h3
13 files changed, 24 insertions, 13 deletions
diff --git a/examples/mb525/fancyblink/fancyblink.c b/examples/mb525/fancyblink/fancyblink.c
index 9c5e581..f3e7c9b 100644
--- a/examples/mb525/fancyblink/fancyblink.c
+++ b/examples/mb525/fancyblink/fancyblink.c
@@ -18,7 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
+#include <libopenstm32/rcc.h>
+#include <libopenstm32/gpio.h>
/* Set STM32 to 72 MHz. */
void clock_setup(void)
diff --git a/examples/mb525/pwmleds/pwmleds.c b/examples/mb525/pwmleds/pwmleds.c
index 12c88b5..2bff5a4 100644
--- a/examples/mb525/pwmleds/pwmleds.c
+++ b/examples/mb525/pwmleds/pwmleds.c
@@ -17,7 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32/common.h>
#include <libopenstm32/rcc.h>
#include <libopenstm32/gpio.h>
#include <libopenstm32/timer.h>
diff --git a/examples/stm32-h103/fancyblink/fancyblink.c b/examples/stm32-h103/fancyblink/fancyblink.c
index aad1879..1118e4d 100644
--- a/examples/stm32-h103/fancyblink/fancyblink.c
+++ b/examples/stm32-h103/fancyblink/fancyblink.c
@@ -17,7 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
+#include <libopenstm32/rcc.h>
+#include <libopenstm32/gpio.h>
/* Set STM32 to 72 MHz. */
void clock_setup(void)
diff --git a/examples/stm32-h103/miniblink/miniblink.c b/examples/stm32-h103/miniblink/miniblink.c
index a8d253c..21575f6 100644
--- a/examples/stm32-h103/miniblink/miniblink.c
+++ b/examples/stm32-h103/miniblink/miniblink.c
@@ -17,7 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
+#include <libopenstm32/rcc.h>
+#include <libopenstm32/gpio.h>
void gpio_setup(void)
{
diff --git a/examples/stm32-h103/spi/spi.c b/examples/stm32-h103/spi/spi.c
index 86bd2a9..bf313be 100644
--- a/examples/stm32-h103/spi/spi.c
+++ b/examples/stm32-h103/spi/spi.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
+#include <libopenstm32/rcc.h>
void clock_setup(void)
{
diff --git a/examples/stm32-h103/usart/usart.c b/examples/stm32-h103/usart/usart.c
index 52a158d..7f1c343 100644
--- a/examples/stm32-h103/usart/usart.c
+++ b/examples/stm32-h103/usart/usart.c
@@ -17,7 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
+#include <libopenstm32/rcc.h>
+#include <libopenstm32/gpio.h>
+#include <libopenstm32/usart.h>
void clock_setup(void)
{
diff --git a/include/libopenstm32/adc.h b/include/libopenstm32/adc.h
index 0ffd152..7611be1 100644
--- a/include/libopenstm32/adc.h
+++ b/include/libopenstm32/adc.h
@@ -20,7 +20,8 @@
#ifndef LIBOPENSTM32_ADC_H
#define LIBOPENSTM32_ADC_H
-#include <libopenstm32.h>
+#include <libopenstm32/memorymap.h>
+#include <libopenstm32/common.h>
/* --- Convenience macros -------------------------------------------------- */
diff --git a/include/libopenstm32/flash.h b/include/libopenstm32/flash.h
index 49e5b95..b4151ef 100644
--- a/include/libopenstm32/flash.h
+++ b/include/libopenstm32/flash.h
@@ -27,7 +27,8 @@
#ifndef LIBOPENSTM32_FLASH_H
#define LIBOPENSTM32_FLASH_H
-#include <libopenstm32.h>
+#include <libopenstm32/memorymap.h>
+#include <libopenstm32/common.h>
/* --- FLASH registers ----------------------------------------------------- */
diff --git a/include/libopenstm32/i2c.h b/include/libopenstm32/i2c.h
index 62e7b62..85fdeb1 100644
--- a/include/libopenstm32/i2c.h
+++ b/include/libopenstm32/i2c.h
@@ -20,7 +20,8 @@
#ifndef LIBOPENSTM32_I2C_H
#define LIBOPENSTM32_I2C_H
-#include <libopenstm32.h>
+#include <libopenstm32/memorymap.h>
+#include <libopenstm32/common.h>
/* --- Convenience macros -------------------------------------------------- */
diff --git a/include/libopenstm32/nvic.h b/include/libopenstm32/nvic.h
index 0a740a0..aa427e4 100644
--- a/include/libopenstm32/nvic.h
+++ b/include/libopenstm32/nvic.h
@@ -20,7 +20,8 @@
#ifndef LIBOPENSTM32_NVIC_H
#define LIBOPENSTM32_NVIC_H
-#include <libopenstm32.h>
+#include <libopenstm32/memorymap.h>
+#include <libopenstm32/common.h>
/* --- NVIC Registers ------------------------------------------------------ */
/* ISER: Interrupt Set Enable Registers */
diff --git a/include/libopenstm32/rtc.h b/include/libopenstm32/rtc.h
index fbe738b..ed03acb 100644
--- a/include/libopenstm32/rtc.h
+++ b/include/libopenstm32/rtc.h
@@ -20,7 +20,8 @@
#ifndef LIBOPENSTM32_RTC_H
#define LIBOPENSTM32_RTC_H
-#include <libopenstm32.h>
+#include <libopenstm32/memorymap.h>
+#include <libopenstm32/common.h>
/* --- RTC registers ------------------------------------------------------- */
diff --git a/include/libopenstm32/spi.h b/include/libopenstm32/spi.h
index 11afa32..3090299 100644
--- a/include/libopenstm32/spi.h
+++ b/include/libopenstm32/spi.h
@@ -20,7 +20,8 @@
#ifndef LIBOPENSTM32_SPI_H
#define LIBOPENSTM32_SPI_H
-#include <libopenstm32.h>
+#include <libopenstm32/memorymap.h>
+#include <libopenstm32/common.h>
/* Registers can be accessed as 16bit or 32bit values. */
diff --git a/include/libopenstm32/usart.h b/include/libopenstm32/usart.h
index f3a9878..0cf86d1 100644
--- a/include/libopenstm32/usart.h
+++ b/include/libopenstm32/usart.h
@@ -20,7 +20,8 @@
#ifndef LIBOPENSTM32_USART_H
#define LIBOPENSTM32_USART_H
-#include <libopenstm32.h>
+#include <libopenstm32/memorymap.h>
+#include <libopenstm32/common.h>
/* --- Convenience macros -------------------------------------------------- */