armparams.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. /**
  14. * @file LPC214x/armparams.h
  15. * @brief ARM parameters for the LPC214x.
  16. *
  17. * @defgroup ARM_LPC214x LPC214x Specific Parameters
  18. * @ingroup ARM_SPECIFIC
  19. * @details This file contains the ARM specific parameters for the
  20. * LPC214x platform.
  21. * @{
  22. */
  23. #ifndef ARMPARAMS_H
  24. #define ARMPARAMS_H
  25. /**
  26. * @brief ARM core model.
  27. */
  28. #define ARM_CORE ARM_CORE_ARM7TDMI
  29. /**
  30. * @brief Thumb-capable.
  31. */
  32. #define ARM_SUPPORTS_THUMB 1
  33. /**
  34. * @brief Thumb2-capable.
  35. */
  36. #define ARM_SUPPORTS_THUMB2 0
  37. /**
  38. * @brief Implementation of the wait-for-interrupt state enter.
  39. */
  40. #define ARM_WFI_IMPL (PCON = 1)
  41. #if !defined(_FROM_ASM_) || defined(__DOXYGEN__)
  42. /**
  43. * @brief Address of the IRQ vector register in the interrupt controller.
  44. */
  45. #define ARM_IRQ_VECTOR_REG 0xFFFFF030U
  46. #else
  47. #define ARM_IRQ_VECTOR_REG 0xFFFFF030
  48. #endif
  49. #endif /* ARMPARAMS_H */
  50. /** @} */