mbed.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #ifndef _BOARD_MBED_LPC1768_H_
  2. #define _BOARD_MBED_LPC1768_H_
  3. /*
  4. * Copyright (C) 2012 by Ole Reinhardt (ole.reinhardt@embedded-it.de)
  5. *
  6. * All rights reserved.
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions
  10. * are met:
  11. *
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. * 3. Neither the name of the copyright holders nor the names of
  18. * contributors may be used to endorse or promote products derived
  19. * from this software without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  24. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  25. * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  26. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  27. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  28. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  29. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  30. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  31. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32. * SUCH DAMAGE.
  33. *
  34. * For additional information see http://www.ethernut.de/
  35. */
  36. /*
  37. * \file arch/cm3/board/ksk_lpc1788_sk.h
  38. * \brief IAR KSK LPC1788 SK evaluation board specific settings.
  39. *
  40. * \verbatim
  41. * $Id$
  42. * \endverbatim
  43. */
  44. /* LED 1 */
  45. #ifndef LED1_PORT
  46. #define LED1_PORT NUTGPIO_PORT1
  47. #endif
  48. #ifndef LED1_PIN
  49. #define LED1_PIN 18
  50. #endif
  51. /* LED 2 */
  52. #ifndef LED2_PORT
  53. #define LED2_PORT NUTGPIO_PORT1
  54. #endif
  55. #ifndef LED2_PIN
  56. #define LED2_PIN 20
  57. #endif
  58. /* LED 3 */
  59. #ifndef LED3_PORT
  60. #define LED3_PORT NUTGPIO_PORT1
  61. #endif
  62. #ifndef LED3_PIN
  63. #define LED3_PIN 21
  64. #endif
  65. /* LED 4 */
  66. #ifndef LED4_PORT
  67. #define LED4_PORT NUTGPIO_PORT1
  68. #endif
  69. #ifndef LED4_PIN
  70. #define LED4_PIN 23
  71. #endif
  72. /* define RTC */
  73. #ifndef RTC_CHIP
  74. #include <dev/lpc17xx_rtc.h>
  75. #define RTC_CHIP rtcLpc17xx
  76. #endif
  77. /* USARTs */
  78. #if !defined(DEV_UART)
  79. #include <dev/usart_lpc17xx.h>
  80. #define DEV_UART DEV_UART0
  81. #define DEV_UART_NAME DEV_UART0_NAME
  82. #endif
  83. #ifndef DEV_DEBUG
  84. #define DEV_DEBUG devDebug0
  85. #endif
  86. #ifndef DEV_DEBUG_NAME
  87. #define DEV_DEBUG_NAME "uart0"
  88. #endif
  89. /* Ethernet interface */
  90. #include <dev/lpc17xx_emac.h>
  91. #ifndef DEV_ETHER_NAME
  92. #define DEV_ETHER_NAME "eth0"
  93. #endif
  94. #endif /* _BOARD_MBED_LPC1768_H_ */