diff --git a/include/libopenstm32.h b/include/libopenstm32.h index ee8da3d4..dfe3bd6e 100644 --- a/include/libopenstm32.h +++ b/include/libopenstm32.h @@ -20,9 +20,9 @@ #ifndef LIBOPENSTM32_LIBOPENSTM32_H #define LIBOPENSTM32_LIBOPENSTM32_H -#include "libopenstm32/common.h" -#include "libopenstm32/memorymap.h" -#include "libopenstm32/rcc.h" -#include "libopenstm32/gpio.h" +#include +#include +#include +#include #endif diff --git a/include/libopenstm32/common.h b/include/libopenstm32/common.h index ac7c5e6e..aa57cf19 100644 --- a/include/libopenstm32/common.h +++ b/include/libopenstm32/common.h @@ -20,7 +20,7 @@ #ifndef LIBOPENSTM32_COMMON_H #define LIBOPENSTM32_COMMON_H -#include "libopenstm32.h" +#include /* Type definitions */ typedef signed char s8; diff --git a/include/libopenstm32/gpio.h b/include/libopenstm32/gpio.h index f808c93b..f2e96679 100644 --- a/include/libopenstm32/gpio.h +++ b/include/libopenstm32/gpio.h @@ -20,7 +20,7 @@ #ifndef LIBOPENSTM32_GPIO_H #define LIBOPENSTM32_GPIO_H -#include "libopenstm32.h" +#include /* GPIO port base addresses (for convenience) */ #define GPIOA GPIO_PORT_A_BASE diff --git a/include/libopenstm32/rcc.h b/include/libopenstm32/rcc.h index 5674824e..35d52aa1 100644 --- a/include/libopenstm32/rcc.h +++ b/include/libopenstm32/rcc.h @@ -21,7 +21,7 @@ #ifndef LIBOPENSTM32_RCC_H #define LIBOPENSTM32_RCC_H -#include "libopenstm32.h" +#include /* RCC registers */ /* Note: Registers marked (**) only exist in "connectivity line" STM32s. */ diff --git a/lib/gpio.c b/lib/gpio.c index 2ade8424..be38aa36 100644 --- a/lib/gpio.c +++ b/lib/gpio.c @@ -34,7 +34,7 @@ * - GPIO remapping support */ -#include "libopenstm32.h" +#include void gpio_set_mode(u32 gpioport, u8 mode, u8 cnf, u16 gpios) { diff --git a/lib/rcc.c b/lib/rcc.c index 43e6887e..336a0bc9 100644 --- a/lib/rcc.c +++ b/lib/rcc.c @@ -18,7 +18,7 @@ * along with this program. If not, see . */ -#include "libopenstm32.h" +#include void rcc_osc_ready_int_clear(osc_t osc) {