samd21.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /**
  2. * \file
  3. *
  4. * \brief Top header file for SAMD21
  5. *
  6. * Copyright (c) 2014-2015 Atmel Corporation. All rights reserved.
  7. *
  8. * \asf_license_start
  9. *
  10. * \page License
  11. *
  12. * Redistribution and use in source and binary forms, with or without
  13. * modification, are permitted provided that the following conditions are met:
  14. *
  15. * 1. Redistributions of source code must retain the above copyright notice,
  16. * this list of conditions and the following disclaimer.
  17. *
  18. * 2. Redistributions in binary form must reproduce the above copyright notice,
  19. * this list of conditions and the following disclaimer in the documentation
  20. * and/or other materials provided with the distribution.
  21. *
  22. * 3. The name of Atmel may not be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * 4. This software may only be redistributed and used in connection with an
  26. * Atmel microcontroller product.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
  29. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  30. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
  31. * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
  32. * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  33. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  34. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  36. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  37. * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  38. * POSSIBILITY OF SUCH DAMAGE.
  39. *
  40. * \asf_license_stop
  41. *
  42. */
  43. /*
  44. * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
  45. */
  46. #ifndef _SAMD21_
  47. #define _SAMD21_
  48. /**
  49. * \defgroup SAMD21_definitions SAMD21 Device Definitions
  50. * \brief SAMD21 CMSIS Definitions.
  51. */
  52. #if defined(__SAMD21E15A__) || defined(__ATSAMD21E15A__)
  53. #include "samd21e15a.h"
  54. #elif defined(__SAMD21E16A__) || defined(__ATSAMD21E16A__)
  55. #include "samd21e16a.h"
  56. #elif defined(__SAMD21E17A__) || defined(__ATSAMD21E17A__)
  57. #include "samd21e17a.h"
  58. #elif defined(__SAMD21E18A__) || defined(__ATSAMD21E18A__)
  59. #include "samd21e18a.h"
  60. #elif defined(__SAMD21G15A__) || defined(__ATSAMD21G15A__)
  61. #include "samd21g15a.h"
  62. #elif defined(__SAMD21G16A__) || defined(__ATSAMD21G16A__)
  63. #include "samd21g16a.h"
  64. #elif defined(__SAMD21G17A__) || defined(__ATSAMD21G17A__)
  65. #include "samd21g17a.h"
  66. #elif defined(__SAMD21G17AU__) || defined(__ATSAMD21G17AU__)
  67. #include "samd21g17au.h"
  68. #elif defined(__SAMD21G18A__) || defined(__ATSAMD21G18A__)
  69. #include "samd21g18a.h"
  70. #elif defined (__SAMD21G18AU__) || defined(__ATSAMD21G18AU__)
  71. #include "samd21g18au.h"
  72. #elif defined(__SAMD21J15A__) || defined(__ATSAMD21J15A__)
  73. #include "samd21j15a.h"
  74. #elif defined(__SAMD21J16A__) || defined(__ATSAMD21J16A__)
  75. #include "samd21j16a.h"
  76. #elif defined(__SAMD21J17A__) || defined(__ATSAMD21J17A__)
  77. #include "samd21j17a.h"
  78. #elif defined(__SAMD21J18A__) || defined(__ATSAMD21J18A__)
  79. #include "samd21j18a.h"
  80. #elif defined(__SAMD21E15B__) || defined(__ATSAMD21E15B__)
  81. #include "samd21e15b.h"
  82. #elif defined(__SAMD21E15BU__) || defined(__ATSAMD21E15BU__)
  83. #include "samd21e15bu.h"
  84. #elif defined(__SAMD21E15L__) || defined(__ATSAMD21E15L__)
  85. #include "samd21e15l.h"
  86. #elif defined(__SAMD21E16B__) || defined(__ATSAMD21E16B__)
  87. #include "samd21e16b.h"
  88. #elif defined(__SAMD21E16BU__) || defined(__ATSAMD21E16BU__)
  89. #include "samd21e16bu.h"
  90. #elif defined(__SAMD21E16L__) || defined(__ATSAMD21E16L__)
  91. #include "samd21e16l.h"
  92. #elif defined(__SAMD21G15B__) || defined(__ATSAMD21G15B__)
  93. #include "samd21g15b.h"
  94. #elif defined(__SAMD21G16B__) || defined(__ATSAMD21G16B__)
  95. #include "samd21g16b.h"
  96. #elif defined(__SAMD21J15B__) || defined(__ATSAMD21J15B__)
  97. #include "samd21j15b.h"
  98. #elif defined(__SAMD21J16B__) || defined(__ATSAMD21J16B__)
  99. #include "samd21j16b.h"
  100. #else
  101. #error Library does not support the specified device.
  102. #endif
  103. #endif /* _SAMD21_ */