board.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. #ifndef _BOARD_H_
  14. #define _BOARD_H_
  15. /*
  16. * Setup for Embedded Artists LPCXpresso LPC11C24
  17. * board.
  18. */
  19. /*
  20. * Board identifiers.
  21. */
  22. #define BOARD_EA_BB_LPC11C24
  23. #define BOARD_NAME "Embedded Artists LPCXpresso LPC11C24"
  24. /*
  25. * Board frequencies.
  26. */
  27. #define SYSOSCCLK 12000000
  28. /*
  29. * SCK0 connection on this board.
  30. */
  31. #define LPC11xx_SPI_SCK0_SELECTOR SCK0_IS_PIO2_11
  32. /*
  33. * GPIO 0 initial setup.
  34. */
  35. #define VAL_GPIO0DIR PAL_PORT_BIT(GPIO0_LED)
  36. #define VAL_GPIO0DATA 0x00000000
  37. /*
  38. * GPIO 1 initial setup.
  39. */
  40. #define VAL_GPIO1DIR 0x00000000
  41. #define VAL_GPIO1DATA 0x00000000
  42. /*
  43. * GPIO 2 initial setup.
  44. */
  45. #define VAL_GPIO2DIR 0x00000000
  46. #define VAL_GPIO2DATA 0x00000000
  47. /*
  48. * GPIO 3 initial setup.
  49. */
  50. #define VAL_GPIO3DIR 0x00000000
  51. #define VAL_GPIO3DATA 0x00000000
  52. /*
  53. * Pin definitions.
  54. */
  55. #define GPIO0_SW_ISP 1
  56. #define GPIO0_LED 7
  57. #if !defined(_FROM_ASM_)
  58. #ifdef __cplusplus
  59. extern "C" {
  60. #endif
  61. void boardInit(void);
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif /* _FROM_ASM_ */
  66. #endif /* _BOARD_H_ */