ChibiOS/RT Architecture - Reference Manual - Guides |
00001 /* 00002 ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio. 00003 00004 This file is part of ChibiOS/RT. 00005 00006 ChibiOS/RT is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 ChibiOS/RT is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. 00018 00019 --- 00020 00021 A special exception to the GPL can be applied should you wish to distribute 00022 a combined work that includes ChibiOS/RT, without being obliged to provide 00023 the source code for any proprietary components. See the file exception.txt 00024 for full details of how and when the exception can be applied. 00025 */ 00026 00027 /** 00028 * @file templates/halconf.h 00029 * @brief HAL configuration header. 00030 * @details HAL configuration file, this file allows to enable or disable the 00031 * various device drivers from your application. You may also use 00032 * this file in order to override the device drivers default settings. 00033 * 00034 * @addtogroup HAL_CONF 00035 * @{ 00036 */ 00037 00038 /* 00039 * 00040 */ 00041 00042 #ifndef _HALCONF_H_ 00043 #define _HALCONF_H_ 00044 00045 /* 00046 * Uncomment the following line in order to include a mcu-related 00047 * settings file. This file can be used to include platform specific 00048 * header files or to override the low level drivers settings. 00049 */ 00050 /*#include "mcuconf.h"*/ 00051 00052 /*===========================================================================*/ 00053 /* PAL driver related settings. */ 00054 /*===========================================================================*/ 00055 00056 /** 00057 * @brief Enables the PAL subsystem. 00058 */ 00059 #if !defined(CH_HAL_USE_PAL) || defined(__DOXYGEN__) 00060 #define CH_HAL_USE_PAL TRUE 00061 #endif 00062 00063 /*===========================================================================*/ 00064 /* ADC driver related settings. */ 00065 /*===========================================================================*/ 00066 00067 /** 00068 * @brief Enables the ADC subsystem. 00069 */ 00070 #if !defined(CH_HAL_USE_ADC) || defined(__DOXYGEN__) 00071 #define CH_HAL_USE_ADC TRUE 00072 #endif 00073 00074 /*===========================================================================*/ 00075 /* CAN driver related settings. */ 00076 /*===========================================================================*/ 00077 00078 /** 00079 * @brief Enables the CAN subsystem. 00080 */ 00081 #if !defined(CH_HAL_USE_CAN) || defined(__DOXYGEN__) 00082 #define CH_HAL_USE_CAN TRUE 00083 #endif 00084 00085 /* 00086 * Default CAN settings overrides (uncomment to override). 00087 */ 00088 /*#define CAN_USE_SLEEP_MODE TRUE*/ 00089 00090 /*===========================================================================*/ 00091 /* MAC driver related settings. */ 00092 /*===========================================================================*/ 00093 00094 /** 00095 * @brief Enables the MAC subsystem. 00096 */ 00097 #if !defined(CH_HAL_USE_MAC) || defined(__DOXYGEN__) 00098 #define CH_HAL_USE_MAC TRUE 00099 #endif 00100 00101 /*===========================================================================*/ 00102 /* PWM driver related settings. */ 00103 /*===========================================================================*/ 00104 00105 /** 00106 * @brief Enables the PWM subsystem. 00107 */ 00108 #if !defined(CH_HAL_USE_PWM) || defined(__DOXYGEN__) 00109 #define CH_HAL_USE_PWM TRUE 00110 #endif 00111 00112 /*===========================================================================*/ 00113 /* SERIAL driver related settings. */ 00114 /*===========================================================================*/ 00115 00116 /** 00117 * @brief Enables the SERIAL subsystem. 00118 */ 00119 #if !defined(CH_HAL_USE_SERIAL) || defined(__DOXYGEN__) 00120 #define CH_HAL_USE_SERIAL TRUE 00121 #endif 00122 00123 /* 00124 * Default SERIAL settings overrides (uncomment to override). 00125 */ 00126 /*#define SERIAL_DEFAULT_BITRATE 38400*/ 00127 /*#define SERIAL_BUFFERS_SIZE 64*/ 00128 00129 /*===========================================================================*/ 00130 /* SPI driver related settings. */ 00131 /*===========================================================================*/ 00132 00133 /** 00134 * @brief Enables the SPI subsystem. 00135 */ 00136 #if !defined(CH_HAL_USE_SPI) || defined(__DOXYGEN__) 00137 #define CH_HAL_USE_SPI TRUE 00138 #endif 00139 00140 /* 00141 * Default SPI settings overrides (uncomment to override). 00142 */ 00143 /*#define SPI_USE_MUTUAL_EXCLUSION TRUE*/ 00144 00145 /*===========================================================================*/ 00146 /* MMC_SPI driver related settings. */ 00147 /*===========================================================================*/ 00148 00149 /** 00150 * @brief Enables the MMC_SPI subsystem. 00151 */ 00152 #if !defined(CH_HAL_USE_MMC_SPI) || defined(__DOXYGEN__) 00153 #define CH_HAL_USE_MMC_SPI TRUE 00154 #endif 00155 00156 /* 00157 * Default MMC_SPI settings overrides (uncomment to override). 00158 */ 00159 /*#define MMC_SECTOR_SIZE 512*/ 00160 /*#define MMC_NICE_WAITING TRUE*/ 00161 /*#define MMC_POLLING_INTERVAL 10*/ 00162 /*#define MMC_POLLING_DELAY 10*/ 00163 00164 #endif /* _HALCONF_H_ */ 00165 00166 /** @} */