boards/arm/stm32f7: Remove inclusion of STM32 F7 header files from all board.h header files.

This commit is contained in:
Gregory Nutt 2019-09-29 09:31:47 -06:00
parent 93452d70ef
commit cbf6ffe4e7
6 changed files with 15 additions and 23 deletions

View File

@ -1,11 +1,11 @@
/**************************************************************************** /****************************************************************************
* boards/arm/stm32f7/nucleo-144/include/board.h * boards/arm/stm32f7/nucleo-144/include/board.h
* *
* Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Copyright (C) 2016-2017, 2019 Gregory Nutt. All rights reserved.
* Authors: Gregory Nutt <gnutt@nuttx.org> * Authors: Gregory Nutt <gnutt@nuttx.org>
* Mark Olsson <post@markolsson.se> * Mark Olsson <post@markolsson.se>
* David Sidrane <david_s5@nscdg.com> * David Sidrane <david_s5@nscdg.com>
* Bob Feretich <bob.feretich@rafresearch.com> * Bob Feretich <bob.feretich@rafresearch.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
@ -49,12 +49,7 @@
# include <stdint.h> # include <stdint.h>
#endif #endif
#ifdef __KERNEL__ /* Do not include STM32 F7 header files here */
#include "stm32_rcc.h"
#ifdef CONFIG_STM32F7_SDMMC1
# include "stm32_sdmmc.h"
#endif
#endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions

View File

@ -1,9 +1,9 @@
/**************************************************************************** /****************************************************************************
* boards/arm/stm32f7/stm32f746-ws/include/board.h * boards/arm/stm32f7/stm32f746-ws/include/board.h
* *
* Copyright (C) 2016 Gregory Nutt. All rights reserved. * Copyright (C) 2016, 2019 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
* Author: Mark Olsson <post@markolsson.se> * Mark Olsson <post@markolsson.se>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
@ -47,12 +47,7 @@
# include <stdint.h> # include <stdint.h>
#endif #endif
#ifdef __KERNEL__ /* Do not include STM32 F7 header files here */
#include "stm32_rcc.h"
#ifdef CONFIG_STM32F7_SDMMC1
# include "stm32_sdmmc.h"
#endif
#endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions

View File

@ -46,6 +46,8 @@
# include <stdint.h> # include <stdint.h>
#endif #endif
/* No not include STM32 F7 header files here. */
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/

View File

@ -139,5 +139,6 @@ int stm32_bringup(void)
} }
#endif #endif
UNUSED(ret); /* May not be used */
return OK; return OK;
} }

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* boards/arm/stm32f7/stm32f769i-disco/include/board.h * boards/arm/stm32f7/stm32f769i-disco/include/board.h
* *
* Copyright (C) 2015 Gregory Nutt. All rights reserved. * Copyright (C) 2015, 2019 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -46,10 +46,7 @@
# include <stdint.h> # include <stdint.h>
#endif #endif
#include "stm32_rcc.h" /* Do not include STM32F7 header files here */
#if defined(CONFIG_STM32F7_SDMMC1) || defined(CONFIG_STM32F7_SDMMC2)
# include "stm32_sdmmc.h"
#endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions

View File

@ -48,6 +48,8 @@
# include <stdint.h> # include <stdint.h>
#endif #endif
/* Do not include STM32 H7 header files here */
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/