sama_registry.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 SAMA5D2x/sama_registry.h
  15. * @brief SAMA5D2x capabilities registry.
  16. *
  17. * @addtogroup HAL
  18. * @{
  19. */
  20. #ifndef SAMA_REGISTRY_H
  21. #define SAMA_REGISTRY_H
  22. /**
  23. * @brief Sub-family identifier.
  24. */
  25. #if !defined(SAMA5D2X) || defined(__DOXYGEN__)
  26. #define SAMA5D2X
  27. #endif
  28. /*===========================================================================*/
  29. /* Common features. */
  30. /*===========================================================================*/
  31. /*===========================================================================*/
  32. /* Platform capabilities. */
  33. /*===========================================================================*/
  34. /**
  35. * @name SAMA5D27 capabilities
  36. * @{
  37. */
  38. /*===========================================================================*/
  39. /* SAMA5D27. */
  40. /*===========================================================================*/
  41. #if defined(SAMA5D27) || defined(__DOXYGEN__)
  42. #endif /* defined(SAMA5D27) */
  43. /* PIO attributes.*/
  44. #define SAMA_HAS_PIOA TRUE
  45. #if SAMA_HAL_IS_SECURE
  46. #define PIOA_BASE 0xFC039000U
  47. #else
  48. #define PIOA_BASE 0xFC038000U
  49. #endif
  50. #define SAMA_HAS_PIOB TRUE
  51. #if SAMA_HAL_IS_SECURE
  52. #define PIOB_BASE 0xFC039040U
  53. #else
  54. #define PIOB_BASE 0xFC038040U
  55. #endif
  56. #define SAMA_HAS_PIOC TRUE
  57. #if SAMA_HAL_IS_SECURE
  58. #define PIOC_BASE 0xFC039080U
  59. #else
  60. #define PIOC_BASE 0xFC038080U
  61. #endif
  62. #define SAMA_HAS_PIOD TRUE
  63. #if SAMA_HAL_IS_SECURE
  64. #define PIOD_BASE 0xFC0390C0U
  65. #else
  66. #define PIOD_BASE 0xFC0380C0U
  67. #endif
  68. /** @} */
  69. #endif /* SAMA_REGISTRY_H */
  70. /** @} */