port.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for PORT
  5. *
  6. * Copyright (c) 2018 Microchip Technology Inc.
  7. *
  8. * \license_start
  9. *
  10. * \page License
  11. *
  12. * SPDX-License-Identifier: Apache-2.0
  13. *
  14. * Licensed under the Apache License, Version 2.0 (the "License");
  15. * you may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at
  17. *
  18. * http://www.apache.org/licenses/LICENSE-2.0
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. *
  26. * \license_stop
  27. *
  28. */
  29. /* file generated from device description version 2018-05-30T11:07:17Z */
  30. #ifndef _SAML11_PORT_INSTANCE_H_
  31. #define _SAML11_PORT_INSTANCE_H_
  32. /* ========== Register definition for PORT peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_PORT_DIR0 (0x40003000) /**< (PORT) Data Direction 0 */
  35. #define REG_PORT_DIRCLR0 (0x40003004) /**< (PORT) Data Direction Clear 0 */
  36. #define REG_PORT_DIRSET0 (0x40003008) /**< (PORT) Data Direction Set 0 */
  37. #define REG_PORT_DIRTGL0 (0x4000300C) /**< (PORT) Data Direction Toggle 0 */
  38. #define REG_PORT_OUT0 (0x40003010) /**< (PORT) Data Output Value 0 */
  39. #define REG_PORT_OUTCLR0 (0x40003014) /**< (PORT) Data Output Value Clear 0 */
  40. #define REG_PORT_OUTSET0 (0x40003018) /**< (PORT) Data Output Value Set 0 */
  41. #define REG_PORT_OUTTGL0 (0x4000301C) /**< (PORT) Data Output Value Toggle 0 */
  42. #define REG_PORT_IN0 (0x40003020) /**< (PORT) Data Input Value 0 */
  43. #define REG_PORT_CTRL0 (0x40003024) /**< (PORT) Control 0 */
  44. #define REG_PORT_WRCONFIG0 (0x40003028) /**< (PORT) Write Configuration 0 */
  45. #define REG_PORT_EVCTRL0 (0x4000302C) /**< (PORT) Event Input Control 0 */
  46. #define REG_PORT_PMUX0 (0x40003030) /**< (PORT) Peripheral Multiplexing 0 */
  47. #define REG_PORT_PINCFG0 (0x40003040) /**< (PORT) Pin Configuration 0 */
  48. #define REG_PORT_INTENCLR0 (0x40003060) /**< (PORT) Interrupt Enable Clear 0 */
  49. #define REG_PORT_INTENSET0 (0x40003064) /**< (PORT) Interrupt Enable Set 0 */
  50. #define REG_PORT_INTFLAG0 (0x40003068) /**< (PORT) Interrupt Flag Status and Clear 0 */
  51. #define REG_PORT_NONSEC0 (0x4000306C) /**< (PORT) Security Attribution 0 */
  52. #define REG_PORT_NSCHK0 (0x40003070) /**< (PORT) Security Attribution Check 0 */
  53. #else
  54. #define REG_PORT_DIR0 (*(__IO uint32_t*)0x40003000U) /**< (PORT) Data Direction 0 */
  55. #define REG_PORT_DIRCLR0 (*(__IO uint32_t*)0x40003004U) /**< (PORT) Data Direction Clear 0 */
  56. #define REG_PORT_DIRSET0 (*(__IO uint32_t*)0x40003008U) /**< (PORT) Data Direction Set 0 */
  57. #define REG_PORT_DIRTGL0 (*(__IO uint32_t*)0x4000300CU) /**< (PORT) Data Direction Toggle 0 */
  58. #define REG_PORT_OUT0 (*(__IO uint32_t*)0x40003010U) /**< (PORT) Data Output Value 0 */
  59. #define REG_PORT_OUTCLR0 (*(__IO uint32_t*)0x40003014U) /**< (PORT) Data Output Value Clear 0 */
  60. #define REG_PORT_OUTSET0 (*(__IO uint32_t*)0x40003018U) /**< (PORT) Data Output Value Set 0 */
  61. #define REG_PORT_OUTTGL0 (*(__IO uint32_t*)0x4000301CU) /**< (PORT) Data Output Value Toggle 0 */
  62. #define REG_PORT_IN0 (*(__I uint32_t*)0x40003020U) /**< (PORT) Data Input Value 0 */
  63. #define REG_PORT_CTRL0 (*(__IO uint32_t*)0x40003024U) /**< (PORT) Control 0 */
  64. #define REG_PORT_WRCONFIG0 (*(__O uint32_t*)0x40003028U) /**< (PORT) Write Configuration 0 */
  65. #define REG_PORT_EVCTRL0 (*(__IO uint32_t*)0x4000302CU) /**< (PORT) Event Input Control 0 */
  66. #define REG_PORT_PMUX0 (*(__IO uint8_t*)0x40003030U) /**< (PORT) Peripheral Multiplexing 0 */
  67. #define REG_PORT_PINCFG0 (*(__IO uint8_t*)0x40003040U) /**< (PORT) Pin Configuration 0 */
  68. #define REG_PORT_INTENCLR0 (*(__IO uint32_t*)0x40003060U) /**< (PORT) Interrupt Enable Clear 0 */
  69. #define REG_PORT_INTENSET0 (*(__IO uint32_t*)0x40003064U) /**< (PORT) Interrupt Enable Set 0 */
  70. #define REG_PORT_INTFLAG0 (*(__IO uint32_t*)0x40003068U) /**< (PORT) Interrupt Flag Status and Clear 0 */
  71. #define REG_PORT_NONSEC0 (*(__IO uint32_t*)0x4000306CU) /**< (PORT) Security Attribution 0 */
  72. #define REG_PORT_NSCHK0 (*(__IO uint32_t*)0x40003070U) /**< (PORT) Security Attribution Check 0 */
  73. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  74. /* ========== Instance Parameter definitions for PORT peripheral ========== */
  75. #define PORT_BITS 32
  76. #define PORT_DRVSTR 1 /* DRVSTR supported */
  77. #define PORT_EV_NUM 4
  78. #define PORT_GROUPS 1
  79. #define PORT_MSB 31
  80. #define PORT_ODRAIN 0 /* ODRAIN supported */
  81. #define PORT_PPP_IMPLEMENTED 0 /* IOBUS2 implemented? */
  82. #define PORT_SECURE_IMPLEMENTED 1 /* Secure I/Os supported? */
  83. #define PORT_SLEWLIM 0 /* SLEWLIM supported */
  84. #define PORT_INSTANCE_ID 12
  85. #endif /* _SAML11_PORT_INSTANCE_ */