From d84c4030b2c90cb2c2fe0a50cfeb1e34cdf48560 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Thu, 4 Mar 2010 19:16:24 +0100 Subject: Cleaned up header inclusion. Now all examples are including only the modules they really need. Also each header file of the library is including only the necessary headers making it possible to use these modules in parallel with other implementations that may collide with the definitions in other modules. --- include/libopenstm32/adc.h | 3 ++- include/libopenstm32/flash.h | 3 ++- include/libopenstm32/i2c.h | 3 ++- include/libopenstm32/nvic.h | 3 ++- include/libopenstm32/rtc.h | 3 ++- include/libopenstm32/spi.h | 3 ++- include/libopenstm32/usart.h | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) (limited to 'include/libopenstm32') 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 +#include +#include /* --- 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 +#include +#include /* --- 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 +#include +#include /* --- 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 +#include +#include /* --- 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 +#include +#include /* --- 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 +#include +#include /* 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 +#include +#include /* --- Convenience macros -------------------------------------------------- */ -- cgit v1.2.3