From 5c27c0dad46c21b75e38a2f52ad41d4b9c143486 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 25 Nov 2017 12:06:22 -0600 Subject: [PATCH] STM32F4 Discovery: Fix some errors do missing inclusion of stm32_gpio.h --- configs/stm32f4discovery/src/stm32_boot.c | 2 ++ configs/stm32f4discovery/src/stm32_buttons.c | 1 + configs/stm32f4discovery/src/stm32_extmem.c | 2 -- configs/stm32f4discovery/src/stm32_lis3dsh.c | 2 -- configs/stm32f4discovery/src/stm32_userleds.c | 1 + configs/stm32f4discovery/src/stm32_zerocross.c | 8 -------- configs/zp214xpa/README.txt | 4 ++-- 7 files changed, 6 insertions(+), 14 deletions(-) diff --git a/configs/stm32f4discovery/src/stm32_boot.c b/configs/stm32f4discovery/src/stm32_boot.c index 483f5edd13..9db063bdcd 100644 --- a/configs/stm32f4discovery/src/stm32_boot.c +++ b/configs/stm32f4discovery/src/stm32_boot.c @@ -45,6 +45,8 @@ #include #include "up_arch.h" + +#include "stm32.h" #include "stm32f4discovery.h" /************************************************************************************ diff --git a/configs/stm32f4discovery/src/stm32_buttons.c b/configs/stm32f4discovery/src/stm32_buttons.c index 2b805075e0..5a8d4d5dc2 100644 --- a/configs/stm32f4discovery/src/stm32_buttons.c +++ b/configs/stm32f4discovery/src/stm32_buttons.c @@ -46,6 +46,7 @@ #include #include +#include "stm32.h" #include "stm32f4discovery.h" #ifdef CONFIG_ARCH_BUTTONS diff --git a/configs/stm32f4discovery/src/stm32_extmem.c b/configs/stm32f4discovery/src/stm32_extmem.c index 3717317fd5..f5f531e068 100644 --- a/configs/stm32f4discovery/src/stm32_extmem.c +++ b/configs/stm32f4discovery/src/stm32_extmem.c @@ -48,8 +48,6 @@ #include "chip.h" #include "up_arch.h" -#include "stm32_fsmc.h" -#include "stm32_gpio.h" #include "stm32.h" #include "stm32f4discovery.h" diff --git a/configs/stm32f4discovery/src/stm32_lis3dsh.c b/configs/stm32f4discovery/src/stm32_lis3dsh.c index e6c6de1645..b48a5614fa 100644 --- a/configs/stm32f4discovery/src/stm32_lis3dsh.c +++ b/configs/stm32f4discovery/src/stm32_lis3dsh.c @@ -47,8 +47,6 @@ #include "stm32.h" #include "stm32f4discovery.h" -#include -#include #if defined(CONFIG_STM32F4DISCO_LIS3DSH) && defined(CONFIG_LIS3DSH) diff --git a/configs/stm32f4discovery/src/stm32_userleds.c b/configs/stm32f4discovery/src/stm32_userleds.c index 392b14f73e..d5e301f5d4 100644 --- a/configs/stm32f4discovery/src/stm32_userleds.c +++ b/configs/stm32f4discovery/src/stm32_userleds.c @@ -50,6 +50,7 @@ #include "chip.h" #include "up_arch.h" #include "up_internal.h" + #include "stm32.h" #include "stm32f4discovery.h" diff --git a/configs/stm32f4discovery/src/stm32_zerocross.c b/configs/stm32f4discovery/src/stm32_zerocross.c index aff78fba2b..d0e74c6a01 100644 --- a/configs/stm32f4discovery/src/stm32_zerocross.c +++ b/configs/stm32f4discovery/src/stm32_zerocross.c @@ -51,14 +51,6 @@ #ifdef CONFIG_SENSORS_ZEROCROSS -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - /**************************************************************************** * Private Function Prototypes ****************************************************************************/ diff --git a/configs/zp214xpa/README.txt b/configs/zp214xpa/README.txt index 8446aee6fd..99c0c18f26 100644 --- a/configs/zp214xpa/README.txt +++ b/configs/zp214xpa/README.txt @@ -343,6 +343,6 @@ Configurations: 2017-11-25: Grrr... This configuration no longer works. Some serious bit rot has set in. Now only random garbage appears on the OLED. Certainly a lot has changed since 2012, but I cannot see any change to either this - configuration, to the LCD driver or to the LPC2148 support that would - effect the operation of the LCD. + configuration, to the LCD driver, or to the LPC2148 support that would + affect the operation of the LCD.