eic.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for EIC
  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_EIC_INSTANCE_H_
  31. #define _SAML11_EIC_INSTANCE_H_
  32. /* ========== Register definition for EIC peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_EIC_CTRLA (0x40002800) /**< (EIC) Control A */
  35. #define REG_EIC_NMICTRL (0x40002801) /**< (EIC) Non-Maskable Interrupt Control */
  36. #define REG_EIC_NMIFLAG (0x40002802) /**< (EIC) Non-Maskable Interrupt Flag Status and Clear */
  37. #define REG_EIC_SYNCBUSY (0x40002804) /**< (EIC) Synchronization Busy */
  38. #define REG_EIC_EVCTRL (0x40002808) /**< (EIC) Event Control */
  39. #define REG_EIC_INTENCLR (0x4000280C) /**< (EIC) Interrupt Enable Clear */
  40. #define REG_EIC_INTENSET (0x40002810) /**< (EIC) Interrupt Enable Set */
  41. #define REG_EIC_INTFLAG (0x40002814) /**< (EIC) Interrupt Flag Status and Clear */
  42. #define REG_EIC_ASYNCH (0x40002818) /**< (EIC) External Interrupt Asynchronous Mode */
  43. #define REG_EIC_CONFIG (0x4000281C) /**< (EIC) External Interrupt Sense Configuration */
  44. #define REG_EIC_CONFIG0 (0x4000281C) /**< (EIC) External Interrupt Sense Configuration 0 */
  45. #define REG_EIC_DEBOUNCEN (0x40002830) /**< (EIC) Debouncer Enable */
  46. #define REG_EIC_DPRESCALER (0x40002834) /**< (EIC) Debouncer Prescaler */
  47. #define REG_EIC_PINSTATE (0x40002838) /**< (EIC) Pin State */
  48. #define REG_EIC_NSCHK (0x4000283C) /**< (EIC) Non-secure Interrupt Check Enable */
  49. #define REG_EIC_NONSEC (0x40002840) /**< (EIC) Non-secure Interrupt */
  50. #else
  51. #define REG_EIC_CTRLA (*(__IO uint8_t*)0x40002800U) /**< (EIC) Control A */
  52. #define REG_EIC_NMICTRL (*(__IO uint8_t*)0x40002801U) /**< (EIC) Non-Maskable Interrupt Control */
  53. #define REG_EIC_NMIFLAG (*(__IO uint16_t*)0x40002802U) /**< (EIC) Non-Maskable Interrupt Flag Status and Clear */
  54. #define REG_EIC_SYNCBUSY (*(__I uint32_t*)0x40002804U) /**< (EIC) Synchronization Busy */
  55. #define REG_EIC_EVCTRL (*(__IO uint32_t*)0x40002808U) /**< (EIC) Event Control */
  56. #define REG_EIC_INTENCLR (*(__IO uint32_t*)0x4000280CU) /**< (EIC) Interrupt Enable Clear */
  57. #define REG_EIC_INTENSET (*(__IO uint32_t*)0x40002810U) /**< (EIC) Interrupt Enable Set */
  58. #define REG_EIC_INTFLAG (*(__IO uint32_t*)0x40002814U) /**< (EIC) Interrupt Flag Status and Clear */
  59. #define REG_EIC_ASYNCH (*(__IO uint32_t*)0x40002818U) /**< (EIC) External Interrupt Asynchronous Mode */
  60. #define REG_EIC_CONFIG (*(__IO uint32_t*)0x4000281CU) /**< (EIC) External Interrupt Sense Configuration */
  61. #define REG_EIC_CONFIG0 (*(__IO uint32_t*)0x4000281CU) /**< (EIC) External Interrupt Sense Configuration 0 */
  62. #define REG_EIC_DEBOUNCEN (*(__IO uint32_t*)0x40002830U) /**< (EIC) Debouncer Enable */
  63. #define REG_EIC_DPRESCALER (*(__IO uint32_t*)0x40002834U) /**< (EIC) Debouncer Prescaler */
  64. #define REG_EIC_PINSTATE (*(__I uint32_t*)0x40002838U) /**< (EIC) Pin State */
  65. #define REG_EIC_NSCHK (*(__IO uint32_t*)0x4000283CU) /**< (EIC) Non-secure Interrupt Check Enable */
  66. #define REG_EIC_NONSEC (*(__IO uint32_t*)0x40002840U) /**< (EIC) Non-secure Interrupt */
  67. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  68. /* ========== Instance Parameter definitions for EIC peripheral ========== */
  69. #define EIC_EXTINT_NUM 8 /* Number of external interrupts */
  70. #define EIC_GCLK_ID 3 /* Generic Clock index */
  71. #define EIC_NUMBER_OF_CONFIG_REGS 1 /* Number of CONFIG registers */
  72. #define EIC_NUMBER_OF_DPRESCALER_REGS 1 /* Number of DPRESCALER registers */
  73. #define EIC_NUMBER_OF_INTERRUPTS 8 /* Number of external interrupts (obsolete) */
  74. #define EIC_SECURE_IMPLEMENTED 1 /* Security Configuration implemented? */
  75. #define EIC_INSTANCE_ID 10
  76. #endif /* _SAML11_EIC_INSTANCE_ */