|
| 1 | +/* |
| 2 | + ChibiOS - Copyright (C) 2014 Uladzimir Pylinsky aka barthess |
| 3 | + ChibiOS - Copyright (C) 2023..2024 HorrorTroll |
| 4 | + ChibiOS - Copyright (C) 2023..2024 Zhaqian |
| 5 | +
|
| 6 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | + you may not use this file except in compliance with the License. |
| 8 | + You may obtain a copy of the License at |
| 9 | +
|
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | + Unless required by applicable law or agreed to in writing, software |
| 13 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + See the License for the specific language governing permissions and |
| 16 | + limitations under the License. |
| 17 | +*/ |
| 18 | + |
| 19 | +#ifndef HALCONF_COMMUNITY_H |
| 20 | +#define HALCONF_COMMUNITY_H |
| 21 | + |
| 22 | +/** |
| 23 | + * @brief Enables the community overlay. |
| 24 | + */ |
| 25 | +#if !defined(HAL_USE_COMMUNITY) || defined(__DOXYGEN__) |
| 26 | +#define HAL_USE_COMMUNITY TRUE |
| 27 | +#endif |
| 28 | + |
| 29 | +/** |
| 30 | + * @brief Enables the FSMC subsystem. |
| 31 | + */ |
| 32 | +#if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__) |
| 33 | +#define HAL_USE_FSMC FALSE |
| 34 | +#endif |
| 35 | + |
| 36 | +/** |
| 37 | + * @brief Enables the NAND subsystem. |
| 38 | + */ |
| 39 | +#if !defined(HAL_USE_NAND) || defined(__DOXYGEN__) |
| 40 | +#define HAL_USE_NAND FALSE |
| 41 | +#endif |
| 42 | + |
| 43 | +/** |
| 44 | + * @brief Enables the 1-wire subsystem. |
| 45 | + */ |
| 46 | +#if !defined(HAL_USE_ONEWIRE) || defined(__DOXYGEN__) |
| 47 | +#define HAL_USE_ONEWIRE FALSE |
| 48 | +#endif |
| 49 | + |
| 50 | +/** |
| 51 | + * @brief Enables the EICU subsystem. |
| 52 | + */ |
| 53 | +#if !defined(HAL_USE_EICU) || defined(__DOXYGEN__) |
| 54 | +#define HAL_USE_EICU FALSE |
| 55 | +#endif |
| 56 | + |
| 57 | +/** |
| 58 | + * @brief Enables the CRC subsystem. |
| 59 | + */ |
| 60 | +#if !defined(HAL_USE_CRC) || defined(__DOXYGEN__) |
| 61 | +#define HAL_USE_CRC FALSE |
| 62 | +#endif |
| 63 | + |
| 64 | +/** |
| 65 | + * @brief Enables the RNG subsystem. |
| 66 | + */ |
| 67 | +#if !defined(HAL_USE_RNG) || defined(__DOXYGEN__) |
| 68 | +#define HAL_USE_RNG FALSE |
| 69 | +#endif |
| 70 | + |
| 71 | +/** |
| 72 | + * @brief Enables the EEPROM subsystem. |
| 73 | + */ |
| 74 | +#if !defined(HAL_USE_EEPROM) || defined(__DOXYGEN__) |
| 75 | +#define HAL_USE_EEPROM FALSE |
| 76 | +#endif |
| 77 | + |
| 78 | +/** |
| 79 | + * @brief Enables the TIMCAP subsystem. |
| 80 | + */ |
| 81 | +#if !defined(HAL_USE_TIMCAP) || defined(__DOXYGEN__) |
| 82 | +#define HAL_USE_TIMCAP FALSE |
| 83 | +#endif |
| 84 | + |
| 85 | +/** |
| 86 | + * @brief Enables the COMP subsystem. |
| 87 | + */ |
| 88 | +#if !defined(HAL_USE_COMP) || defined(__DOXYGEN__) |
| 89 | +#define HAL_USE_COMP FALSE |
| 90 | +#endif |
| 91 | + |
| 92 | +/** |
| 93 | + * @brief Enables the OPAMP subsystem. |
| 94 | + */ |
| 95 | +#if !defined(HAL_USE_OPAMP) || defined(__DOXYGEN__) |
| 96 | +#define HAL_USE_OPAMP FALSE |
| 97 | +#endif |
| 98 | + |
| 99 | +/** |
| 100 | + * @brief Enables the QEI subsystem. |
| 101 | + */ |
| 102 | +#if !defined(HAL_USE_QEI) || defined(__DOXYGEN__) |
| 103 | +#define HAL_USE_QEI FALSE |
| 104 | +#endif |
| 105 | + |
| 106 | +/** |
| 107 | + * @brief Enables the USBH subsystem. |
| 108 | + */ |
| 109 | +#if !defined(HAL_USE_USBH) || defined(__DOXYGEN__) |
| 110 | +#define HAL_USE_USBH FALSE |
| 111 | +#endif |
| 112 | + |
| 113 | +/** |
| 114 | + * @brief Enables the USB_MSD subsystem. |
| 115 | + */ |
| 116 | +#if !defined(HAL_USE_USB_MSD) || defined(__DOXYGEN__) |
| 117 | +#define HAL_USE_USB_MSD FALSE |
| 118 | +#endif |
| 119 | + |
| 120 | +/*===========================================================================*/ |
| 121 | +/* FSMCNAND driver related settings. */ |
| 122 | +/*===========================================================================*/ |
| 123 | + |
| 124 | +/** |
| 125 | + * @brief Enables the @p nandAcquireBus() and @p nanReleaseBus() APIs. |
| 126 | + * @note Disabling this option saves both code and data space. |
| 127 | + */ |
| 128 | +#if !defined(NAND_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) |
| 129 | +#define NAND_USE_MUTUAL_EXCLUSION TRUE |
| 130 | +#endif |
| 131 | + |
| 132 | +/*===========================================================================*/ |
| 133 | +/* 1-wire driver related settings. */ |
| 134 | +/*===========================================================================*/ |
| 135 | +/** |
| 136 | + * @brief Enables strong pull up feature. |
| 137 | + * @note Disabling this option saves both code and data space. |
| 138 | + */ |
| 139 | +#define ONEWIRE_USE_STRONG_PULLUP FALSE |
| 140 | + |
| 141 | +/** |
| 142 | + * @brief Enables search ROM feature. |
| 143 | + * @note Disabling this option saves both code and data space. |
| 144 | + */ |
| 145 | +#define ONEWIRE_USE_SEARCH_ROM TRUE |
| 146 | + |
| 147 | +/*===========================================================================*/ |
| 148 | +/* QEI driver related settings. */ |
| 149 | +/*===========================================================================*/ |
| 150 | + |
| 151 | +/** |
| 152 | + * @brief Enables discard of overlow |
| 153 | + */ |
| 154 | +#if !defined(QEI_USE_OVERFLOW_DISCARD) || defined(__DOXYGEN__) |
| 155 | +#define QEI_USE_OVERFLOW_DISCARD FALSE |
| 156 | +#endif |
| 157 | + |
| 158 | +/** |
| 159 | + * @brief Enables min max of overlow |
| 160 | + */ |
| 161 | +#if !defined(QEI_USE_OVERFLOW_MINMAX) || defined(__DOXYGEN__) |
| 162 | +#define QEI_USE_OVERFLOW_MINMAX FALSE |
| 163 | +#endif |
| 164 | + |
| 165 | +/*===========================================================================*/ |
| 166 | +/* EEProm driver related settings. */ |
| 167 | +/*===========================================================================*/ |
| 168 | + |
| 169 | +/** |
| 170 | + * @brief Enables 24xx series I2C eeprom device driver. |
| 171 | + * @note Disabling this option saves both code and data space. |
| 172 | + */ |
| 173 | +#define EEPROM_USE_EE24XX FALSE |
| 174 | + /** |
| 175 | + * @brief Enables 25xx series SPI eeprom device driver. |
| 176 | + * @note Disabling this option saves both code and data space. |
| 177 | + */ |
| 178 | +#define EEPROM_USE_EE25XX FALSE |
| 179 | + |
| 180 | +#endif /* HALCONF_COMMUNITY_H */ |
| 181 | + |
| 182 | +/** @} */ |
0 commit comments