am_mcu_apollo.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. //*****************************************************************************
  2. //
  3. //! @file
  4. //!
  5. //! @brief Top Include for Apollo2 class devices.
  6. //!
  7. //! This file provides all the includes necessary for an apollo device.
  8. //!
  9. //! @addtogroup hal Hardware Abstraction Layer (HAL)
  10. //
  11. //! @defgroup apollo2hal HAL for Apollo2
  12. //! @ingroup hal
  13. //
  14. //*****************************************************************************
  15. //*****************************************************************************
  16. //
  17. // Copyright (c) 2017, Ambiq Micro
  18. // All rights reserved.
  19. //
  20. // Redistribution and use in source and binary forms, with or without
  21. // modification, are permitted provided that the following conditions are met:
  22. //
  23. // 1. Redistributions of source code must retain the above copyright notice,
  24. // this list of conditions and the following disclaimer.
  25. //
  26. // 2. Redistributions in binary form must reproduce the above copyright
  27. // notice, this list of conditions and the following disclaimer in the
  28. // documentation and/or other materials provided with the distribution.
  29. //
  30. // 3. Neither the name of the copyright holder nor the names of its
  31. // contributors may be used to endorse or promote products derived from this
  32. // software without specific prior written permission.
  33. //
  34. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  35. // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  36. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  37. // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
  38. // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  39. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  40. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  41. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  42. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  43. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  44. // POSSIBILITY OF SUCH DAMAGE.
  45. //
  46. // This is part of revision 1.2.11 of the AmbiqSuite Development Package.
  47. //
  48. //*****************************************************************************
  49. #ifndef AM_MCU_APOLLO_H
  50. #define AM_MCU_APOLLO_H
  51. //*****************************************************************************
  52. //
  53. // C99
  54. //
  55. //*****************************************************************************
  56. #include <stdarg.h>
  57. #include <stdbool.h>
  58. #include <stddef.h>
  59. #include <stdint.h>
  60. #ifdef __IAR_SYSTEMS_ICC__
  61. #include "intrinsics.h" // __CLZ() and other intrinsics
  62. #endif
  63. //*****************************************************************************
  64. //
  65. // Registers
  66. //
  67. //*****************************************************************************
  68. #include "regs/am_reg_base_addresses.h"
  69. #include "regs/am_reg_macros.h"
  70. #include "regs/am_reg_adc.h"
  71. #include "regs/am_reg_cachectrl.h"
  72. #include "regs/am_reg_clkgen.h"
  73. #include "regs/am_reg_ctimer.h"
  74. #include "regs/am_reg_gpio.h"
  75. #include "regs/am_reg_iomstr.h"
  76. #include "regs/am_reg_ioslave.h"
  77. #include "regs/am_reg_itm.h"
  78. #include "regs/am_reg_jedec.h"
  79. #include "regs/am_reg_mcuctrl.h"
  80. #include "regs/am_reg_nvic.h"
  81. #include "regs/am_reg_pdm.h"
  82. #include "regs/am_reg_pwrctrl.h"
  83. #include "regs/am_reg_rstgen.h"
  84. #include "regs/am_reg_rtc.h"
  85. #include "regs/am_reg_sysctrl.h"
  86. #include "regs/am_reg_systick.h"
  87. #include "regs/am_reg_tpiu.h"
  88. #include "regs/am_reg_uart.h"
  89. #include "regs/am_reg_vcomp.h"
  90. #include "regs/am_reg_wdt.h"
  91. //*****************************************************************************
  92. //
  93. // HAL
  94. //
  95. //*****************************************************************************
  96. #include "hal/am_hal_adc.h"
  97. #include "hal/am_hal_cachectrl.h"
  98. #include "hal/am_hal_clkgen.h"
  99. #include "hal/am_hal_ctimer.h"
  100. #include "hal/am_hal_debug.h"
  101. #include "hal/am_hal_flash.h"
  102. #include "hal/am_hal_global.h"
  103. #include "hal/am_hal_gpio.h"
  104. #include "hal/am_hal_i2c_bit_bang.h"
  105. #include "hal/am_hal_interrupt.h"
  106. #include "hal/am_hal_iom.h"
  107. #include "hal/am_hal_ios.h"
  108. #include "hal/am_hal_itm.h"
  109. #include "hal/am_hal_mcuctrl.h"
  110. #include "hal/am_hal_otp.h"
  111. #include "hal/am_hal_pdm.h"
  112. #include "hal/am_hal_pin.h"
  113. #include "hal/am_hal_pwrctrl.h"
  114. #include "hal/am_hal_queue.h"
  115. #include "hal/am_hal_reset.h"
  116. #include "hal/am_hal_rtc.h"
  117. #include "hal/am_hal_stimer.h"
  118. #include "hal/am_hal_sysctrl.h"
  119. #include "hal/am_hal_systick.h"
  120. #include "hal/am_hal_tpiu.h"
  121. #include "hal/am_hal_uart.h"
  122. #include "hal/am_hal_vcomp.h"
  123. #include "hal/am_hal_wdt.h"
  124. #endif // AM_MCU_APOLLO_H