mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-13 23:44:54 +00:00
187 lines
4.4 KiB
C
187 lines
4.4 KiB
C
/*
|
|
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_ */
|
|
|
|
/** @} */
|