From d9314c103478285c59451c99e9e02b6ef80ffb33 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 30 Jul 2016 07:05:10 -0600 Subject: [PATCH] LPC43xx ADC: board.h should be included last; Also, unreleated, update tools/README.txt --- arch/arm/src/lpc43xx/lpc43_adc.c | 7 ++++++- tools/README.txt | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/lpc43xx/lpc43_adc.c b/arch/arm/src/lpc43xx/lpc43_adc.c index 4286451f11..2a9db4297d 100644 --- a/arch/arm/src/lpc43xx/lpc43_adc.c +++ b/arch/arm/src/lpc43xx/lpc43_adc.c @@ -59,7 +59,6 @@ #include #include -#include #include #include #include @@ -80,6 +79,12 @@ #include "lpc43_pinconfig.h" +/* board.h should be included last because it depends on the previous + * inclusions and may need to modify other definitions. + */ + +#include + #if defined(CONFIG_LPC43_ADC0) /* TODO ADC1 */ /**************************************************************************** diff --git a/tools/README.txt b/tools/README.txt index 408bccad7b..595849f9ad 100644 --- a/tools/README.txt +++ b/tools/README.txt @@ -104,6 +104,16 @@ kconfig2html.c is the directory containing the root Kconfig file. Default : . + NOTE: In order to use this tool, some configuration must be in-place will + all necessary symbolic links. You can establish the configured symbolic + links with: + + make context + + or more quickly with: + + make dirlinks + mkconfigvars.sh ---------------