sam.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * \file
  3. *
  4. * \brief Top level header file
  5. *
  6. * Copyright (c) 2021 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. #ifndef _SAM_
  30. #define _SAM_
  31. #if defined(__SAMD21E17A__) || defined(__ATSAMD21E17A__)
  32. #include "samd21e17a.h"
  33. #elif defined(__SAMD21J18A__) || defined(__ATSAMD21J18A__)
  34. #include "samd21j18a.h"
  35. #elif defined(__SAMD21E18A__) || defined(__ATSAMD21E18A__)
  36. #include "samd21e18a.h"
  37. #elif defined(__SAMD21G15A__) || defined(__ATSAMD21G15A__)
  38. #include "samd21g15a.h"
  39. #elif defined(__SAMD21J16A__) || defined(__ATSAMD21J16A__)
  40. #include "samd21j16a.h"
  41. #elif defined(__SAMD21J17A__) || defined(__ATSAMD21J17A__)
  42. #include "samd21j17a.h"
  43. #elif defined(__SAMD21G17AU__) || defined(__ATSAMD21G17AU__)
  44. #include "samd21g17au.h"
  45. #elif defined(__SAMD21J15A__) || defined(__ATSAMD21J15A__)
  46. #include "samd21j15a.h"
  47. #elif defined(__SAMD21E15A__) || defined(__ATSAMD21E15A__)
  48. #include "samd21e15a.h"
  49. #elif defined(__SAMD21G16A__) || defined(__ATSAMD21G16A__)
  50. #include "samd21g16a.h"
  51. #elif defined(__SAMD21G17A__) || defined(__ATSAMD21G17A__)
  52. #include "samd21g17a.h"
  53. #elif defined(__SAMD21E16A__) || defined(__ATSAMD21E16A__)
  54. #include "samd21e16a.h"
  55. #elif defined(__SAMD21G18A__) || defined(__ATSAMD21G18A__)
  56. #include "samd21g18a.h"
  57. #elif defined(__SAMD21G18AU__) || defined(__ATSAMD21G18AU__)
  58. #include "samd21g18au.h"
  59. #else
  60. #error Library does not support the specified device
  61. #endif
  62. #endif /* _SAM_ */