From 1ee0f0518b10a3ab92fdcbf9688e16f5081dee0f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 14 Feb 2018 11:49:56 -0600 Subject: [PATCH] stm32f103-minimum/src/: Fix newly introduced errors and warnings. Most cause by removing illegal inclusions from board.h. --- configs/stm32f103-minimum/src/stm32_buttons.c | 1 + configs/stm32f103-minimum/src/stm32_pwm.c | 3 ++- configs/stm32f103-minimum/src/stm32_rgbled.c | 3 ++- configs/stm32f103-minimum/src/stm32f103_minimum.h | 12 +++++++----- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/configs/stm32f103-minimum/src/stm32_buttons.c b/configs/stm32f103-minimum/src/stm32_buttons.c index 154f24225e..b22347c003 100644 --- a/configs/stm32f103-minimum/src/stm32_buttons.c +++ b/configs/stm32f103-minimum/src/stm32_buttons.c @@ -46,6 +46,7 @@ #include #include +#include "stm32_gpio.h" #include "stm32f103_minimum.h" #if defined(CONFIG_ARCH_BUTTONS) diff --git a/configs/stm32f103-minimum/src/stm32_pwm.c b/configs/stm32f103-minimum/src/stm32_pwm.c index dec2597991..eac41ab675 100644 --- a/configs/stm32f103-minimum/src/stm32_pwm.c +++ b/configs/stm32f103-minimum/src/stm32_pwm.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/stm32f103-minimum/src/stm32_pwm.c * - * Copyright (C) 2013, 2015, 2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * Alan Carvalho de Assis * @@ -40,6 +40,7 @@ #include +#include #include #include diff --git a/configs/stm32f103-minimum/src/stm32_rgbled.c b/configs/stm32f103-minimum/src/stm32_rgbled.c index 21b7a0b78c..024772a20e 100644 --- a/configs/stm32f103-minimum/src/stm32_rgbled.c +++ b/configs/stm32f103-minimum/src/stm32_rgbled.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/stm32f4discovery/src/stm32_rgbled.c * - * Copyright (C) 2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2016, 2018 Gregory Nutt. All rights reserved. * Author: Alan Carvalho de Assis * * Redistribution and use in source and binary forms, with or without @@ -39,6 +39,7 @@ #include +#include #include #include diff --git a/configs/stm32f103-minimum/src/stm32f103_minimum.h b/configs/stm32f103-minimum/src/stm32f103_minimum.h index af3228c30e..8355bae9c1 100644 --- a/configs/stm32f103-minimum/src/stm32f103_minimum.h +++ b/configs/stm32f103-minimum/src/stm32f103_minimum.h @@ -1,7 +1,7 @@ /************************************************************************************ * configs/stm32f103-minimum/src/stm32f103_minimum.h * - * Copyright (C) 2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2016, 2018 Gregory Nutt. All rights reserved. * Author: Laurent Latil * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,12 @@ #include #include +#include + +/************************************************************************************ + * Pre-processor Definitions + ************************************************************************************/ + #define HAVE_AT24 1 /* AT24 Serial EEPROM */ @@ -77,10 +83,6 @@ # undef HAVE_AT24 #endif -/************************************************************************************ - * Pre-processor Definitions - ************************************************************************************/ - /* How many SPI modules does this chip support? The LM3S6918 supports 2 SPI * modules (others may support more -- in such case, the following must be * expanded).