123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- */
-
- /**
- * @file templates/halconf.h
- * @brief HAL configuration header.
- * @details HAL configuration file, this file allows to enable or disable the
- * various device drivers from your application. You may also use
- * this file in order to override the device drivers default settings.
- *
- * @addtogroup HAL_CONF
- * @{
- */
-
- #ifndef _HALCONF_H_
- #define _HALCONF_H_
-
- #include "mcuconf.h"
-
- /**
- * @brief Enables the PAL subsystem.
- */
- #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
- #define HAL_USE_PAL TRUE
- #endif
-
- /**
- * @brief Enables the ADC subsystem.
- */
- #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
- #define HAL_USE_ADC FALSE
- #endif
-
- /**
- * @brief Enables the CAN subsystem.
- */
- #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
- #define HAL_USE_CAN FALSE
- #endif
-
- /**
- * @brief Enables the DAC subsystem.
- */
- #if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
- #define HAL_USE_DAC FALSE
- #endif
-
- /**
- * @brief Enables the EXT subsystem.
- */
- #if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
- #define HAL_USE_EXT FALSE
- #endif
-
- /**
- * @brief Enables the GPT subsystem.
- */
- #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
- #define HAL_USE_GPT FALSE
- #endif
-
- /**
- * @brief Enables the I2C subsystem.
- */
- #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
- #define HAL_USE_I2C FALSE
- #endif
-
- /**
- * @brief Enables the I2S subsystem.
- */
- #if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
- #define HAL_USE_I2S FALSE
- #endif
-
- /**
- * @brief Enables the ICU subsystem.
- */
- #if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
- #define HAL_USE_ICU FALSE
- #endif
-
- /**
- * @brief Enables the MAC subsystem.
- */
- #if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
- #define HAL_USE_MAC FALSE
- #endif
-
- /**
- * @brief Enables the MMC_SPI subsystem.
- */
- #if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
- #define HAL_USE_MMC_SPI FALSE
- #endif
-
- /**
- * @brief Enables the PWM subsystem.
- */
- #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
- #define HAL_USE_PWM FALSE
- #endif
-
- /**
- * @brief Enables the RTC subsystem.
- */
- #if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
- #define HAL_USE_RTC FALSE
- #endif
-
- /**
- * @brief Enables the SDC subsystem.
- */
- #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
- #define HAL_USE_SDC FALSE
- #endif
-
- /**
- * @brief Enables the SERIAL subsystem.
- */
- #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
- #define HAL_USE_SERIAL FALSE
- #endif
-
- /**
- * @brief Enables the SERIAL over USB subsystem.
- */
- #if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
- #define HAL_USE_SERIAL_USB FALSE
- #endif
-
- /**
- * @brief Enables the SPI subsystem.
- */
- #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
- #define HAL_USE_SPI FALSE
- #endif
-
- /**
- * @brief Enables the UART subsystem.
- */
- #if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
- #define HAL_USE_UART FALSE
- #endif
-
- /**
- * @brief Enables the USB subsystem.
- */
- #if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
- #define HAL_USE_USB TRUE
- #endif
-
- /**
- * @brief Enables the WDG subsystem.
- */
- #if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
- #define HAL_USE_WDG FALSE
- #endif
-
- /*===========================================================================*/
- /* USB driver related settings. */
- /*===========================================================================*/
-
- /**
- * @brief Enables synchronous APIs.
- * @note Disabling this option saves both code and data space.
- */
- #if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
- #define USB_USE_WAIT TRUE
- #endif
-
- #endif /* _HALCONF_H_ */
-
- /** @} */
|