Fixes for LPC1766-STK without LED support

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4256 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-01-03 16:26:00 +00:00
parent 2bc9057ed3
commit f90b79bf8b
4 changed files with 206 additions and 200 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
/**************************************************************************** /****************************************************************************
* arch/arm/src/lpc17/lpc17_idle.c * arch/arm/src/lpc17/lpc17_idle.c
* *
* Copyright (C) 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
+3 -1
View File
@@ -2,7 +2,7 @@
* configs/olimex-lpc1766stk/include/board.h * configs/olimex-lpc1766stk/include/board.h
* include/arch/board/board.h * include/arch/board/board.h
* *
* Copyright (C) 2010-2011 Gregory Nutt. All rights reserved. * Copyright (C) 2010-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -43,6 +43,8 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdbool.h>
#if defined(CONFIG_ARCH_IRQBUTTONS) && defined(CONFIG_GPIO_IRQ) #if defined(CONFIG_ARCH_IRQBUTTONS) && defined(CONFIG_GPIO_IRQ)
# include <nuttx/irq.h> # include <nuttx/irq.h>
#endif #endif
+2 -2
View File
@@ -2,8 +2,8 @@
* configs/olimex-lpc1766stk/src/up_boot.c * configs/olimex-lpc1766stk/src/up_boot.c
* arch/arm/src/board/up_boot.c * arch/arm/src/board/up_boot.c
* *
* Copyright (C) 2010 Gregory Nutt. All rights reserved. * Copyright (C) 2010, 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
+6 -2
View File
@@ -103,10 +103,14 @@ static bool g_uninitialized = true;
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Name: up_ledinit * Name: lpc17_ledinit/up_ledinit
****************************************************************************/ ****************************************************************************/
void up_ledinit(void) #ifndef CONFIG_ARCH_LEDS
void lpc17_ledinit(void) /* Name when invoked externally */
#else
void up_ledinit(void) /* Name when invoked via up_boot.c */
#endif
{ {
/* Configure all LED GPIO lines */ /* Configure all LED GPIO lines */