Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

halconf.h 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*
  2. ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. /**
  14. * @file templates/halconf.h
  15. * @brief HAL configuration header.
  16. * @details HAL configuration file, this file allows to enable or disable the
  17. * various device drivers from your application. You may also use
  18. * this file in order to override the device drivers default settings.
  19. *
  20. * @addtogroup HAL_CONF
  21. * @{
  22. */
  23. #ifndef _HALCONF_H_
  24. #define _HALCONF_H_
  25. #include "mcuconf.h"
  26. /**
  27. * @brief Enables the PAL subsystem.
  28. */
  29. #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
  30. #define HAL_USE_PAL TRUE
  31. #endif
  32. /**
  33. * @brief Enables the ADC subsystem.
  34. */
  35. #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
  36. #define HAL_USE_ADC FALSE
  37. #endif
  38. /**
  39. * @brief Enables the CAN subsystem.
  40. */
  41. #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
  42. #define HAL_USE_CAN FALSE
  43. #endif
  44. /**
  45. * @brief Enables the DAC subsystem.
  46. */
  47. #if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
  48. #define HAL_USE_DAC FALSE
  49. #endif
  50. /**
  51. * @brief Enables the EXT subsystem.
  52. */
  53. #if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
  54. #define HAL_USE_EXT FALSE
  55. #endif
  56. /**
  57. * @brief Enables the GPT subsystem.
  58. */
  59. #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
  60. #define HAL_USE_GPT FALSE
  61. #endif
  62. /**
  63. * @brief Enables the I2C subsystem.
  64. */
  65. #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
  66. #define HAL_USE_I2C FALSE
  67. #endif
  68. /**
  69. * @brief Enables the I2S subsystem.
  70. */
  71. #if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
  72. #define HAL_USE_I2S FALSE
  73. #endif
  74. /**
  75. * @brief Enables the ICU subsystem.
  76. */
  77. #if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
  78. #define HAL_USE_ICU FALSE
  79. #endif
  80. /**
  81. * @brief Enables the MAC subsystem.
  82. */
  83. #if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
  84. #define HAL_USE_MAC FALSE
  85. #endif
  86. /**
  87. * @brief Enables the MMC_SPI subsystem.
  88. */
  89. #if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
  90. #define HAL_USE_MMC_SPI FALSE
  91. #endif
  92. /**
  93. * @brief Enables the PWM subsystem.
  94. */
  95. #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
  96. #define HAL_USE_PWM FALSE
  97. #endif
  98. /**
  99. * @brief Enables the RTC subsystem.
  100. */
  101. #if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
  102. #define HAL_USE_RTC FALSE
  103. #endif
  104. /**
  105. * @brief Enables the SDC subsystem.
  106. */
  107. #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
  108. #define HAL_USE_SDC FALSE
  109. #endif
  110. /**
  111. * @brief Enables the SERIAL subsystem.
  112. */
  113. #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
  114. #define HAL_USE_SERIAL FALSE
  115. #endif
  116. /**
  117. * @brief Enables the SERIAL over USB subsystem.
  118. */
  119. #if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
  120. #define HAL_USE_SERIAL_USB FALSE
  121. #endif
  122. /**
  123. * @brief Enables the SPI subsystem.
  124. */
  125. #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
  126. #define HAL_USE_SPI FALSE
  127. #endif
  128. /**
  129. * @brief Enables the UART subsystem.
  130. */
  131. #if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
  132. #define HAL_USE_UART FALSE
  133. #endif
  134. /**
  135. * @brief Enables the USB subsystem.
  136. */
  137. #if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
  138. #define HAL_USE_USB TRUE
  139. #endif
  140. /**
  141. * @brief Enables the WDG subsystem.
  142. */
  143. #if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
  144. #define HAL_USE_WDG FALSE
  145. #endif
  146. /*===========================================================================*/
  147. /* USB driver related settings. */
  148. /*===========================================================================*/
  149. /**
  150. * @brief Enables synchronous APIs.
  151. * @note Disabling this option saves both code and data space.
  152. */
  153. #if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
  154. #define USB_USE_WAIT TRUE
  155. #endif
  156. #endif /* _HALCONF_H_ */
  157. /** @} */