diff options
Diffstat (limited to 'keyboards/ergodox_infinity/halconf.h')
| -rw-r--r-- | keyboards/ergodox_infinity/halconf.h | 266 |
1 files changed, 219 insertions, 47 deletions
diff --git a/keyboards/ergodox_infinity/halconf.h b/keyboards/ergodox_infinity/halconf.h index ade55ae72..af31e509a 100644 --- a/keyboards/ergodox_infinity/halconf.h +++ b/keyboards/ergodox_infinity/halconf.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio | 2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. | 5 | you may not use this file except in compliance with the License. |
| @@ -25,8 +25,11 @@ | |||
| 25 | * @{ | 25 | * @{ |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
| 28 | #ifndef _HALCONF_H_ | 28 | #ifndef HALCONF_H |
| 29 | #define _HALCONF_H_ | 29 | #define HALCONF_H |
| 30 | |||
| 31 | #define _CHIBIOS_HAL_CONF_ | ||
| 32 | #define _CHIBIOS_HAL_CONF_VER_7_0_ | ||
| 30 | 33 | ||
| 31 | #include "mcuconf.h" | 34 | #include "mcuconf.h" |
| 32 | 35 | ||
| @@ -34,140 +37,181 @@ | |||
| 34 | * @brief Enables the PAL subsystem. | 37 | * @brief Enables the PAL subsystem. |
| 35 | */ | 38 | */ |
| 36 | #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__) | 39 | #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__) |
| 37 | #define HAL_USE_PAL TRUE | 40 | #define HAL_USE_PAL TRUE |
| 38 | #endif | 41 | #endif |
| 39 | 42 | ||
| 40 | /** | 43 | /** |
| 41 | * @brief Enables the ADC subsystem. | 44 | * @brief Enables the ADC subsystem. |
| 42 | */ | 45 | */ |
| 43 | #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__) | 46 | #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__) |
| 44 | #define HAL_USE_ADC FALSE | 47 | #define HAL_USE_ADC FALSE |
| 45 | #endif | 48 | #endif |
| 46 | 49 | ||
| 47 | /** | 50 | /** |
| 48 | * @brief Enables the CAN subsystem. | 51 | * @brief Enables the CAN subsystem. |
| 49 | */ | 52 | */ |
| 50 | #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__) | 53 | #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__) |
| 51 | #define HAL_USE_CAN FALSE | 54 | #define HAL_USE_CAN FALSE |
| 52 | #endif | 55 | #endif |
| 53 | 56 | ||
| 54 | /** | 57 | /** |
| 55 | * @brief Enables the DAC subsystem. | 58 | * @brief Enables the cryptographic subsystem. |
| 56 | */ | 59 | */ |
| 57 | #if !defined(HAL_USE_DAC) || defined(__DOXYGEN__) | 60 | #if !defined(HAL_USE_CRY) || defined(__DOXYGEN__) |
| 58 | #define HAL_USE_DAC FALSE | 61 | #define HAL_USE_CRY FALSE |
| 59 | #endif | 62 | #endif |
| 60 | 63 | ||
| 61 | /** | 64 | /** |
| 62 | * @brief Enables the EXT subsystem. | 65 | * @brief Enables the DAC subsystem. |
| 63 | */ | 66 | */ |
| 64 | #if !defined(HAL_USE_EXT) || defined(__DOXYGEN__) | 67 | #if !defined(HAL_USE_DAC) || defined(__DOXYGEN__) |
| 65 | #define HAL_USE_EXT FALSE | 68 | #define HAL_USE_DAC FALSE |
| 66 | #endif | 69 | #endif |
| 67 | 70 | ||
| 68 | /** | 71 | /** |
| 69 | * @brief Enables the GPT subsystem. | 72 | * @brief Enables the GPT subsystem. |
| 70 | */ | 73 | */ |
| 71 | #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__) | 74 | #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__) |
| 72 | #define HAL_USE_GPT FALSE | 75 | #define HAL_USE_GPT FALSE |
| 73 | #endif | 76 | #endif |
| 74 | 77 | ||
| 75 | /** | 78 | /** |
| 76 | * @brief Enables the I2C subsystem. | 79 | * @brief Enables the I2C subsystem. |
| 77 | */ | 80 | */ |
| 78 | #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__) | 81 | #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__) |
| 79 | #define HAL_USE_I2C TRUE | 82 | #define HAL_USE_I2C TRUE |
| 80 | #endif | 83 | #endif |
| 81 | 84 | ||
| 82 | /** | 85 | /** |
| 83 | * @brief Enables the I2S subsystem. | 86 | * @brief Enables the I2S subsystem. |
| 84 | */ | 87 | */ |
| 85 | #if !defined(HAL_USE_I2S) || defined(__DOXYGEN__) | 88 | #if !defined(HAL_USE_I2S) || defined(__DOXYGEN__) |
| 86 | #define HAL_USE_I2S FALSE | 89 | #define HAL_USE_I2S FALSE |
| 87 | #endif | 90 | #endif |
| 88 | 91 | ||
| 89 | /** | 92 | /** |
| 90 | * @brief Enables the ICU subsystem. | 93 | * @brief Enables the ICU subsystem. |
| 91 | */ | 94 | */ |
| 92 | #if !defined(HAL_USE_ICU) || defined(__DOXYGEN__) | 95 | #if !defined(HAL_USE_ICU) || defined(__DOXYGEN__) |
| 93 | #define HAL_USE_ICU FALSE | 96 | #define HAL_USE_ICU FALSE |
| 94 | #endif | 97 | #endif |
| 95 | 98 | ||
| 96 | /** | 99 | /** |
| 97 | * @brief Enables the MAC subsystem. | 100 | * @brief Enables the MAC subsystem. |
| 98 | */ | 101 | */ |
| 99 | #if !defined(HAL_USE_MAC) || defined(__DOXYGEN__) | 102 | #if !defined(HAL_USE_MAC) || defined(__DOXYGEN__) |
| 100 | #define HAL_USE_MAC FALSE | 103 | #define HAL_USE_MAC FALSE |
| 101 | #endif | 104 | #endif |
| 102 | 105 | ||
| 103 | /** | 106 | /** |
| 104 | * @brief Enables the MMC_SPI subsystem. | 107 | * @brief Enables the MMC_SPI subsystem. |
| 105 | */ | 108 | */ |
| 106 | #if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__) | 109 | #if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__) |
| 107 | #define HAL_USE_MMC_SPI FALSE | 110 | #define HAL_USE_MMC_SPI FALSE |
| 108 | #endif | 111 | #endif |
| 109 | 112 | ||
| 110 | /** | 113 | /** |
| 111 | * @brief Enables the PWM subsystem. | 114 | * @brief Enables the PWM subsystem. |
| 112 | */ | 115 | */ |
| 113 | #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) | 116 | #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) |
| 114 | #define HAL_USE_PWM FALSE | 117 | #define HAL_USE_PWM FALSE |
| 115 | #endif | 118 | #endif |
| 116 | 119 | ||
| 117 | /** | 120 | /** |
| 118 | * @brief Enables the RTC subsystem. | 121 | * @brief Enables the RTC subsystem. |
| 119 | */ | 122 | */ |
| 120 | #if !defined(HAL_USE_RTC) || defined(__DOXYGEN__) | 123 | #if !defined(HAL_USE_RTC) || defined(__DOXYGEN__) |
| 121 | #define HAL_USE_RTC FALSE | 124 | #define HAL_USE_RTC FALSE |
| 122 | #endif | 125 | #endif |
| 123 | 126 | ||
| 124 | /** | 127 | /** |
| 125 | * @brief Enables the SDC subsystem. | 128 | * @brief Enables the SDC subsystem. |
| 126 | */ | 129 | */ |
| 127 | #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__) | 130 | #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__) |
| 128 | #define HAL_USE_SDC FALSE | 131 | #define HAL_USE_SDC FALSE |
| 129 | #endif | 132 | #endif |
| 130 | 133 | ||
| 131 | /** | 134 | /** |
| 132 | * @brief Enables the SERIAL subsystem. | 135 | * @brief Enables the SERIAL subsystem. |
| 133 | */ | 136 | */ |
| 134 | #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__) | 137 | #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__) |
| 135 | #define HAL_USE_SERIAL TRUE | 138 | #define HAL_USE_SERIAL TRUE |
| 136 | #endif | 139 | #endif |
| 137 | 140 | ||
| 138 | /** | 141 | /** |
| 139 | * @brief Enables the SERIAL over USB subsystem. | 142 | * @brief Enables the SERIAL over USB subsystem. |
| 140 | */ | 143 | */ |
| 141 | #if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__) | 144 | #if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__) |
| 142 | #define HAL_USE_SERIAL_USB FALSE | 145 | #define HAL_USE_SERIAL_USB FALSE |
| 146 | #endif | ||
| 147 | |||
| 148 | /** | ||
| 149 | * @brief Enables the SIO subsystem. | ||
| 150 | */ | ||
| 151 | #if !defined(HAL_USE_SIO) || defined(__DOXYGEN__) | ||
| 152 | #define HAL_USE_SIO FALSE | ||
| 143 | #endif | 153 | #endif |
| 144 | 154 | ||
| 145 | /** | 155 | /** |
| 146 | * @brief Enables the SPI subsystem. | 156 | * @brief Enables the SPI subsystem. |
| 147 | */ | 157 | */ |
| 148 | #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) | 158 | #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) |
| 149 | #define HAL_USE_SPI TRUE | 159 | #define HAL_USE_SPI TRUE |
| 160 | #endif | ||
| 161 | |||
| 162 | /** | ||
| 163 | * @brief Enables the TRNG subsystem. | ||
| 164 | */ | ||
| 165 | #if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__) | ||
| 166 | #define HAL_USE_TRNG FALSE | ||
| 150 | #endif | 167 | #endif |
| 151 | 168 | ||
| 152 | /** | 169 | /** |
| 153 | * @brief Enables the UART subsystem. | 170 | * @brief Enables the UART subsystem. |
| 154 | */ | 171 | */ |
| 155 | #if !defined(HAL_USE_UART) || defined(__DOXYGEN__) | 172 | #if !defined(HAL_USE_UART) || defined(__DOXYGEN__) |
| 156 | #define HAL_USE_UART FALSE | 173 | #define HAL_USE_UART FALSE |
| 157 | #endif | 174 | #endif |
| 158 | 175 | ||
| 159 | /** | 176 | /** |
| 160 | * @brief Enables the USB subsystem. | 177 | * @brief Enables the USB subsystem. |
| 161 | */ | 178 | */ |
| 162 | #if !defined(HAL_USE_USB) || defined(__DOXYGEN__) | 179 | #if !defined(HAL_USE_USB) || defined(__DOXYGEN__) |
| 163 | #define HAL_USE_USB TRUE | 180 | #define HAL_USE_USB TRUE |
| 164 | #endif | 181 | #endif |
| 165 | 182 | ||
| 166 | /** | 183 | /** |
| 167 | * @brief Enables the WDG subsystem. | 184 | * @brief Enables the WDG subsystem. |
| 168 | */ | 185 | */ |
| 169 | #if !defined(HAL_USE_WDG) || defined(__DOXYGEN__) | 186 | #if !defined(HAL_USE_WDG) || defined(__DOXYGEN__) |
| 170 | #define HAL_USE_WDG FALSE | 187 | #define HAL_USE_WDG FALSE |
| 188 | #endif | ||
| 189 | |||
| 190 | /** | ||
| 191 | * @brief Enables the WSPI subsystem. | ||
| 192 | */ | ||
| 193 | #if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__) | ||
| 194 | #define HAL_USE_WSPI FALSE | ||
| 195 | #endif | ||
| 196 | |||
| 197 | /*===========================================================================*/ | ||
| 198 | /* PAL driver related settings. */ | ||
| 199 | /*===========================================================================*/ | ||
| 200 | |||
| 201 | /** | ||
| 202 | * @brief Enables synchronous APIs. | ||
| 203 | * @note Disabling this option saves both code and data space. | ||
| 204 | */ | ||
| 205 | #if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__) | ||
| 206 | #define PAL_USE_CALLBACKS FALSE | ||
| 207 | #endif | ||
| 208 | |||
| 209 | /** | ||
| 210 | * @brief Enables synchronous APIs. | ||
| 211 | * @note Disabling this option saves both code and data space. | ||
| 212 | */ | ||
| 213 | #if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__) | ||
| 214 | #define PAL_USE_WAIT FALSE | ||
| 171 | #endif | 215 | #endif |
| 172 | 216 | ||
| 173 | /*===========================================================================*/ | 217 | /*===========================================================================*/ |
| @@ -179,7 +223,7 @@ | |||
| 179 | * @note Disabling this option saves both code and data space. | 223 | * @note Disabling this option saves both code and data space. |
| 180 | */ | 224 | */ |
| 181 | #if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__) | 225 | #if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__) |
| 182 | #define ADC_USE_WAIT TRUE | 226 | #define ADC_USE_WAIT TRUE |
| 183 | #endif | 227 | #endif |
| 184 | 228 | ||
| 185 | /** | 229 | /** |
| @@ -187,7 +231,7 @@ | |||
| 187 | * @note Disabling this option saves both code and data space. | 231 | * @note Disabling this option saves both code and data space. |
| 188 | */ | 232 | */ |
| 189 | #if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | 233 | #if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) |
| 190 | #define ADC_USE_MUTUAL_EXCLUSION TRUE | 234 | #define ADC_USE_MUTUAL_EXCLUSION TRUE |
| 191 | #endif | 235 | #endif |
| 192 | 236 | ||
| 193 | /*===========================================================================*/ | 237 | /*===========================================================================*/ |
| @@ -198,7 +242,56 @@ | |||
| 198 | * @brief Sleep mode related APIs inclusion switch. | 242 | * @brief Sleep mode related APIs inclusion switch. |
| 199 | */ | 243 | */ |
| 200 | #if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__) | 244 | #if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__) |
| 201 | #define CAN_USE_SLEEP_MODE TRUE | 245 | #define CAN_USE_SLEEP_MODE TRUE |
| 246 | #endif | ||
| 247 | |||
| 248 | /** | ||
| 249 | * @brief Enforces the driver to use direct callbacks rather than OSAL events. | ||
| 250 | */ | ||
| 251 | #if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__) | ||
| 252 | #define CAN_ENFORCE_USE_CALLBACKS FALSE | ||
| 253 | #endif | ||
| 254 | |||
| 255 | /*===========================================================================*/ | ||
| 256 | /* CRY driver related settings. */ | ||
| 257 | /*===========================================================================*/ | ||
| 258 | |||
| 259 | /** | ||
| 260 | * @brief Enables the SW fall-back of the cryptographic driver. | ||
| 261 | * @details When enabled, this option, activates a fall-back software | ||
| 262 | * implementation for algorithms not supported by the underlying | ||
| 263 | * hardware. | ||
| 264 | * @note Fall-back implementations may not be present for all algorithms. | ||
| 265 | */ | ||
| 266 | #if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__) | ||
| 267 | #define HAL_CRY_USE_FALLBACK FALSE | ||
| 268 | #endif | ||
| 269 | |||
| 270 | /** | ||
| 271 | * @brief Makes the driver forcibly use the fall-back implementations. | ||
| 272 | */ | ||
| 273 | #if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__) | ||
| 274 | #define HAL_CRY_ENFORCE_FALLBACK FALSE | ||
| 275 | #endif | ||
| 276 | |||
| 277 | /*===========================================================================*/ | ||
| 278 | /* DAC driver related settings. */ | ||
| 279 | /*===========================================================================*/ | ||
| 280 | |||
| 281 | /** | ||
| 282 | * @brief Enables synchronous APIs. | ||
| 283 | * @note Disabling this option saves both code and data space. | ||
| 284 | */ | ||
| 285 | #if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__) | ||
| 286 | #define DAC_USE_WAIT TRUE | ||
| 287 | #endif | ||
| 288 | |||
| 289 | /** | ||
| 290 | * @brief Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs. | ||
| 291 | * @note Disabling this option saves both code and data space. | ||
| 292 | */ | ||
| 293 | #if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 294 | #define DAC_USE_MUTUAL_EXCLUSION TRUE | ||
| 202 | #endif | 295 | #endif |
| 203 | 296 | ||
| 204 | /*===========================================================================*/ | 297 | /*===========================================================================*/ |
| @@ -209,7 +302,7 @@ | |||
| 209 | * @brief Enables the mutual exclusion APIs on the I2C bus. | 302 | * @brief Enables the mutual exclusion APIs on the I2C bus. |
| 210 | */ | 303 | */ |
| 211 | #if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | 304 | #if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) |
| 212 | #define I2C_USE_MUTUAL_EXCLUSION TRUE | 305 | #define I2C_USE_MUTUAL_EXCLUSION TRUE |
| 213 | #endif | 306 | #endif |
| 214 | 307 | ||
| 215 | /*===========================================================================*/ | 308 | /*===========================================================================*/ |
| @@ -217,17 +310,17 @@ | |||
| 217 | /*===========================================================================*/ | 310 | /*===========================================================================*/ |
| 218 | 311 | ||
| 219 | /** | 312 | /** |
| 220 | * @brief Enables an event sources for incoming packets. | 313 | * @brief Enables the zero-copy API. |
| 221 | */ | 314 | */ |
| 222 | #if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__) | 315 | #if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__) |
| 223 | #define MAC_USE_ZERO_COPY FALSE | 316 | #define MAC_USE_ZERO_COPY FALSE |
| 224 | #endif | 317 | #endif |
| 225 | 318 | ||
| 226 | /** | 319 | /** |
| 227 | * @brief Enables an event sources for incoming packets. | 320 | * @brief Enables an event sources for incoming packets. |
| 228 | */ | 321 | */ |
| 229 | #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__) | 322 | #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__) |
| 230 | #define MAC_USE_EVENTS TRUE | 323 | #define MAC_USE_EVENTS TRUE |
| 231 | #endif | 324 | #endif |
| 232 | 325 | ||
| 233 | /*===========================================================================*/ | 326 | /*===========================================================================*/ |
| @@ -243,7 +336,7 @@ | |||
| 243 | * use a DMA channel and heavily loads the CPU. | 336 | * use a DMA channel and heavily loads the CPU. |
| 244 | */ | 337 | */ |
| 245 | #if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__) | 338 | #if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__) |
| 246 | #define MMC_NICE_WAITING TRUE | 339 | #define MMC_NICE_WAITING TRUE |
| 247 | #endif | 340 | #endif |
| 248 | 341 | ||
| 249 | /*===========================================================================*/ | 342 | /*===========================================================================*/ |
| @@ -255,7 +348,7 @@ | |||
| 255 | * @note Attempts are performed at 10mS intervals. | 348 | * @note Attempts are performed at 10mS intervals. |
| 256 | */ | 349 | */ |
| 257 | #if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__) | 350 | #if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__) |
| 258 | #define SDC_INIT_RETRY 100 | 351 | #define SDC_INIT_RETRY 100 |
| 259 | #endif | 352 | #endif |
| 260 | 353 | ||
| 261 | /** | 354 | /** |
| @@ -264,7 +357,7 @@ | |||
| 264 | * at @p FALSE. | 357 | * at @p FALSE. |
| 265 | */ | 358 | */ |
| 266 | #if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__) | 359 | #if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__) |
| 267 | #define SDC_MMC_SUPPORT FALSE | 360 | #define SDC_MMC_SUPPORT FALSE |
| 268 | #endif | 361 | #endif |
| 269 | 362 | ||
| 270 | /** | 363 | /** |
| @@ -274,7 +367,21 @@ | |||
| 274 | * lower priority, this may slow down the driver a bit however. | 367 | * lower priority, this may slow down the driver a bit however. |
| 275 | */ | 368 | */ |
| 276 | #if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__) | 369 | #if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__) |
| 277 | #define SDC_NICE_WAITING TRUE | 370 | #define SDC_NICE_WAITING TRUE |
| 371 | #endif | ||
| 372 | |||
| 373 | /** | ||
| 374 | * @brief OCR initialization constant for V20 cards. | ||
| 375 | */ | ||
| 376 | #if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__) | ||
| 377 | #define SDC_INIT_OCR_V20 0x50FF8000U | ||
| 378 | #endif | ||
| 379 | |||
| 380 | /** | ||
| 381 | * @brief OCR initialization constant for non-V20 cards. | ||
| 382 | */ | ||
| 383 | #if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__) | ||
| 384 | #define SDC_INIT_OCR 0x80100000U | ||
| 278 | #endif | 385 | #endif |
| 279 | 386 | ||
| 280 | /*===========================================================================*/ | 387 | /*===========================================================================*/ |
| @@ -287,18 +394,18 @@ | |||
| 287 | * default configuration. | 394 | * default configuration. |
| 288 | */ | 395 | */ |
| 289 | #if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__) | 396 | #if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__) |
| 290 | #define SERIAL_DEFAULT_BITRATE 38400 | 397 | #define SERIAL_DEFAULT_BITRATE 38400 |
| 291 | #endif | 398 | #endif |
| 292 | 399 | ||
| 293 | /** | 400 | /** |
| 294 | * @brief Serial buffers size. | 401 | * @brief Serial buffers size. |
| 295 | * @details Configuration parameter, you can change the depth of the queue | 402 | * @details Configuration parameter, you can change the depth of the queue |
| 296 | * buffers depending on the requirements of your application. | 403 | * buffers depending on the requirements of your application. |
| 297 | * @note The default is 64 bytes for both the transmission and receive | 404 | * @note The default is 16 bytes for both the transmission and receive |
| 298 | * buffers. | 405 | * buffers. |
| 299 | */ | 406 | */ |
| 300 | #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) | 407 | #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) |
| 301 | #define SERIAL_BUFFERS_SIZE 128 | 408 | #define SERIAL_BUFFERS_SIZE 128 |
| 302 | #endif | 409 | #endif |
| 303 | 410 | ||
| 304 | /*===========================================================================*/ | 411 | /*===========================================================================*/ |
| @@ -309,11 +416,19 @@ | |||
| 309 | * @brief Serial over USB buffers size. | 416 | * @brief Serial over USB buffers size. |
| 310 | * @details Configuration parameter, the buffer size must be a multiple of | 417 | * @details Configuration parameter, the buffer size must be a multiple of |
| 311 | * the USB data endpoint maximum packet size. | 418 | * the USB data endpoint maximum packet size. |
| 312 | * @note The default is 64 bytes for both the transmission and receive | 419 | * @note The default is 256 bytes for both the transmission and receive |
| 313 | * buffers. | 420 | * buffers. |
| 314 | */ | 421 | */ |
| 315 | #if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__) | 422 | #if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__) |
| 316 | #define SERIAL_USB_BUFFERS_SIZE 1 | 423 | #define SERIAL_USB_BUFFERS_SIZE 1 |
| 424 | #endif | ||
| 425 | |||
| 426 | /** | ||
| 427 | * @brief Serial over USB number of buffers. | ||
| 428 | * @note The default is 2 buffers. | ||
| 429 | */ | ||
| 430 | #if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__) | ||
| 431 | #define SERIAL_USB_BUFFERS_NUMBER 2 | ||
| 317 | #endif | 432 | #endif |
| 318 | 433 | ||
| 319 | /*===========================================================================*/ | 434 | /*===========================================================================*/ |
| @@ -325,15 +440,52 @@ | |||
| 325 | * @note Disabling this option saves both code and data space. | 440 | * @note Disabling this option saves both code and data space. |
| 326 | */ | 441 | */ |
| 327 | #if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__) | 442 | #if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__) |
| 328 | #define SPI_USE_WAIT TRUE | 443 | #define SPI_USE_WAIT TRUE |
| 444 | #endif | ||
| 445 | |||
| 446 | /** | ||
| 447 | * @brief Enables circular transfers APIs. | ||
| 448 | * @note Disabling this option saves both code and data space. | ||
| 449 | */ | ||
| 450 | #if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__) | ||
| 451 | #define SPI_USE_CIRCULAR FALSE | ||
| 329 | #endif | 452 | #endif |
| 330 | 453 | ||
| 454 | |||
| 331 | /** | 455 | /** |
| 332 | * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs. | 456 | * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs. |
| 333 | * @note Disabling this option saves both code and data space. | 457 | * @note Disabling this option saves both code and data space. |
| 334 | */ | 458 | */ |
| 335 | #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | 459 | #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) |
| 336 | #define SPI_USE_MUTUAL_EXCLUSION TRUE | 460 | #define SPI_USE_MUTUAL_EXCLUSION TRUE |
| 461 | #endif | ||
| 462 | |||
| 463 | /** | ||
| 464 | * @brief Handling method for SPI CS line. | ||
| 465 | * @note Disabling this option saves both code and data space. | ||
| 466 | */ | ||
| 467 | #if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__) | ||
| 468 | #define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
| 469 | #endif | ||
| 470 | |||
| 471 | /*===========================================================================*/ | ||
| 472 | /* UART driver related settings. */ | ||
| 473 | /*===========================================================================*/ | ||
| 474 | |||
| 475 | /** | ||
| 476 | * @brief Enables synchronous APIs. | ||
| 477 | * @note Disabling this option saves both code and data space. | ||
| 478 | */ | ||
| 479 | #if !defined(UART_USE_WAIT) || defined(__DOXYGEN__) | ||
| 480 | #define UART_USE_WAIT FALSE | ||
| 481 | #endif | ||
| 482 | |||
| 483 | /** | ||
| 484 | * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs. | ||
| 485 | * @note Disabling this option saves both code and data space. | ||
| 486 | */ | ||
| 487 | #if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 488 | #define UART_USE_MUTUAL_EXCLUSION FALSE | ||
| 337 | #endif | 489 | #endif |
| 338 | 490 | ||
| 339 | /*===========================================================================*/ | 491 | /*===========================================================================*/ |
| @@ -345,9 +497,29 @@ | |||
| 345 | * @note Disabling this option saves both code and data space. | 497 | * @note Disabling this option saves both code and data space. |
| 346 | */ | 498 | */ |
| 347 | #if !defined(USB_USE_WAIT) || defined(__DOXYGEN__) | 499 | #if !defined(USB_USE_WAIT) || defined(__DOXYGEN__) |
| 348 | #define USB_USE_WAIT TRUE | 500 | #define USB_USE_WAIT TRUE |
| 501 | #endif | ||
| 502 | |||
| 503 | /*===========================================================================*/ | ||
| 504 | /* WSPI driver related settings. */ | ||
| 505 | /*===========================================================================*/ | ||
| 506 | |||
| 507 | /** | ||
| 508 | * @brief Enables synchronous APIs. | ||
| 509 | * @note Disabling this option saves both code and data space. | ||
| 510 | */ | ||
| 511 | #if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__) | ||
| 512 | #define WSPI_USE_WAIT TRUE | ||
| 513 | #endif | ||
| 514 | |||
| 515 | /** | ||
| 516 | * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs. | ||
| 517 | * @note Disabling this option saves both code and data space. | ||
| 518 | */ | ||
| 519 | #if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 520 | #define WSPI_USE_MUTUAL_EXCLUSION TRUE | ||
| 349 | #endif | 521 | #endif |
| 350 | 522 | ||
| 351 | #endif /* _HALCONF_H_ */ | 523 | #endif /* HALCONF_H */ |
| 352 | 524 | ||
| 353 | /** @} */ | 525 | /** @} */ |
