evsys.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * \brief Instance header file for ATSAMD21J18A
  3. *
  4. * Copyright (c) 2021 Microchip Technology Inc. and its subsidiaries.
  5. *
  6. * Subject to your compliance with these terms, you may use Microchip software and any derivatives
  7. * exclusively with Microchip products. It is your responsibility to comply with third party license
  8. * terms applicable to your use of third party software (including open source software) that may
  9. * accompany Microchip software.
  10. *
  11. * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY,
  12. * APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND
  13. * FITNESS FOR A PARTICULAR PURPOSE.
  14. *
  15. * IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL
  16. * LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
  17. * MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT
  18. * ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT
  19. * EXCEED THE AMOUNT OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
  20. *
  21. */
  22. /* file generated from device description version 2019-11-25T06:52:33Z */
  23. #ifndef _SAMD21_EVSYS_INSTANCE_
  24. #define _SAMD21_EVSYS_INSTANCE_
  25. /* ========== Instance Parameter definitions for EVSYS peripheral ========== */
  26. #define EVSYS_CHANNELS _UL_(12) /* Number of Channels */
  27. #define EVSYS_CHANNELS_BITS _UL_(4) /* Number of bits to select Channel */
  28. #define EVSYS_CHANNELS_MSB _UL_(11) /* Number of Channels - 1 */
  29. #define EVSYS_EXTEVT_NUM _UL_(0) /* Number of External Event Generators */
  30. #define EVSYS_GCLK_ID_0 _UL_(7) /* Index of Generic Clock 0 */
  31. #define EVSYS_GCLK_ID_1 _UL_(8) /* Index of Generic Clock 1 */
  32. #define EVSYS_GCLK_ID_2 _UL_(9) /* Index of Generic Clock 2 */
  33. #define EVSYS_GCLK_ID_3 _UL_(10) /* Index of Generic Clock 3 */
  34. #define EVSYS_GCLK_ID_4 _UL_(11) /* Index of Generic Clock 4 */
  35. #define EVSYS_GCLK_ID_5 _UL_(12) /* Index of Generic Clock 5 */
  36. #define EVSYS_GCLK_ID_6 _UL_(13) /* Index of Generic Clock 6 */
  37. #define EVSYS_GCLK_ID_7 _UL_(14) /* Index of Generic Clock 7 */
  38. #define EVSYS_GCLK_ID_8 _UL_(15) /* Index of Generic Clock 8 */
  39. #define EVSYS_GCLK_ID_9 _UL_(16) /* Index of Generic Clock 9 */
  40. #define EVSYS_GCLK_ID_10 _UL_(17) /* Index of Generic Clock 10 */
  41. #define EVSYS_GCLK_ID_11 _UL_(18) /* Index of Generic Clock 11 */
  42. #define EVSYS_GENERATORS _UL_(73) /* Total Number of Event Generators */
  43. #define EVSYS_GENERATORS_BITS _UL_(7) /* Number of bits to select Event Generator */
  44. #define EVSYS_USERS _UL_(29) /* Total Number of Event Users */
  45. #define EVSYS_USERS_BITS _UL_(5) /* Number of bits to select Event User */
  46. #define EVSYS_INSTANCE_ID _UL_(65)
  47. #endif /* _SAMD21_EVSYS_INSTANCE_ */