MAV'RIC
|
00001 /* 00002 ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio 00003 00004 Licensed under the Apache License, Version 2.0 (the "License"); 00005 you may not use this file except in compliance with the License. 00006 You may obtain a copy of the License at 00007 00008 http://www.apache.org/licenses/LICENSE-2.0 00009 00010 Unless required by applicable law or agreed to in writing, software 00011 distributed under the License is distributed on an "AS IS" BASIS, 00012 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 See the License for the specific language governing permissions and 00014 limitations under the License. 00015 */ 00016 00028 #ifndef HALCONF_H 00029 #define HALCONF_H 00030 00031 #include "mcuconf.h" 00032 00036 #if !defined(HAL_USE_TM) || defined(__DOXYGEN__) 00037 #define HAL_USE_TM TRUE 00038 #endif 00039 00043 #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__) 00044 #define HAL_USE_PAL TRUE 00045 #endif 00046 00050 #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__) 00051 #define HAL_USE_ADC FALSE 00052 #endif 00053 00057 #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__) 00058 #define HAL_USE_CAN FALSE 00059 #endif 00060 00064 #if !defined(HAL_USE_DAC) || defined(__DOXYGEN__) 00065 #define HAL_USE_DAC FALSE 00066 #endif 00067 00071 #if !defined(HAL_USE_EXT) || defined(__DOXYGEN__) 00072 #define HAL_USE_EXT FALSE 00073 #endif 00074 00078 #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__) 00079 #define HAL_USE_GPT FALSE 00080 #endif 00081 00085 #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__) 00086 #define HAL_USE_I2C TRUE 00087 #endif 00088 00092 #if !defined(HAL_USE_I2S) || defined(__DOXYGEN__) 00093 #define HAL_USE_I2S FALSE 00094 #endif 00095 00099 #if !defined(HAL_USE_ICU) || defined(__DOXYGEN__) 00100 #define HAL_USE_ICU FALSE 00101 #endif 00102 00106 #if !defined(HAL_USE_MAC) || defined(__DOXYGEN__) 00107 #define HAL_USE_MAC FALSE 00108 #endif 00109 00113 #if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__) 00114 #define HAL_USE_MMC_SPI FALSE 00115 #endif 00116 00120 #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) 00121 #define HAL_USE_PWM TRUE 00122 #endif 00123 00127 #if !defined(HAL_USE_QSPI) || defined(__DOXYGEN__) 00128 #define HAL_USE_QSPI FALSE 00129 #endif 00130 00134 #if !defined(HAL_USE_RTC) || defined(__DOXYGEN__) 00135 #define HAL_USE_RTC FALSE 00136 #endif 00137 00141 #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__) 00142 #define HAL_USE_SDC FALSE 00143 #endif 00144 00148 #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__) 00149 #define HAL_USE_SERIAL FALSE 00150 #endif 00151 00155 #if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__) 00156 #define HAL_USE_SERIAL_USB TRUE 00157 #endif 00158 00162 #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) 00163 #define HAL_USE_SPI TRUE 00164 #endif 00165 00169 #if !defined(HAL_USE_UART) || defined(__DOXYGEN__) 00170 #define HAL_USE_UART TRUE 00171 #endif 00172 00176 #if !defined(HAL_USE_USB) || defined(__DOXYGEN__) 00177 #define HAL_USE_USB TRUE 00178 #endif 00179 00183 #if !defined(HAL_USE_WDG) || defined(__DOXYGEN__) 00184 #define HAL_USE_WDG FALSE 00185 #endif 00186 00187 /*===========================================================================*/ 00188 /* ADC driver related settings. */ 00189 /*===========================================================================*/ 00190 00195 #if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__) 00196 #define ADC_USE_WAIT TRUE 00197 #endif 00198 00203 #if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) 00204 #define ADC_USE_MUTUAL_EXCLUSION TRUE 00205 #endif 00206 00207 /*===========================================================================*/ 00208 /* CAN driver related settings. */ 00209 /*===========================================================================*/ 00210 00214 #if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__) 00215 #define CAN_USE_SLEEP_MODE TRUE 00216 #endif 00217 00218 /*===========================================================================*/ 00219 /* I2C driver related settings. */ 00220 /*===========================================================================*/ 00221 00225 #if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) 00226 #define I2C_USE_MUTUAL_EXCLUSION TRUE 00227 #endif 00228 00229 /*===========================================================================*/ 00230 /* MAC driver related settings. */ 00231 /*===========================================================================*/ 00232 00236 #if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__) 00237 #define MAC_USE_ZERO_COPY FALSE 00238 #endif 00239 00243 #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__) 00244 #define MAC_USE_EVENTS TRUE 00245 #endif 00246 00247 /*===========================================================================*/ 00248 /* MMC_SPI driver related settings. */ 00249 /*===========================================================================*/ 00250 00259 #if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__) 00260 #define MMC_NICE_WAITING TRUE 00261 #endif 00262 00263 /*===========================================================================*/ 00264 /* SDC driver related settings. */ 00265 /*===========================================================================*/ 00266 00271 #if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__) 00272 #define SDC_INIT_RETRY 100 00273 #endif 00274 00280 #if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__) 00281 #define SDC_MMC_SUPPORT FALSE 00282 #endif 00283 00290 #if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__) 00291 #define SDC_NICE_WAITING TRUE 00292 #endif 00293 00294 /*===========================================================================*/ 00295 /* SERIAL driver related settings. */ 00296 /*===========================================================================*/ 00297 00303 #if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__) 00304 #define SERIAL_DEFAULT_BITRATE 38400 00305 #endif 00306 00314 #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) 00315 #define SERIAL_BUFFERS_SIZE 16 00316 #endif 00317 00318 /*===========================================================================*/ 00319 /* SERIAL_USB driver related setting. */ 00320 /*===========================================================================*/ 00321 00329 #if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__) 00330 #define SERIAL_USB_BUFFERS_SIZE 256 00331 #endif 00332 00337 #if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__) 00338 #define SERIAL_USB_BUFFERS_NUMBER 2 00339 #endif 00340 00341 /*===========================================================================*/ 00342 /* SPI driver related settings. */ 00343 /*===========================================================================*/ 00344 00349 #if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__) 00350 #define SPI_USE_WAIT TRUE 00351 #endif 00352 00357 #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) 00358 #define SPI_USE_MUTUAL_EXCLUSION TRUE 00359 #endif 00360 00361 /*===========================================================================*/ 00362 /* UART driver related settings. */ 00363 /*===========================================================================*/ 00364 00369 #if !defined(UART_USE_WAIT) || defined(__DOXYGEN__) 00370 #define UART_USE_WAIT FALSE 00371 #endif 00372 00377 #if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) 00378 #define UART_USE_MUTUAL_EXCLUSION FALSE 00379 #endif 00380 00381 /*===========================================================================*/ 00382 /* USB driver related settings. */ 00383 /*===========================================================================*/ 00384 00389 #if !defined(USB_USE_WAIT) || defined(__DOXYGEN__) 00390 #define USB_USE_WAIT TRUE 00391 #endif 00392 00393 #endif /* HALCONF_H */ 00394