diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-02-27 18:49:24 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-02-27 18:49:24 -0600 |
commit | aa622de663e0f96c5d7d4e4bc1d977b4febe6786 (patch) | |
tree | 89836694aa47e1a642b4051ec73c415ed2909377 /nuttx | |
parent | f29a691c031e9d277e6153eb29ecd3dedf90e950 (diff) | |
download | px4-nuttx-aa622de663e0f96c5d7d4e4bc1d977b4febe6786.tar.gz px4-nuttx-aa622de663e0f96c5d7d4e4bc1d977b4febe6786.tar.bz2 px4-nuttx-aa622de663e0f96c5d7d4e4bc1d977b4febe6786.zip |
configs/: board function prototypes are now in include/nuttx/board.h. Remove from board header file; Add inclusion of nuttx/board.h to all files referencing board functions
Diffstat (limited to 'nuttx')
144 files changed, 421 insertions, 320 deletions
diff --git a/nuttx/configs/arduino-due/src/sam_autoleds.c b/nuttx/configs/arduino-due/src/sam_autoleds.c index e88aa059d..0d112c909 100644 --- a/nuttx/configs/arduino-due/src/sam_autoleds.c +++ b/nuttx/configs/arduino-due/src/sam_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/arduino-due/src/sam_autoleds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/arduino-due/src/sam_boot.c b/nuttx/configs/arduino-due/src/sam_boot.c index 7b308b22b..1253509dd 100644 --- a/nuttx/configs/arduino-due/src/sam_boot.c +++ b/nuttx/configs/arduino-due/src/sam_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/arduino-due/src/sam_boot.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,8 @@ #include <debug.h> +#include <nuttx/board.h> + #include "arduino-due.h" /************************************************************************************ diff --git a/nuttx/configs/avr32dev1/src/up_boot.c b/nuttx/configs/avr32dev1/src/up_boot.c index 317954213..0763ecfcf 100644 --- a/nuttx/configs/avr32dev1/src/up_boot.c +++ b/nuttx/configs/avr32dev1/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/avr32dev1/src/up_boot.c - * arch/avr/src/board/up_boot.c * - * Copyright (C) 2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -51,7 +51,7 @@ #include "avr32dev1_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/avr32dev1/src/up_leds.c b/nuttx/configs/avr32dev1/src/up_leds.c index 6106b6532..e81b8c6ef 100644 --- a/nuttx/configs/avr32dev1/src/up_leds.c +++ b/nuttx/configs/avr32dev1/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/avr32dev1/src/up_leds.c - * arch/avr/src/board/up_leds.c * - * Copyright (C) 2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -40,13 +39,15 @@ #include <nuttx/config.h> +#include <nuttx/board.h> + #include "at32uc3_internal.h" #include "avr32dev1_internal.h" #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /**************************************************************************** diff --git a/nuttx/configs/c5471evm/src/up_leds.c b/nuttx/configs/c5471evm/src/up_leds.c index dee08e415..671104212 100644 --- a/nuttx/configs/c5471evm/src/up_leds.c +++ b/nuttx/configs/c5471evm/src/up_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** - * up_leds.c + * configs/c4371evm/src/up_leds.c * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -38,7 +38,10 @@ ****************************************************************************/ #include <nuttx/config.h> + #include <stdint.h> +#include <nuttx/board.h> + #include "up_internal.h" /**************************************************************************** diff --git a/nuttx/configs/cc3200-launchpad/src/cc3200_autoleds.c b/nuttx/configs/cc3200-launchpad/src/cc3200_autoleds.c index 6243c3653..c01abac17 100644 --- a/nuttx/configs/cc3200-launchpad/src/cc3200_autoleds.c +++ b/nuttx/configs/cc3200-launchpad/src/cc3200_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/cc3200/src/cc3200_autoleds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt <gnutt@nuttx.org> * Jim Ewing <jim@droidifi.com> * @@ -39,6 +39,7 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <nuttx/board.h> #include "cc3200_launchpad.h" diff --git a/nuttx/configs/cloudctrl/src/up_autoleds.c b/nuttx/configs/cloudctrl/src/up_autoleds.c index c76c94601..3f6a83076 100644 --- a/nuttx/configs/cloudctrl/src/up_autoleds.c +++ b/nuttx/configs/cloudctrl/src/up_autoleds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/cloudctrl/src/up_autoleds.c - * arch/arm/src/board/up_autoleds.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Darcy Gong <darcy.gong@gmail.com> * @@ -45,8 +44,9 @@ #include <stdbool.h> #include <debug.h> -#include <arch/board/board.h> +#include <nuttx/board.h> #include <nuttx/power/pm.h> +#include <arch/board/board.h> #include "chip.h" #include "up_arch.h" @@ -55,7 +55,7 @@ #include "cloudctrl-internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/cloudctrl/src/up_boot.c b/nuttx/configs/cloudctrl/src/up_boot.c index c098e90e9..44b716839 100644 --- a/nuttx/configs/cloudctrl/src/up_boot.c +++ b/nuttx/configs/cloudctrl/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/cloudctrl/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Darcy Gong <darcy.gong@gmail.com> * @@ -43,13 +42,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "cloudctrl-internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ @@ -65,7 +65,7 @@ * * Description: * All STM32 architectures must provide the following entry point. This entry point - * is called early in the intitialization -- after all memory has been configured + * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * ************************************************************************************/ diff --git a/nuttx/configs/demo9s12ne64/src/up_boot.c b/nuttx/configs/demo9s12ne64/src/up_boot.c index dfdb4360f..acf2dff8f 100644 --- a/nuttx/configs/demo9s12ne64/src/up_boot.c +++ b/nuttx/configs/demo9s12ne64/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/demo9s12ne64/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,12 +41,13 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "demo9s12ne64.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/demo9s12ne64/src/up_leds.c b/nuttx/configs/demo9s12ne64/src/up_leds.c index 39733dcde..5dc019201 100644 --- a/nuttx/configs/demo9s12ne64/src/up_leds.c +++ b/nuttx/configs/demo9s12ne64/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/demo9s12ne64/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2009, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "demo9s12ne64.h" diff --git a/nuttx/configs/dk-tm4c129x/src/tm4c_autoleds.c b/nuttx/configs/dk-tm4c129x/src/tm4c_autoleds.c index cd344dbfb..15bea1deb 100644 --- a/nuttx/configs/dk-tm4c129x/src/tm4c_autoleds.c +++ b/nuttx/configs/dk-tm4c129x/src/tm4c_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/dk-tm4c129x/src/tm4c_autoleds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "tiva_gpio.h" diff --git a/nuttx/configs/ea3131/src/up_boot.c b/nuttx/configs/ea3131/src/up_boot.c index d7e85d9ae..4d23e5bb6 100644 --- a/nuttx/configs/ea3131/src/up_boot.c +++ b/nuttx/configs/ea3131/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/ea3131/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2009,2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -50,7 +50,7 @@ #include "ea3131_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/ea3131/src/up_clkinit.c b/nuttx/configs/ea3131/src/up_clkinit.c index 6bc7f0e9f..b5c63f693 100644 --- a/nuttx/configs/ea3131/src/up_clkinit.c +++ b/nuttx/configs/ea3131/src/up_clkinit.c @@ -437,8 +437,3 @@ const struct lpc31_clkinit_s g_boardclks = /**************************************************************************** * Public Functions ****************************************************************************/ - -/**************************************************************************** - * Name: board_led_initialize - ****************************************************************************/ - diff --git a/nuttx/configs/ea3131/src/up_leds.c b/nuttx/configs/ea3131/src/up_leds.c index 4a0b35d23..764951dad 100644 --- a/nuttx/configs/ea3131/src/up_leds.c +++ b/nuttx/configs/ea3131/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/ea3131/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2009-2010, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2010, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -52,7 +52,7 @@ #include "lpc31_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/ea3152/src/up_boot.c b/nuttx/configs/ea3152/src/up_boot.c index db1dc035b..4b289aec3 100644 --- a/nuttx/configs/ea3152/src/up_boot.c +++ b/nuttx/configs/ea3152/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/ea3152/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -50,7 +50,7 @@ #include "ea3152_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/ea3152/src/up_clkinit.c b/nuttx/configs/ea3152/src/up_clkinit.c index 55ec6da97..53c76dbc3 100644 --- a/nuttx/configs/ea3152/src/up_clkinit.c +++ b/nuttx/configs/ea3152/src/up_clkinit.c @@ -437,8 +437,3 @@ const struct lpc31_clkinit_s g_boardclks = /**************************************************************************** * Public Functions ****************************************************************************/ - -/**************************************************************************** - * Name: board_led_initialize - ****************************************************************************/ - diff --git a/nuttx/configs/ea3152/src/up_leds.c b/nuttx/configs/ea3152/src/up_leds.c index 1a8c9a613..2f5232437 100644 --- a/nuttx/configs/ea3152/src/up_leds.c +++ b/nuttx/configs/ea3152/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/ea3152/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/eagle100/src/up_boot.c b/nuttx/configs/eagle100/src/up_boot.c index 768814404..33caa32da 100644 --- a/nuttx/configs/eagle100/src/up_boot.c +++ b/nuttx/configs/eagle100/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/eagle100/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2010, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "eagle100_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/eagle100/src/up_leds.c b/nuttx/configs/eagle100/src/up_leds.c index aca7b1557..378a85565 100644 --- a/nuttx/configs/eagle100/src/up_leds.c +++ b/nuttx/configs/eagle100/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/eagle100/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2009-2010, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2010, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +42,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/efm32-g8xx-stk/src/efm32_autoleds.c b/nuttx/configs/efm32-g8xx-stk/src/efm32_autoleds.c index 6681e2e51..fe9ebcc59 100644 --- a/nuttx/configs/efm32-g8xx-stk/src/efm32_autoleds.c +++ b/nuttx/configs/efm32-g8xx-stk/src/efm32_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/efm32-g8xx-stk/src/efm32_autoleds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/efm32-g8xx-stk/src/efm32_userleds.c b/nuttx/configs/efm32-g8xx-stk/src/efm32_userleds.c index 4d35200f3..71e7eeeb9 100644 --- a/nuttx/configs/efm32-g8xx-stk/src/efm32_userleds.c +++ b/nuttx/configs/efm32-g8xx-stk/src/efm32_userleds.c @@ -43,8 +43,8 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> -#include <nuttx/power/pm.h> #include "chip.h" #include "up_arch.h" @@ -236,7 +236,7 @@ void efm32_led_pminitialize(void) int ret = pm_register(&g_ledscb); if (ret != OK) - { + { board_led_on(LED_ASSERTION); } } diff --git a/nuttx/configs/efm32gg-stk3700/src/efm32_autoleds.c b/nuttx/configs/efm32gg-stk3700/src/efm32_autoleds.c index 96c077c55..033b463ef 100644 --- a/nuttx/configs/efm32gg-stk3700/src/efm32_autoleds.c +++ b/nuttx/configs/efm32gg-stk3700/src/efm32_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/efm32gg-stk3700/include/efm32_autoleds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -81,6 +81,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "efm32_gpio.h" diff --git a/nuttx/configs/efm32gg-stk3700/src/efm32_boot.c b/nuttx/configs/efm32gg-stk3700/src/efm32_boot.c index 544fe3930..beada4832 100644 --- a/nuttx/configs/efm32gg-stk3700/src/efm32_boot.c +++ b/nuttx/configs/efm32gg-stk3700/src/efm32_boot.c @@ -1,7 +1,7 @@ /***************************************************************************** * configs/efm32gg-stk3700/src/efm32_boot.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -38,6 +38,7 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <nuttx/board.h> #include "efm32_gpio.h" #include "efm32_start.h" diff --git a/nuttx/configs/ekk-lm3s9b96/src/up_boot.c b/nuttx/configs/ekk-lm3s9b96/src/up_boot.c index 43c7de000..426b7efaf 100644 --- a/nuttx/configs/ekk-lm3s9b96/src/up_boot.c +++ b/nuttx/configs/ekk-lm3s9b96/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/ekk-lm3s9b96/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt <gnutt@nuttx.org> * Jose Pablo Rojas V. <jrojas@nx-engineering.com> * @@ -43,6 +42,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -50,7 +50,7 @@ #include "ekklm3s9b96_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/ekk-lm3s9b96/src/up_leds.c b/nuttx/configs/ekk-lm3s9b96/src/up_leds.c index eef5cf089..f91eabc41 100644 --- a/nuttx/configs/ekk-lm3s9b96/src/up_leds.c +++ b/nuttx/configs/ekk-lm3s9b96/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/lm3s6965-ek/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt <gnutt@nuttx.org> * Jose Pablo Rojas V. <jrojas@nx-engineering.com> * @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -53,7 +53,7 @@ #include "ekklm3s9b96_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/ez80f910200kitg/src/ez80_leds.c b/nuttx/configs/ez80f910200kitg/src/ez80_leds.c index a162d57cb..739a63a59 100644 --- a/nuttx/configs/ez80f910200kitg/src/ez80_leds.c +++ b/nuttx/configs/ez80f910200kitg/src/ez80_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/ez80f910200kitg/src/ez80_leds.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -39,7 +39,9 @@ #include <nuttx/config.h> +#include <nuttx/board.h> #include <arch/board/board.h> + #include "up_internal.h" /**************************************************************************** diff --git a/nuttx/configs/ez80f910200zco/src/ez80_leds.c b/nuttx/configs/ez80f910200zco/src/ez80_leds.c index c54e6bd74..832d177fc 100644 --- a/nuttx/configs/ez80f910200zco/src/ez80_leds.c +++ b/nuttx/configs/ez80f910200zco/src/ez80_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/ez80f910200zco/src/ez80_leds.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,7 +41,9 @@ #include <stdint.h> +#include <nuttx/board.h> #include <arch/board/board.h> + #include "ez80f910200zco.h" #include "up_internal.h" diff --git a/nuttx/configs/fire-stm32v2/src/up_autoleds.c b/nuttx/configs/fire-stm32v2/src/up_autoleds.c index 51a8e810a..270412526 100644 --- a/nuttx/configs/fire-stm32v2/src/up_autoleds.c +++ b/nuttx/configs/fire-stm32v2/src/up_autoleds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/fire-stm32v2/src/up_autoleds.c - * arch/arm/src/board/up_autoleds.c * - * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,8 +43,9 @@ #include <stdbool.h> #include <debug.h> -#include <arch/board/board.h> +#include <nuttx/board.h> #include <nuttx/power/pm.h> +#include <arch/board/board.h> #include "chip.h" #include "up_arch.h" @@ -54,7 +54,7 @@ #include "fire-internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/fire-stm32v2/src/up_boot.c b/nuttx/configs/fire-stm32v2/src/up_boot.c index 6f9d55899..503f9629b 100644 --- a/nuttx/configs/fire-stm32v2/src/up_boot.c +++ b/nuttx/configs/fire-stm32v2/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/fire-stm32v2/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "fire-internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/freedom-kl25z/src/kl_led.c b/nuttx/configs/freedom-kl25z/src/kl_led.c index c40cf9a9c..86bf31921 100644 --- a/nuttx/configs/freedom-kl25z/src/kl_led.c +++ b/nuttx/configs/freedom-kl25z/src/kl_led.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/freedom-kl25z/src/kl_led.c - * arch/arm/src/board/kl_led.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -69,6 +68,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/freedom-kl26z/src/kl_led.c b/nuttx/configs/freedom-kl26z/src/kl_led.c index 67846430a..9df780c82 100644 --- a/nuttx/configs/freedom-kl26z/src/kl_led.c +++ b/nuttx/configs/freedom-kl26z/src/kl_led.c @@ -68,6 +68,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/hymini-stm32v/src/up_boot.c b/nuttx/configs/hymini-stm32v/src/up_boot.c index 951238f06..6a4376ef4 100644 --- a/nuttx/configs/hymini-stm32v/src/up_boot.c +++ b/nuttx/configs/hymini-stm32v/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/hymini-stm32v/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Laurent Latil <laurent@latil.nom.fr> * @@ -43,13 +42,14 @@ #include <nuttx/spi/spi.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "hymini_stm32v-internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/hymini-stm32v/src/up_leds.c b/nuttx/configs/hymini-stm32v/src/up_leds.c index 437999d6b..1023a1f50 100644 --- a/nuttx/configs/hymini-stm32v/src/up_leds.c +++ b/nuttx/configs/hymini-stm32v/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/hymini-stm32v/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2009, 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Laurent Latil <laurent@latil.nom.fr> * @@ -45,6 +44,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/kwikstik-k40/src/up_boot.c b/nuttx/configs/kwikstik-k40/src/up_boot.c index bac24ab54..06f829bda 100644 --- a/nuttx/configs/kwikstik-k40/src/up_boot.c +++ b/nuttx/configs/kwikstik-k40/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/kwikstik-k40/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "kwikstik-internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/kwikstik-k40/src/up_leds.c b/nuttx/configs/kwikstik-k40/src/up_leds.c index 07531aa26..1120d07c7 100644 --- a/nuttx/configs/kwikstik-k40/src/up_leds.c +++ b/nuttx/configs/kwikstik-k40/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/kwikstik-k40/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,8 +41,10 @@ #include <debug.h> +#include <nuttx/board.h> + /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/lincoln60/src/up_boot.c b/nuttx/configs/lincoln60/src/up_boot.c index 4acae0b02..c20295815 100644 --- a/nuttx/configs/lincoln60/src/up_boot.c +++ b/nuttx/configs/lincoln60/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/lincoln60/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -50,7 +50,7 @@ #include "lincoln60_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/lincoln60/src/up_leds.c b/nuttx/configs/lincoln60/src/up_leds.c index e3b763085..d91cf407f 100644 --- a/nuttx/configs/lincoln60/src/up_leds.c +++ b/nuttx/configs/lincoln60/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/lincoln60/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/lm3s6432-s2e/src/up_boot.c b/nuttx/configs/lm3s6432-s2e/src/up_boot.c index a0e28f32a..0e8bf97c3 100644 --- a/nuttx/configs/lm3s6432-s2e/src/up_boot.c +++ b/nuttx/configs/lm3s6432-s2e/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/lm3s6432-s2e/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -51,7 +51,7 @@ #include "lm3s6432s2e_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ #if defined(CONFIG_TIVA_UART1) && defined(CONFIG_TIVA_SSI0) diff --git a/nuttx/configs/lm3s6432-s2e/src/up_leds.c b/nuttx/configs/lm3s6432-s2e/src/up_leds.c index 9cf0f995c..3ffeabaa1 100644 --- a/nuttx/configs/lm3s6432-s2e/src/up_leds.c +++ b/nuttx/configs/lm3s6432-s2e/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/lm3s6432-s2e/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2010, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +42,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -52,7 +52,7 @@ #include "lm3s6432s2e_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/lm3s6965-ek/src/up_boot.c b/nuttx/configs/lm3s6965-ek/src/up_boot.c index 175379f16..d2619b360 100644 --- a/nuttx/configs/lm3s6965-ek/src/up_boot.c +++ b/nuttx/configs/lm3s6965-ek/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/lm3s6965-ek/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" diff --git a/nuttx/configs/lm3s6965-ek/src/up_leds.c b/nuttx/configs/lm3s6965-ek/src/up_leds.c index 216e95271..5dbe59665 100644 --- a/nuttx/configs/lm3s6965-ek/src/up_leds.c +++ b/nuttx/configs/lm3s6965-ek/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/lm3s6965-ek/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2010, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +42,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -52,7 +52,7 @@ #include "lm3s6965ek_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/lm3s8962-ek/src/up_boot.c b/nuttx/configs/lm3s8962-ek/src/up_boot.c index e3e180d15..5119a82dd 100644 --- a/nuttx/configs/lm3s8962-ek/src/up_boot.c +++ b/nuttx/configs/lm3s8962-ek/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/lm3s8962-ek/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -49,7 +49,7 @@ #include "lm3s8962ek_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/lm3s8962-ek/src/up_leds.c b/nuttx/configs/lm3s8962-ek/src/up_leds.c index 47fd90994..a2945664a 100644 --- a/nuttx/configs/lm3s8962-ek/src/up_leds.c +++ b/nuttx/configs/lm3s8962-ek/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/lm3s8962-ek/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2010, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +42,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/lm4f120-launchpad/src/lm4f_autoleds.c b/nuttx/configs/lm4f120-launchpad/src/lm4f_autoleds.c index 8f08f095c..9a920684d 100644 --- a/nuttx/configs/lm4f120-launchpad/src/lm4f_autoleds.c +++ b/nuttx/configs/lm4f120-launchpad/src/lm4f_autoleds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/lm4f120-launchpad/src/lm4f_leds.c - * arch/arm/src/board/lm4f_leds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +42,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c b/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c index a3a2ef190..f0f92c2c0 100644 --- a/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c +++ b/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/lpc4330-xplorer/src/up_autoleds.c - * arch/arm/src/board/up_autoleds.c * - * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -55,7 +55,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* LED definitions **********************************************************/ /* The LPC4330-Xplorer has 2 user-controllable LEDs labeled D2 an D3 in the diff --git a/nuttx/configs/lpc4330-xplorer/src/up_boot.c b/nuttx/configs/lpc4330-xplorer/src/up_boot.c index ab3a32a5b..27410c608 100644 --- a/nuttx/configs/lpc4330-xplorer/src/up_boot.c +++ b/nuttx/configs/lpc4330-xplorer/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/lpc4330-xplorer/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" diff --git a/nuttx/configs/lpc4357-evb/src/lpc43_autoleds.c b/nuttx/configs/lpc4357-evb/src/lpc43_autoleds.c index 70d832867..75ce89034 100644 --- a/nuttx/configs/lpc4357-evb/src/lpc43_autoleds.c +++ b/nuttx/configs/lpc4357-evb/src/lpc43_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/lpc4357-evb/src/lpc43_autoleds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -54,7 +55,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* LED definitions **********************************************************/ /* The LPC4357-EVB has one user-controllable LED labelled D6 controlled by diff --git a/nuttx/configs/lpc4357-evb/src/lpc43_boot.c b/nuttx/configs/lpc4357-evb/src/lpc43_boot.c index dd7fa79c8..2bcfea597 100644 --- a/nuttx/configs/lpc4357-evb/src/lpc43_boot.c +++ b/nuttx/configs/lpc4357-evb/src/lpc43_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/lpc4357-evb/src/lpc43_boot.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -49,7 +50,7 @@ #include "lpc4357-evb.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/lpc4357-evb/src/lpc43_userleds.c b/nuttx/configs/lpc4357-evb/src/lpc43_userleds.c index 1e2816cb2..005a80cdc 100644 --- a/nuttx/configs/lpc4357-evb/src/lpc43_userleds.c +++ b/nuttx/configs/lpc4357-evb/src/lpc43_userleds.c @@ -131,14 +131,14 @@ void lpc43_ledinit(void) { /* Configure LED pin as a GPIO outputs */ - led_dumppins("board_led_initialize() Entry)"); + led_dumppins("lpc43_ledinit() Entry)"); /* Configure LED pin as a GPIO, then configure GPIO as an outputs */ lpc43_pin_config(PINCONFIG_LED); lpc43_gpio_config(GPIO_LED); - led_dumppins("board_led_initialize() Exit"); + led_dumppins("lpc43_ledinit() Exit"); } /**************************************************************************** diff --git a/nuttx/configs/lpcxpresso-lpc1768/src/up_boot.c b/nuttx/configs/lpcxpresso-lpc1768/src/up_boot.c index 2e09c6bf6..beed75f80 100644 --- a/nuttx/configs/lpcxpresso-lpc1768/src/up_boot.c +++ b/nuttx/configs/lpcxpresso-lpc1768/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/lpcxpresso-lpc1768/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -51,7 +51,7 @@ #include "lpcxpresso_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/lpcxpresso-lpc1768/src/up_leds.c b/nuttx/configs/lpcxpresso-lpc1768/src/up_leds.c index 11abf9def..dd5e9de97 100644 --- a/nuttx/configs/lpcxpresso-lpc1768/src/up_leds.c +++ b/nuttx/configs/lpcxpresso-lpc1768/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/lpcxpresso-lpc1768/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +42,8 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> + #include "up_arch.h" #include "up_internal.h" diff --git a/nuttx/configs/maple/src/up_boot.c b/nuttx/configs/maple/src/up_boot.c index 795fa5e7b..12b136cf8 100644 --- a/nuttx/configs/maple/src/up_boot.c +++ b/nuttx/configs/maple/src/up_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/maple/src/up_boot.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Librae <librae8226@gmail.com> * @@ -42,13 +42,14 @@ #include <nuttx/spi/spi.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "maple-internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/maple/src/up_leds.c b/nuttx/configs/maple/src/up_leds.c index 0ed4ffcf0..bc7426db1 100644 --- a/nuttx/configs/maple/src/up_leds.c +++ b/nuttx/configs/maple/src/up_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/maple/src/up_leds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Librae <librae8226@gmail.com> * @@ -44,6 +44,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -53,7 +54,7 @@ #include "maple-internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/mbed/src/up_boot.c b/nuttx/configs/mbed/src/up_boot.c index 2e50e3663..5866ec54c 100644 --- a/nuttx/configs/mbed/src/up_boot.c +++ b/nuttx/configs/mbed/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/mbed/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -50,7 +50,7 @@ #include "mbed_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/mbed/src/up_leds.c b/nuttx/configs/mbed/src/up_leds.c index 520ef358d..6119ec758 100644 --- a/nuttx/configs/mbed/src/up_leds.c +++ b/nuttx/configs/mbed/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/mbed/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2010, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/mcu123-lpc214x/src/up_leds.c b/nuttx/configs/mcu123-lpc214x/src/up_leds.c index d5c3e6437..40495e521 100644 --- a/nuttx/configs/mcu123-lpc214x/src/up_leds.c +++ b/nuttx/configs/mcu123-lpc214x/src/up_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/mcu123-lpc214x/src/up_leds.c * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -38,13 +38,14 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <nuttx/board.h> #include "chip.h" #include "up_arch.h" #include "up_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* P1.16-P1.23 control LEDS 1-8 */ diff --git a/nuttx/configs/mikroe-stm32f4/src/up_idle.c b/nuttx/configs/mikroe-stm32f4/src/up_idle.c index 22b5bc738..4adeff52f 100644 --- a/nuttx/configs/mikroe-stm32f4/src/up_idle.c +++ b/nuttx/configs/mikroe-stm32f4/src/up_idle.c @@ -1,6 +1,5 @@ /**************************************************************************** * configs/mikroe_stm32f4/src/up_idle.c - * arch/arm/src/board/up_idle.c * * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt <gnutt@nuttx.org> @@ -46,6 +45,7 @@ #include <debug.h> #include <nuttx/arch.h> +#include <nuttx/board.h> #include <nuttx/clock.h> #include <nuttx/power/pm.h> diff --git a/nuttx/configs/mirtoo/src/up_leds.c b/nuttx/configs/mirtoo/src/up_leds.c index c437b7b5b..d466cb352 100644 --- a/nuttx/configs/mirtoo/src/up_leds.c +++ b/nuttx/configs/mirtoo/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/mirtoo/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,16 +43,17 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "pic32mx-internal.h" #include "mirtoo-internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* LED Configuration ********************************************************/ -/* The Mirtoo module has 2 user LEDs labeled LED0 and LED1 in the schematics: +/* The Mirtoo module has 2 user LEDs labelled LED0 and LED1 in the schematics: * * --- ----- -------------------------------------------------------------- * PIN Board Notes diff --git a/nuttx/configs/moteino-mega/src/avr_leds.c b/nuttx/configs/moteino-mega/src/avr_leds.c index da1b65174..916d81aad 100644 --- a/nuttx/configs/moteino-mega/src/avr_leds.c +++ b/nuttx/configs/moteino-mega/src/avr_leds.c @@ -43,6 +43,8 @@ #include <debug.h> #include <avr/io.h> +#include <nuttx/board.h> + #include "up_arch.h" #include "up_internal.h" diff --git a/nuttx/configs/mx1ads/src/up_leds.c b/nuttx/configs/mx1ads/src/up_leds.c index dea288a06..cba71f1d9 100644 --- a/nuttx/configs/mx1ads/src/up_leds.c +++ b/nuttx/configs/mx1ads/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/mx1ads/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -39,11 +38,12 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <nuttx/board.h> #include "up_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /**************************************************************************** diff --git a/nuttx/configs/ne64badge/src/up_boot.c b/nuttx/configs/ne64badge/src/up_boot.c index 888eaf582..f5b0a0199 100644 --- a/nuttx/configs/ne64badge/src/up_boot.c +++ b/nuttx/configs/ne64badge/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/ne64badge/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,12 +41,13 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "ne64badge_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/ne64badge/src/up_leds.c b/nuttx/configs/ne64badge/src/up_leds.c index 9d2b714cc..1da92abd5 100644 --- a/nuttx/configs/ne64badge/src/up_leds.c +++ b/nuttx/configs/ne64badge/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/ne64badge/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "ne64badge_internal.h" diff --git a/nuttx/configs/ntosd-dm320/src/up_leds.c b/nuttx/configs/ntosd-dm320/src/up_leds.c index 0c47e0510..462fc0fa4 100644 --- a/nuttx/configs/ntosd-dm320/src/up_leds.c +++ b/nuttx/configs/ntosd-dm320/src/up_leds.c @@ -1,7 +1,7 @@ /************************************************************************ * confgs/ntosd-dm320/src/up_leds.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -38,6 +38,7 @@ ************************************************************************/ #include <nuttx/config.h> +#include <nuttx/board.h> #include "up_internal.h" diff --git a/nuttx/configs/nucleo-f4x1re/src/stm32_autoleds.c b/nuttx/configs/nucleo-f4x1re/src/stm32_autoleds.c index 323f6a860..3c6bf4893 100644 --- a/nuttx/configs/nucleo-f4x1re/src/stm32_autoleds.c +++ b/nuttx/configs/nucleo-f4x1re/src/stm32_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/nucleo-f4x1re/src/stm32_autoleds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/nucleo-f4x1re/src/stm32_boot.c b/nuttx/configs/nucleo-f4x1re/src/stm32_boot.c index d9962a8ee..080bc8c9f 100644 --- a/nuttx/configs/nucleo-f4x1re/src/stm32_boot.c +++ b/nuttx/configs/nucleo-f4x1re/src/stm32_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/nucleo-f4x1re/src/stm32_boot.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Librae <librae8226@gmail.com> * @@ -43,6 +43,7 @@ #include <debug.h> #include <nuttx/arch.h> +#include <nuttx/board.h> #include <nuttx/spi/spi.h> #include <arch/board/board.h> diff --git a/nuttx/configs/nucleus2g/src/up_boot.c b/nuttx/configs/nucleus2g/src/up_boot.c index ce50c8827..83c684164 100644 --- a/nuttx/configs/nucleus2g/src/up_boot.c +++ b/nuttx/configs/nucleus2g/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/nucleus2g/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2010, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -53,7 +53,7 @@ #include "nucleus2g_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/nucleus2g/src/up_leds.c b/nuttx/configs/nucleus2g/src/up_leds.c index 31840bffb..82d16d4ba 100644 --- a/nuttx/configs/nucleus2g/src/up_leds.c +++ b/nuttx/configs/nucleus2g/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/nucleus2g/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2010, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -57,7 +57,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/nutiny-nuc120/src/nuc_led.c b/nuttx/configs/nutiny-nuc120/src/nuc_led.c index c39bee5de..70c8ff238 100644 --- a/nuttx/configs/nutiny-nuc120/src/nuc_led.c +++ b/nuttx/configs/nutiny-nuc120/src/nuc_led.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/nutiny-nuc120/src/up_autoleds.c - * arch/arm/src/board/up_autoleds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -64,6 +63,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -73,7 +73,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/olimex-lpc-h3131/src/lpc31_boot.c b/nuttx/configs/olimex-lpc-h3131/src/lpc31_boot.c index 08d57a9ad..3af18b1de 100644 --- a/nuttx/configs/olimex-lpc-h3131/src/lpc31_boot.c +++ b/nuttx/configs/olimex-lpc-h3131/src/lpc31_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/olimex-lpc-h3131/src/lpc31_boot.c * - * Copyright (C) 2031 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -49,7 +50,7 @@ #include "lpc_h3131.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/olimex-lpc-h3131/src/lpc31_leds.c b/nuttx/configs/olimex-lpc-h3131/src/lpc31_leds.c index e0c7dce56..a4e6c4080 100644 --- a/nuttx/configs/olimex-lpc-h3131/src/lpc31_leds.c +++ b/nuttx/configs/olimex-lpc-h3131/src/lpc31_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/olimex-lpc-h3131/src/lpc31_leds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -53,7 +54,7 @@ #include "lpc_h3131.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/olimex-lpc1766stk/src/lpc17_boot.c b/nuttx/configs/olimex-lpc1766stk/src/lpc17_boot.c index ed5569695..204d907b1 100644 --- a/nuttx/configs/olimex-lpc1766stk/src/lpc17_boot.c +++ b/nuttx/configs/olimex-lpc1766stk/src/lpc17_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/olimex-lpc1766stk/src/lpc17_boot.c * - * Copyright (C) 2010, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -50,7 +51,7 @@ #include "lpc1766stk.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/olimex-lpc1766stk/src/lpc17_leds.c b/nuttx/configs/olimex-lpc1766stk/src/lpc17_leds.c index a11b7be1e..33bdfc8c5 100644 --- a/nuttx/configs/olimex-lpc1766stk/src/lpc17_leds.c +++ b/nuttx/configs/olimex-lpc1766stk/src/lpc17_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/olimex-lpc1766stk/src/lpc17_leds.c * - * Copyright (C) 2010-2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2010-2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -54,7 +55,7 @@ #include "lpc1766stk.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/olimex-lpc2378/src/lpc2378_leds.c b/nuttx/configs/olimex-lpc2378/src/lpc2378_leds.c index 5675910a4..7360f5e70 100644 --- a/nuttx/configs/olimex-lpc2378/src/lpc2378_leds.c +++ b/nuttx/configs/olimex-lpc2378/src/lpc2378_leds.c @@ -6,7 +6,7 @@ * * This is part of the NuttX RTOS and based on the LPC2148 port: * - * Copyright (C) 2010, 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -45,6 +45,8 @@ #include <nuttx/config.h> #include <sys/types.h> +#include <nuttx/board.h> + #include "chip.h" #include "up_arch.h" #include "up_internal.h" diff --git a/nuttx/configs/olimex-stm32-h405/src/stm32_autoleds.c b/nuttx/configs/olimex-stm32-h405/src/stm32_autoleds.c index 7a04b3960..affa2508c 100644 --- a/nuttx/configs/olimex-stm32-h405/src/stm32_autoleds.c +++ b/nuttx/configs/olimex-stm32-h405/src/stm32_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/olimex-stm32-h405/src/stm32_autoleds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,14 +42,17 @@ #include <stdint.h> #include <stdbool.h> #include <debug.h> + +#include <nuttx/board.h> #include <arch/board/board.h> + #include "stm32.h" #include "olimex-stm32-h405.h" #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/olimex-stm32-h405/src/stm32_boot.c b/nuttx/configs/olimex-stm32-h405/src/stm32_boot.c index 36bd43460..373e3d7d5 100644 --- a/nuttx/configs/olimex-stm32-h405/src/stm32_boot.c +++ b/nuttx/configs/olimex-stm32-h405/src/stm32_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/olimex-stm32-h405/src/stm32_boot.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -38,13 +38,17 @@ ************************************************************************************/ #include <nuttx/config.h> -#include <nuttx/arch.h> + #include <debug.h> + +#include <nuttx/arch.h> +#include <nuttx/board.h> #include <arch/board/board.h> + #include "olimex-stm32-h405.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/olimex-stm32-p207/src/up_autoleds.c b/nuttx/configs/olimex-stm32-p207/src/up_autoleds.c index 5b2108b6e..5c9faa67a 100644 --- a/nuttx/configs/olimex-stm32-p207/src/up_autoleds.c +++ b/nuttx/configs/olimex-stm32-p207/src/up_autoleds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/olimex-stm32-p207/src/up_autoleds.c - * arch/arm/src/board/up_autoleds.c * - * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,14 +42,17 @@ #include <stdint.h> #include <stdbool.h> #include <debug.h> + +#include <nuttx/board.h> #include <arch/board/board.h> + #include "stm32.h" #include "olimex-stm32-p207.h" #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/olimex-stm32-p207/src/up_boot.c b/nuttx/configs/olimex-stm32-p207/src/up_boot.c index ba0a04b26..13e98a48a 100644 --- a/nuttx/configs/olimex-stm32-p207/src/up_boot.c +++ b/nuttx/configs/olimex-stm32-p207/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/olimex-stm32-p207/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -39,9 +38,13 @@ ************************************************************************************/ #include <nuttx/config.h> -#include <nuttx/arch.h> + #include <debug.h> + +#include <nuttx/arch.h> +#include <nuttx/board.h> #include <arch/board/board.h> + #include "olimex-stm32-p207.h" /************************************************************************************ diff --git a/nuttx/configs/olimex-strp711/src/up_leds.c b/nuttx/configs/olimex-strp711/src/up_leds.c index a348d5270..4cdb0297d 100644 --- a/nuttx/configs/olimex-strp711/src/up_leds.c +++ b/nuttx/configs/olimex-strp711/src/up_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/olimex-strp711/src/up_leds.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -38,8 +38,10 @@ ****************************************************************************/ #include <nuttx/config.h> + #include <stdint.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -47,7 +49,7 @@ #include "up_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* There are two LEDs are connected to P1.8 & 9 */ diff --git a/nuttx/configs/open1788/src/lpc17_autoleds.c b/nuttx/configs/open1788/src/lpc17_autoleds.c index fb336e1ea..74afc78e7 100644 --- a/nuttx/configs/open1788/src/lpc17_autoleds.c +++ b/nuttx/configs/open1788/src/lpc17_autoleds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/open1788/src/lpc17_autoleds.c - * arch/arm/src/board/lpc17_autoleds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -54,7 +54,7 @@ #include "open1788.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in * any way. The following definitions are used to access individual LEDs. @@ -64,7 +64,7 @@ * LED3 -- Connected to P1[13] * LED4 -- Connected to P4[27] * - * These LEDs are connecte to ground so a high output value will illuminate them. + * These LEDs are connected to ground so a high output value will illuminate them. * * If CONFIG_ARCH_LEDs is defined, then NuttX will control the four LEDs * on the WaveShare Open1788K. The following definitions describe how NuttX diff --git a/nuttx/configs/open1788/src/lpc17_boardinitialize.c b/nuttx/configs/open1788/src/lpc17_boardinitialize.c index d016f2728..2373ee684 100644 --- a/nuttx/configs/open1788/src/lpc17_boardinitialize.c +++ b/nuttx/configs/open1788/src/lpc17_boardinitialize.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/open1788/src/lpc17_boardinitialize.c - * arch/arm/src/board/lpc17_boardinitialize.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -52,7 +52,7 @@ #include "open1788.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/pcduino-a10/src/a1x_leds.c b/nuttx/configs/pcduino-a10/src/a1x_leds.c index ae3a70264..1e213dfd9 100644 --- a/nuttx/configs/pcduino-a10/src/a1x_leds.c +++ b/nuttx/configs/pcduino-a10/src/a1x_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/pcduino-a10/src/a1x_leds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/pic32mx-starterkit/src/pic32mx_leds.c b/nuttx/configs/pic32mx-starterkit/src/pic32mx_leds.c index 9ce1640cb..dd6c3769a 100644 --- a/nuttx/configs/pic32mx-starterkit/src/pic32mx_leds.c +++ b/nuttx/configs/pic32mx-starterkit/src/pic32mx_leds.c @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/pic32mx7mmb/src/up_leds.c b/nuttx/configs/pic32mx7mmb/src/up_leds.c index 964f35387..88928d073 100644 --- a/nuttx/configs/pic32mx7mmb/src/up_leds.c +++ b/nuttx/configs/pic32mx7mmb/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/pic32mx7mmb/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,16 +43,17 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "pic32mx-internal.h" #include "pic32mx7mmb_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* LED Configuration ********************************************************/ -/* The Mikroelektronika PIC32MX7 MMB has 3 user LEDs labeled LED0-2 in the +/* The Mikroelektronika PIC32MX7 MMB has 3 user LEDs labelled LED0-2 in the * schematics: * * --- ----- -------------------------------------------------------------- diff --git a/nuttx/configs/pic32mz-starterkit/src/pic32mz_autoleds.c b/nuttx/configs/pic32mz-starterkit/src/pic32mz_autoleds.c index 69231fb1e..d6edb10c2 100644 --- a/nuttx/configs/pic32mz-starterkit/src/pic32mz_autoleds.c +++ b/nuttx/configs/pic32mz-starterkit/src/pic32mz_autoleds.c @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" diff --git a/nuttx/configs/qemu-i486/src/qemu_boot.c b/nuttx/configs/qemu-i486/src/qemu_boot.c index 4d2062956..27b05b397 100644 --- a/nuttx/configs/qemu-i486/src/qemu_boot.c +++ b/nuttx/configs/qemu-i486/src/qemu_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/qemu-i486/src/qemu_boot.c * - * Copyright (C) 2011, 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -50,7 +51,7 @@ #include "qemu_i486.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/sam3u-ek/src/up_boot.c b/nuttx/configs/sam3u-ek/src/up_boot.c index 986a315c4..ea10e247f 100644 --- a/nuttx/configs/sam3u-ek/src/up_boot.c +++ b/nuttx/configs/sam3u-ek/src/up_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/sam3u-ek/src/up_boot.c * - * Copyright (C) 2009-2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "sam3u-ek.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/sam3u-ek/src/up_leds.c b/nuttx/configs/sam3u-ek/src/up_leds.c index 6418ac4ed..d86f8640b 100644 --- a/nuttx/configs/sam3u-ek/src/up_leds.c +++ b/nuttx/configs/sam3u-ek/src/up_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/sam3u-ek/src/up_leds.c * - * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2010, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -54,7 +55,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/sam4e-ek/src/sam_boot.c b/nuttx/configs/sam4e-ek/src/sam_boot.c index 9145cf9e9..9c759b71e 100644 --- a/nuttx/configs/sam4e-ek/src/sam_boot.c +++ b/nuttx/configs/sam4e-ek/src/sam_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/sam4e-ek/src/sam_boot.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" diff --git a/nuttx/configs/sam4e-ek/src/sam_leds.c b/nuttx/configs/sam4e-ek/src/sam_leds.c index 4f9c9d2c8..b457bd828 100644 --- a/nuttx/configs/sam4e-ek/src/sam_leds.c +++ b/nuttx/configs/sam4e-ek/src/sam_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/sam4e-ek/src/sam_leds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -54,7 +55,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* The SAM4E-EK board has three, user-controllable LEDs labelled D2 (blue), * D3 (amber), and D4 (green) on the board. Usage of these LEDs is defined diff --git a/nuttx/configs/sam4l-xplained/src/sam_autoleds.c b/nuttx/configs/sam4l-xplained/src/sam_autoleds.c index 5a382ea17..e5c4facf0 100644 --- a/nuttx/configs/sam4l-xplained/src/sam_autoleds.c +++ b/nuttx/configs/sam4l-xplained/src/sam_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/sam4l-xplained/src/sam_autoleds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 201, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -55,7 +55,7 @@ * LED_PANIC The system has crashed FLASH * * Thus is LED0 is statically on, NuttX has successfully booted and is, - * apparently, running normmally. If LED0 is flashing at approximately + * apparently, running normally. If LED0 is flashing at approximately * 2Hz, then a fatal error has been detected and the system has halted. */ @@ -69,6 +69,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "sam_gpio.h" diff --git a/nuttx/configs/sam4l-xplained/src/sam_boot.c b/nuttx/configs/sam4l-xplained/src/sam_boot.c index e6975562d..6f4367f57 100644 --- a/nuttx/configs/sam4l-xplained/src/sam_boot.c +++ b/nuttx/configs/sam4l-xplained/src/sam_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/sam4l-xplained/src/sam_boot.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,8 @@ #include <debug.h> +#include <nuttx/board.h> + #include "sam4l-xplained.h" /************************************************************************************ diff --git a/nuttx/configs/sam4s-xplained-pro/src/sam_autoleds.c b/nuttx/configs/sam4s-xplained-pro/src/sam_autoleds.c index 24a490e19..a504f2ea0 100644 --- a/nuttx/configs/sam4s-xplained-pro/src/sam_autoleds.c +++ b/nuttx/configs/sam4s-xplained-pro/src/sam_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/sam4s-xplained-pro/src/sam_autoleds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014, 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt <gnutt@nuttx.org> * Bob Doiron * @@ -44,6 +44,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -53,7 +54,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* If CONFIG_ARCH_LEDs is defined, then NuttX will control the LED on * board the SAM4S Xplained Pro. The following definitions describe how NuttX diff --git a/nuttx/configs/sam4s-xplained-pro/src/sam_boot.c b/nuttx/configs/sam4s-xplained-pro/src/sam_boot.c index 5c60c76d5..607bc3557 100644 --- a/nuttx/configs/sam4s-xplained-pro/src/sam_boot.c +++ b/nuttx/configs/sam4s-xplained-pro/src/sam_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/sam4s-xplained-pro/src/sam_boot.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -40,9 +40,11 @@ #include <nuttx/config.h> #include <debug.h> -#include <nuttx/watchdog.h> +#include <nuttx/board.h> +#include <nuttx/watchdog.h> #include <arch/board/board.h> + #include "sam4s-xplained-pro.h" /************************************************************************************ diff --git a/nuttx/configs/sam4s-xplained/src/sam_autoleds.c b/nuttx/configs/sam4s-xplained/src/sam_autoleds.c index 4cf01a1a1..839df256e 100644 --- a/nuttx/configs/sam4s-xplained/src/sam_autoleds.c +++ b/nuttx/configs/sam4s-xplained/src/sam_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/sam4s-xplained/src/sam_autoleds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -52,7 +53,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* If CONFIG_ARCH_LEDs is defined, then NuttX will control the two LEDs on * board the SAM4S Xplained. The following definitions describe how NuttX diff --git a/nuttx/configs/sam4s-xplained/src/sam_boot.c b/nuttx/configs/sam4s-xplained/src/sam_boot.c index 95f3ba8e2..fc4b34d93 100644 --- a/nuttx/configs/sam4s-xplained/src/sam_boot.c +++ b/nuttx/configs/sam4s-xplained/src/sam_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/sam4s-xplained/src/sam_boot.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 201, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,8 @@ #include <debug.h> +#include <nuttx/board.h> + #include "sam4s-xplained.h" /************************************************************************************ diff --git a/nuttx/configs/sama5d3-xplained/src/sam_autoleds.c b/nuttx/configs/sama5d3-xplained/src/sam_autoleds.c index 4e5e08fa0..92323ca0e 100644 --- a/nuttx/configs/sama5d3-xplained/src/sam_autoleds.c +++ b/nuttx/configs/sama5d3-xplained/src/sam_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/sama5d3-xplained/src/sam_autoleds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -79,6 +79,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "sam_pio.h" diff --git a/nuttx/configs/sama5d3-xplained/src/sam_boot.c b/nuttx/configs/sama5d3-xplained/src/sam_boot.c index 34d0a1593..be66c51b8 100644 --- a/nuttx/configs/sama5d3-xplained/src/sam_boot.c +++ b/nuttx/configs/sama5d3-xplained/src/sam_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/sama5d3-xplained/src/sam_boot.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,8 @@ #include <debug.h> +#include <nuttx/board.h> + #include "sam_sckc.h" #include "sama5d3-xplained.h" diff --git a/nuttx/configs/sama5d3x-ek/src/sam_autoleds.c b/nuttx/configs/sama5d3x-ek/src/sam_autoleds.c index 3157511b5..cebfa4002 100644 --- a/nuttx/configs/sama5d3x-ek/src/sam_autoleds.c +++ b/nuttx/configs/sama5d3x-ek/src/sam_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/sama5d3x-ek/src/sam_autoleds.c * - * Copyright (C) 2013-2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2013-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -79,6 +79,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "sam_pio.h" diff --git a/nuttx/configs/sama5d3x-ek/src/sam_boot.c b/nuttx/configs/sama5d3x-ek/src/sam_boot.c index 42e2f9012..1189ad631 100644 --- a/nuttx/configs/sama5d3x-ek/src/sam_boot.c +++ b/nuttx/configs/sama5d3x-ek/src/sam_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/sama5d3x-ek/src/sam_boot.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,8 @@ #include <debug.h> +#include <nuttx/board.h> + #include "sam_sckc.h" #include "sama5d3x-ek.h" diff --git a/nuttx/configs/sama5d4-ek/src/sam_autoleds.c b/nuttx/configs/sama5d4-ek/src/sam_autoleds.c index be6aaa8f2..02411bd76 100644 --- a/nuttx/configs/sama5d4-ek/src/sam_autoleds.c +++ b/nuttx/configs/sama5d4-ek/src/sam_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/sama5d4-ek/src/sam_autoleds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -84,6 +84,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "sam_pio.h" diff --git a/nuttx/configs/sama5d4-ek/src/sam_boot.c b/nuttx/configs/sama5d4-ek/src/sam_boot.c index d994bd52d..95aa93ed5 100644 --- a/nuttx/configs/sama5d4-ek/src/sam_boot.c +++ b/nuttx/configs/sama5d4-ek/src/sam_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/sama5d4-ek/src/sam_boot.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,6 +41,8 @@ #include <debug.h> +#include <nuttx/board.h> + #include "sam_sckc.h" #include "sama5d4-ek.h" diff --git a/nuttx/configs/samd20-xplained/src/sam_autoleds.c b/nuttx/configs/samd20-xplained/src/sam_autoleds.c index 82451448f..62626a54b 100644 --- a/nuttx/configs/samd20-xplained/src/sam_autoleds.c +++ b/nuttx/configs/samd20-xplained/src/sam_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/samd20-xplained/src/sam_autoleds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -69,6 +69,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "sam_port.h" diff --git a/nuttx/configs/samd20-xplained/src/sam_boot.c b/nuttx/configs/samd20-xplained/src/sam_boot.c index 06f038eb7..0290cee10 100644 --- a/nuttx/configs/samd20-xplained/src/sam_boot.c +++ b/nuttx/configs/samd20-xplained/src/sam_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/samd20-xplained/src/sam_boot.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,11 +41,13 @@ #include <debug.h> +#include <nuttx/board.h> + #include "sam_config.h" #include "samd20-xplained.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/shenzhou/src/up_autoleds.c b/nuttx/configs/shenzhou/src/up_autoleds.c index 6e9ffe61d..b0093ed73 100644 --- a/nuttx/configs/shenzhou/src/up_autoleds.c +++ b/nuttx/configs/shenzhou/src/up_autoleds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/shenzhou/src/up_autoleds.c - * arch/arm/src/board/up_autoleds.c * - * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,8 +43,9 @@ #include <stdbool.h> #include <debug.h> -#include <arch/board/board.h> #include <nuttx/power/pm.h> +#include <nuttx/board.h> +#include <arch/board/board.h> #include "chip.h" #include "up_arch.h" @@ -54,7 +54,7 @@ #include "shenzhou-internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/shenzhou/src/up_boot.c b/nuttx/configs/shenzhou/src/up_boot.c index ace4978fe..0a1fa7180 100644 --- a/nuttx/configs/shenzhou/src/up_boot.c +++ b/nuttx/configs/shenzhou/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/shenzhou/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "shenzhou-internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/skp16c26/src/up_leds.c b/nuttx/configs/skp16c26/src/up_leds.c index 3f8d0e0a9..f3d4ef1b2 100644 --- a/nuttx/configs/skp16c26/src/up_leds.c +++ b/nuttx/configs/skp16c26/src/up_leds.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/scp16c26/src/up_leds.c * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -38,9 +38,12 @@ ************************************************************************************/ #include <nuttx/config.h> + #include <stdint.h> +#include <nuttx/board.h> #include <arch/board/board.h> + #include "up_arch.h" #include "up_internal.h" #include "chip.h" @@ -48,7 +51,7 @@ #ifdef CONFIG_ARCH_LEDS /************************************************************************************ - * Preprocessor Definitions + * Pre-processor Definitions ************************************************************************************/ /* The SKP62C26 has 3 LEDs control by bits 0 and 2 in port 7 and bit 0 in port 8. */ diff --git a/nuttx/configs/spark/src/up_autoleds.c b/nuttx/configs/spark/src/up_autoleds.c index dc34fa03b..91cebf611 100644 --- a/nuttx/configs/spark/src/up_autoleds.c +++ b/nuttx/configs/spark/src/up_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/spark/src/up_autoleds.c * - * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * David Sidrane <david_s5@nscdg.com> * @@ -44,6 +44,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -55,7 +56,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/spark/src/up_boot.c b/nuttx/configs/spark/src/up_boot.c index 939b8cee9..9001de1c8 100644 --- a/nuttx/configs/spark/src/up_boot.c +++ b/nuttx/configs/spark/src/up_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/spark/src/up_boot.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Librae <librae8226@gmail.com> * @@ -42,13 +42,14 @@ #include <nuttx/spi/spi.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "spark.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/stm3210e-eval/src/stm32_boot.c b/nuttx/configs/stm3210e-eval/src/stm32_boot.c index d42451cae..a51c923be 100644 --- a/nuttx/configs/stm3210e-eval/src/stm32_boot.c +++ b/nuttx/configs/stm3210e-eval/src/stm32_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/stm3210e-eval/src/stm32_boot.c * - * Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "stm3210e-eval.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/stm3210e-eval/src/stm32_idle.c b/nuttx/configs/stm3210e-eval/src/stm32_idle.c index 045b101c6..87648e4a5 100644 --- a/nuttx/configs/stm3210e-eval/src/stm32_idle.c +++ b/nuttx/configs/stm3210e-eval/src/stm32_idle.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm3210e-eval/src/stm32_idle.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt <gnutt@nuttx.org> * Diego Sanchez <dsanchez@nx-engineering.com> * @@ -48,6 +48,7 @@ #include <arch/irq.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_internal.h" diff --git a/nuttx/configs/stm3210e-eval/src/stm32_leds.c b/nuttx/configs/stm3210e-eval/src/stm32_leds.c index 53479a135..d9c781c9e 100644 --- a/nuttx/configs/stm3210e-eval/src/stm32_leds.c +++ b/nuttx/configs/stm3210e-eval/src/stm32_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm3210e_eval/src/stm32_leds.c * - * Copyright (C) 2009-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,8 +43,9 @@ #include <stdbool.h> #include <debug.h> -#include <arch/board/board.h> +#include <nuttx/board.h> #include <nuttx/power/pm.h> +#include <arch/board/board.h> #include "chip.h" #include "up_arch.h" @@ -53,7 +54,7 @@ #include "stm3210e-eval.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/stm3220g-eval/src/up_autoleds.c b/nuttx/configs/stm3220g-eval/src/up_autoleds.c index 4a97b284b..d994ed123 100644 --- a/nuttx/configs/stm3220g-eval/src/up_autoleds.c +++ b/nuttx/configs/stm3220g-eval/src/up_autoleds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/stm3220g_eval/src/up_autoleds.c - * arch/arm/src/board/up_autoleds.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -55,7 +55,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/stm3220g-eval/src/up_boot.c b/nuttx/configs/stm3220g-eval/src/up_boot.c index 17dc7cd22..7c0949c08 100644 --- a/nuttx/configs/stm3220g-eval/src/up_boot.c +++ b/nuttx/configs/stm3220g-eval/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/stm3220g-eval/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "stm3220g-internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/stm3240g-eval/src/stm32_autoleds.c b/nuttx/configs/stm3240g-eval/src/stm32_autoleds.c index 5f55e7413..8ca3c8e85 100644 --- a/nuttx/configs/stm3240g-eval/src/stm32_autoleds.c +++ b/nuttx/configs/stm3240g-eval/src/stm32_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm3240g_eval/src/stm32_autoleds.c * - * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -54,7 +55,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/stm32_tiny/src/up_boot.c b/nuttx/configs/stm32_tiny/src/up_boot.c index f9a274b1b..bb05dae15 100644 --- a/nuttx/configs/stm32_tiny/src/up_boot.c +++ b/nuttx/configs/stm32_tiny/src/up_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/stm32_tiny/src/up_boot.c * - * Copyright (C) 2009, 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Laurent Latil <laurent@latil.nom.fr> * @@ -42,13 +42,14 @@ #include <nuttx/spi/spi.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "stm32_tiny-internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/stm32_tiny/src/up_leds.c b/nuttx/configs/stm32_tiny/src/up_leds.c index e476fabc8..4887f66f8 100644 --- a/nuttx/configs/stm32_tiny/src/up_leds.c +++ b/nuttx/configs/stm32_tiny/src/up_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm32_tiny/src/up_leds.c * - * Copyright (C) 2009, 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Laurent Latil <laurent@latil.nom.fr> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -52,7 +53,7 @@ #include "stm32_tiny-internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/stm32f3discovery/src/up_autoleds.c b/nuttx/configs/stm32f3discovery/src/up_autoleds.c index cf6c90faf..e1fc1fa3e 100644 --- a/nuttx/configs/stm32f3discovery/src/up_autoleds.c +++ b/nuttx/configs/stm32f3discovery/src/up_autoleds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/stm32f3discovery/src/up_autoleds.c - * arch/arm/src/board/up_autoleds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -53,7 +53,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/stm32f3discovery/src/up_boot.c b/nuttx/configs/stm32f3discovery/src/up_boot.c index b914676f8..d5508038f 100644 --- a/nuttx/configs/stm32f3discovery/src/up_boot.c +++ b/nuttx/configs/stm32f3discovery/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/stm32f3discovery/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "stm32f3discovery-internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/stm32f429i-disco/src/stm32_autoleds.c b/nuttx/configs/stm32f429i-disco/src/stm32_autoleds.c index 7ae1edd37..5ec6abf8a 100644 --- a/nuttx/configs/stm32f429i-disco/src/stm32_autoleds.c +++ b/nuttx/configs/stm32f429i-disco/src/stm32_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm32f429i-disco/src/stm32_autoleds.c * - * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -54,7 +55,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/stm32f429i-disco/src/stm32_boot.c b/nuttx/configs/stm32f429i-disco/src/stm32_boot.c index fb17f1ca7..3615d167d 100644 --- a/nuttx/configs/stm32f429i-disco/src/stm32_boot.c +++ b/nuttx/configs/stm32f429i-disco/src/stm32_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/stm32f429i-disco/src/stm32_boot.c * - * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "stm32f429i-disco.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/stm32f429i-disco/src/stm32_idle.c b/nuttx/configs/stm32f429i-disco/src/stm32_idle.c index 24e325535..b7bfd5cf0 100644 --- a/nuttx/configs/stm32f429i-disco/src/stm32_idle.c +++ b/nuttx/configs/stm32f429i-disco/src/stm32_idle.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm32f429i-disco/src/stm32_idle.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt <gnutt@nuttx.org> * Diego Sanchez <dsanchez@nx-engineering.com> * @@ -45,6 +45,7 @@ #include <debug.h> #include <nuttx/arch.h> +#include <nuttx/board.h> #include <nuttx/clock.h> #include <nuttx/power/pm.h> diff --git a/nuttx/configs/stm32f4discovery/src/stm32_autoleds.c b/nuttx/configs/stm32f4discovery/src/stm32_autoleds.c index 0327625bc..3a21afb0f 100644 --- a/nuttx/configs/stm32f4discovery/src/stm32_autoleds.c +++ b/nuttx/configs/stm32f4discovery/src/stm32_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm32f4discovery/src/stm32_autoleds.c * - * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -54,7 +55,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/stm32f4discovery/src/stm32_boot.c b/nuttx/configs/stm32f4discovery/src/stm32_boot.c index 413c580cd..ffebf8a1d 100644 --- a/nuttx/configs/stm32f4discovery/src/stm32_boot.c +++ b/nuttx/configs/stm32f4discovery/src/stm32_boot.c @@ -1,7 +1,7 @@ /************************************************************************************ * configs/stm32f4discovery/src/stm32_boot.c * - * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -41,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "stm32f4discovery.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/stm32f4discovery/src/stm32_idle.c b/nuttx/configs/stm32f4discovery/src/stm32_idle.c index 46dc3b766..40af29c5e 100644 --- a/nuttx/configs/stm32f4discovery/src/stm32_idle.c +++ b/nuttx/configs/stm32f4discovery/src/stm32_idle.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm32f4discovery/src/stm32_idle.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt <gnutt@nuttx.org> * Diego Sanchez <dsanchez@nx-engineering.com> * @@ -45,6 +45,7 @@ #include <debug.h> #include <nuttx/arch.h> +#include <nuttx/board.h> #include <nuttx/clock.h> #include <nuttx/power/pm.h> diff --git a/nuttx/configs/stm32f4discovery/src/stm32_userleds.c b/nuttx/configs/stm32f4discovery/src/stm32_userleds.c index b5c2e9c27..7befb0a60 100644 --- a/nuttx/configs/stm32f4discovery/src/stm32_userleds.c +++ b/nuttx/configs/stm32f4discovery/src/stm32_userleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm32f4discovery/src/stm32_userleds.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,8 +43,9 @@ #include <stdbool.h> #include <debug.h> -#include <arch/board/board.h> +#include <nuttx/board.h> #include <nuttx/power/pm.h> +#include <arch/board/board.h> #include "chip.h" #include "up_arch.h" @@ -236,7 +237,7 @@ void stm32_led_pminitialize(void) int ret = pm_register(&g_ledscb); if (ret != OK) - { + { board_led_on(LED_ASSERTION); } } diff --git a/nuttx/configs/stm32ldiscovery/src/stm32_autoleds.c b/nuttx/configs/stm32ldiscovery/src/stm32_autoleds.c index fa5b09402..179f24909 100644 --- a/nuttx/configs/stm32ldiscovery/src/stm32_autoleds.c +++ b/nuttx/configs/stm32ldiscovery/src/stm32_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm32ldiscovery/src/stm32_autoleds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -52,7 +53,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* If CONFIG_ARCH_LEDs is defined, then NuttX will control the 2 LEDs on * board the STM32L-Discovery. The following definitions describe how NuttX diff --git a/nuttx/configs/stm32ldiscovery/src/stm32_boot.c b/nuttx/configs/stm32ldiscovery/src/stm32_boot.c index d006342a4..064d9ca21 100644 --- a/nuttx/configs/stm32ldiscovery/src/stm32_boot.c +++ b/nuttx/configs/stm32ldiscovery/src/stm32_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/stm32ldiscovery/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "stm32ldiscovery.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/stm32vldiscovery/src/stm32_leds.c b/nuttx/configs/stm32vldiscovery/src/stm32_leds.c index a45a1ef0b..1c6c37733 100644 --- a/nuttx/configs/stm32vldiscovery/src/stm32_leds.c +++ b/nuttx/configs/stm32vldiscovery/src/stm32_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm32vldiscovery/src/stm32_leds.c * - * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Freddie Chopin <freddie_chopin@op.pl> * @@ -44,8 +44,9 @@ #include <stdbool.h> #include <debug.h> -#include <arch/board/board.h> +#include <nuttx/board.h> #include <nuttx/power/pm.h> +#include <arch/board/board.h> #include "chip.h" #include "up_arch.h" diff --git a/nuttx/configs/sure-pic32mx/src/pic32mx_autoleds.c b/nuttx/configs/sure-pic32mx/src/pic32mx_autoleds.c index e21d9bce6..4ddedeea2 100644 --- a/nuttx/configs/sure-pic32mx/src/pic32mx_autoleds.c +++ b/nuttx/configs/sure-pic32mx/src/pic32mx_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/sure-pic32mx/src/pic32mx_leds.c * - * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -56,7 +57,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* LED Configuration ********************************************************/ /* The Sure PIC32MX board has five LEDs. One (D4, lablel "Power") is not diff --git a/nuttx/configs/teensy/src/up_leds.c b/nuttx/configs/teensy/src/up_leds.c index 50e84471a..c81389395 100644 --- a/nuttx/configs/teensy/src/up_leds.c +++ b/nuttx/configs/teensy/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/teensy/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,8 @@ #include <debug.h> #include <avr/io.h> +#include <nuttx/board.h> + #include "up_arch.h" #include "up_internal.h" @@ -53,7 +54,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/tm4c123g-launchpad/src/tm4c_autoleds.c b/nuttx/configs/tm4c123g-launchpad/src/tm4c_autoleds.c index fa8d3d826..9655e5077 100644 --- a/nuttx/configs/tm4c123g-launchpad/src/tm4c_autoleds.c +++ b/nuttx/configs/tm4c123g-launchpad/src/tm4c_autoleds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/tm4c123g-launchpad/src/tm4c_leds.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,6 +42,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" diff --git a/nuttx/configs/tm4c1294-launchpad/src/tm4c_autoleds.c b/nuttx/configs/tm4c1294-launchpad/src/tm4c_autoleds.c index bbba0ed79..6b15afaab 100644 --- a/nuttx/configs/tm4c1294-launchpad/src/tm4c_autoleds.c +++ b/nuttx/configs/tm4c1294-launchpad/src/tm4c_autoleds.c @@ -41,6 +41,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "tiva_gpio.h" diff --git a/nuttx/configs/twr-k60n512/src/up_boot.c b/nuttx/configs/twr-k60n512/src/up_boot.c index ee6d4fa0d..64f83cfc4 100644 --- a/nuttx/configs/twr-k60n512/src/up_boot.c +++ b/nuttx/configs/twr-k60n512/src/up_boot.c @@ -1,8 +1,7 @@ /************************************************************************************ * configs/twr-k60n512/src/up_boot.c - * arch/arm/src/board/up_boot.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,13 +41,14 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" #include "twrk60-internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/twr-k60n512/src/up_leds.c b/nuttx/configs/twr-k60n512/src/up_leds.c index ba6a18302..8abbd190e 100644 --- a/nuttx/configs/twr-k60n512/src/up_leds.c +++ b/nuttx/configs/twr-k60n512/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/twr-k60n512/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -42,11 +41,13 @@ #include <debug.h> +#include <nuttx/board.h> + #include "kinetis_internal.h" #include "twrk60-internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* The TWR-K60N512 has four LEDs: * diff --git a/nuttx/configs/ubw32/src/up_leds.c b/nuttx/configs/ubw32/src/up_leds.c index bf17a3f1f..cbaca4a7c 100644 --- a/nuttx/configs/ubw32/src/up_leds.c +++ b/nuttx/configs/ubw32/src/up_leds.c @@ -1,8 +1,7 @@ /**************************************************************************** * configs/ubw32/src/up_leds.c - * arch/arm/src/board/up_leds.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -44,6 +43,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "chip.h" @@ -54,7 +54,7 @@ #include "ubw32-internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* LED Configuration ********************************************************/ /* ----- ----- ------------------------------------------------------------- diff --git a/nuttx/configs/us7032evb1/src/up_leds.c b/nuttx/configs/us7032evb1/src/up_leds.c index 6d48909a6..cfdda3488 100644 --- a/nuttx/configs/us7032evb1/src/up_leds.c +++ b/nuttx/configs/us7032evb1/src/up_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/us7032evb1/src/up_leds.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -38,14 +38,17 @@ ****************************************************************************/ #include <nuttx/config.h> + #include <stdint.h> +#include <nuttx/board.h> + #include "chip.h" #include "up_arch.h" #include "up_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* The SH1_LPEVB only a single LED controlled by either port A, pin 15, or diff --git a/nuttx/configs/viewtool-stm32f107/src/stm32_leds.c b/nuttx/configs/viewtool-stm32f107/src/stm32_leds.c index 1effb2efa..d2ba290fa 100644 --- a/nuttx/configs/viewtool-stm32f107/src/stm32_leds.c +++ b/nuttx/configs/viewtool-stm32f107/src/stm32_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/viewtool-stm32f107/src/stm32_leds.c * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -43,13 +43,14 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "stm32_gpio.h" #include "viewtool_stm32f107.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/vsn/src/boot.c b/nuttx/configs/vsn/src/boot.c index e9ce24fbe..bb75b307b 100644 --- a/nuttx/configs/vsn/src/boot.c +++ b/nuttx/configs/vsn/src/boot.c @@ -2,7 +2,7 @@ * configs/vsn/src/boot.c * arch/arm/src/board/boot.c * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved. * Copyright (c) 2011 Uros Platise. All rights reserved. * * Authors: Gregory Nutt <gnutt@nuttx.org> @@ -37,14 +37,13 @@ * ************************************************************************************/ -/** \file - * \author Gregory Nutt, Uros Platise - * \brief VSN Button - */ +#include <nuttx/config.h> #include <debug.h> -#include "vsn.h" +#include <nuttx/board.h> + +#include "vsn.h" /************************************************************************************ * Public Functions @@ -53,7 +52,7 @@ /** Initialize Board * * All STM32 architectures must provide the following entry point. This entry point - * is called early in the intitialization -- after all memory has been configured + * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * **/ diff --git a/nuttx/configs/vsn/src/leds.c b/nuttx/configs/vsn/src/leds.c index 77a5fd7ea..3875e0f3c 100644 --- a/nuttx/configs/vsn/src/leds.c +++ b/nuttx/configs/vsn/src/leds.c @@ -35,12 +35,9 @@ * ****************************************************************************/ -/** \file - * \author Uros Platise - * \brief VSN LED - */ - #include <nuttx/config.h> + +#include <nuttx/board.h> #include <arch/board/board.h> #ifdef CONFIG_ARCH_LEDS @@ -54,7 +51,7 @@ #include "vsn.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG diff --git a/nuttx/configs/z16f2800100zcog/src/z16f_leds.c b/nuttx/configs/z16f2800100zcog/src/z16f_leds.c index e08d33ad7..7dae55d88 100644 --- a/nuttx/configs/z16f2800100zcog/src/z16f_leds.c +++ b/nuttx/configs/z16f2800100zcog/src/z16f_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/z16f2800100zcog/z16f_leds.c * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -47,11 +47,13 @@ #include <nuttx/config.h> +#include <nuttx/board.h> #include <arch/board/board.h> + #include "up_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /**************************************************************************** diff --git a/nuttx/configs/z8encore000zco/src/z8_leds.c b/nuttx/configs/z8encore000zco/src/z8_leds.c index 0efc01feb..27a901e29 100644 --- a/nuttx/configs/z8encore000zco/src/z8_leds.c +++ b/nuttx/configs/z8encore000zco/src/z8_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/z8encore000zco/src/z8_leds.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -46,12 +46,16 @@ ****************************************************************************/ #include <nuttx/config.h> + #include <stdint.h> + +#include <nuttx/board.h> #include <arch/board/board.h> + #include "up_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* Port G: Anode Bit Assignments (1 enables) */ diff --git a/nuttx/configs/z8f64200100kit/src/z8_leds.c b/nuttx/configs/z8f64200100kit/src/z8_leds.c index 1e54b1b21..5e7a93951 100644 --- a/nuttx/configs/z8f64200100kit/src/z8_leds.c +++ b/nuttx/configs/z8f64200100kit/src/z8_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/z8f64200100kit/src/z8_leds.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -39,11 +39,13 @@ #include <nuttx/config.h> +#include <nuttx/board.h> #include <arch/board/board.h> + #include "up_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /**************************************************************************** diff --git a/nuttx/configs/zkit-arm-1769/src/up_boot.c b/nuttx/configs/zkit-arm-1769/src/up_boot.c index 7e47ac398..9251aec24 100644 --- a/nuttx/configs/zkit-arm-1769/src/up_boot.c +++ b/nuttx/configs/zkit-arm-1769/src/up_boot.c @@ -1,6 +1,5 @@ /************************************************************************************ * configs/zkit-arm-1769/src/up_boot.c - * arch/arm/src/board/up_boot.c * * Copyright (C) 2013 Zilogic Systems. All rights reserved. * Author: BabuSubashChandar <code@zilogic.com> @@ -47,6 +46,7 @@ #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -55,7 +55,7 @@ #include "zkitarm_internal.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ diff --git a/nuttx/configs/zkit-arm-1769/src/up_leds.c b/nuttx/configs/zkit-arm-1769/src/up_leds.c index 41bf0caca..b10d0c559 100644 --- a/nuttx/configs/zkit-arm-1769/src/up_leds.c +++ b/nuttx/configs/zkit-arm-1769/src/up_leds.c @@ -1,6 +1,5 @@ /**************************************************************************** * configs/zkit-arm-1769/src/up_leds.c - * arch/arm/src/board/up_leds.c * * Copyright (C) 2013 Zilogic Systems. All rights reserved. * Author: BabuSubashChandar <code@zilogic.com> @@ -48,6 +47,7 @@ #include <stdbool.h> #include <debug.h> +#include <nuttx/board.h> #include <arch/board/board.h> #include "up_arch.h" @@ -59,7 +59,7 @@ #ifdef CONFIG_ARCH_LEDS /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG |