lpc2xxx.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /****************************************************************************
  2. * This file is part of the Ethernut port for the LPC2XXX
  3. *
  4. * Copyright (c) 2005 by Michael Fischer. All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. *
  10. * 1. Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * 2. Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the distribution.
  15. * 3. Neither the name of the author nor the names of its contributors may
  16. * be used to endorse or promote products derived from this software
  17. * without specific prior written permission.
  18. *
  19. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  22. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
  23. * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  24. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  25. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  26. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  27. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  28. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  29. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. * SUCH DAMAGE.
  31. *
  32. ****************************************************************************
  33. *
  34. * History:
  35. *
  36. * 24.09.05 mifi First Version
  37. * The CrossWorks for ARM toolchain will be used.
  38. ****************************************************************************/
  39. #ifndef __LPC2XXX_H__
  40. #define __LPC2XXX_H__
  41. /*
  42. * Include the header file for the lpc22xx, from CrossWorks
  43. */
  44. #include <targets/lpc22xx.h>
  45. /*
  46. * For the Debug macro we must include cross_studio_io.h
  47. */
  48. #define Debug debug_printf
  49. #define VIC_WDT 0
  50. #define VIC_TIMER0 4
  51. #define VIC_TIMER1 5
  52. #define VIC_UART0 6
  53. #define VIC_UART1 7
  54. #define VIC_PWM0 8
  55. #define VIC_I2C 9
  56. #define VIC_SPI0 10
  57. #define VIC_SPI1 11
  58. #define VIC_PLL 12
  59. #define VIC_RTC 13
  60. #define VIC_EINT0 14
  61. #define VIC_EINT1 15
  62. #define VIC_EINT2 16
  63. #define VIC_EINT3 17
  64. #define IRQ_ENTRY()
  65. #define IRQ_EXIT()
  66. /*!
  67. * \brief Case insensitive string comparisions.
  68. *
  69. * Not supported by CrossWorks and temporarly redirected to
  70. * the case sensitive routines.
  71. *
  72. */
  73. #define strcasecmp(s1, s2) strcmp(s1, s2)
  74. #define strncasecmp(s1, s2, n) strncmp(s1, s2, n)
  75. #endif /* __LPC2XXX_H__ */
  76. /*** EOF ***/