123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525 |
- #ifndef HALCONF_H
- #define HALCONF_H
- #define _CHIBIOS_HAL_CONF_
- #define _CHIBIOS_HAL_CONF_VER_7_0_
- #include "mcuconf.h"
- #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
- #define HAL_USE_PAL TRUE
- #endif
- #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
- #define HAL_USE_ADC FALSE
- #endif
- #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
- #define HAL_USE_CAN FALSE
- #endif
- #if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
- #define HAL_USE_CRY FALSE
- #endif
- #if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
- #define HAL_USE_DAC FALSE
- #endif
- #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
- #define HAL_USE_GPT FALSE
- #endif
- #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
- #define HAL_USE_I2C FALSE
- #endif
- #if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
- #define HAL_USE_I2S FALSE
- #endif
- #if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
- #define HAL_USE_ICU FALSE
- #endif
- #if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
- #define HAL_USE_MAC FALSE
- #endif
- #if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
- #define HAL_USE_MMC_SPI FALSE
- #endif
- #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
- #define HAL_USE_PWM FALSE
- #endif
- #if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
- #define HAL_USE_RTC TRUE
- #endif
- #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
- #define HAL_USE_SDC FALSE
- #endif
- #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
- #define HAL_USE_SERIAL FALSE
- #endif
- #if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
- #define HAL_USE_SERIAL_USB FALSE
- #endif
- #if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
- #define HAL_USE_SIO FALSE
- #endif
- #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
- #define HAL_USE_SPI FALSE
- #endif
- #if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
- #define HAL_USE_TRNG FALSE
- #endif
- #if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
- #define HAL_USE_UART FALSE
- #endif
- #if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
- #define HAL_USE_USB FALSE
- #endif
- #if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
- #define HAL_USE_WDG FALSE
- #endif
- #if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
- #define HAL_USE_WSPI FALSE
- #endif
- #if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
- #define PAL_USE_CALLBACKS FALSE
- #endif
- #if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
- #define PAL_USE_WAIT FALSE
- #endif
- #if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
- #define ADC_USE_WAIT TRUE
- #endif
- #if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
- #define ADC_USE_MUTUAL_EXCLUSION TRUE
- #endif
- #if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
- #define CAN_USE_SLEEP_MODE TRUE
- #endif
- #if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
- #define CAN_ENFORCE_USE_CALLBACKS FALSE
- #endif
- #if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
- #define HAL_CRY_USE_FALLBACK FALSE
- #endif
- #if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
- #define HAL_CRY_ENFORCE_FALLBACK FALSE
- #endif
- #if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__)
- #define DAC_USE_WAIT TRUE
- #endif
- #if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
- #define DAC_USE_MUTUAL_EXCLUSION TRUE
- #endif
- #if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
- #define I2C_USE_MUTUAL_EXCLUSION TRUE
- #endif
- #if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
- #define MAC_USE_ZERO_COPY FALSE
- #endif
- #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
- #define MAC_USE_EVENTS TRUE
- #endif
- #if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
- #define MMC_NICE_WAITING TRUE
- #endif
- #if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
- #define SDC_INIT_RETRY 100
- #endif
- #if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
- #define SDC_MMC_SUPPORT FALSE
- #endif
- #if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
- #define SDC_NICE_WAITING TRUE
- #endif
- #if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
- #define SDC_INIT_OCR_V20 0x50FF8000U
- #endif
- #if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
- #define SDC_INIT_OCR 0x80100000U
- #endif
- #if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
- #define SERIAL_DEFAULT_BITRATE 38400
- #endif
- #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
- #define SERIAL_BUFFERS_SIZE 16
- #endif
- #if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
- #define SERIAL_USB_BUFFERS_SIZE 256
- #endif
- #if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
- #define SERIAL_USB_BUFFERS_NUMBER 2
- #endif
- #if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
- #define SPI_USE_WAIT TRUE
- #endif
- #if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
- #define SPI_USE_CIRCULAR FALSE
- #endif
- #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
- #define SPI_USE_MUTUAL_EXCLUSION TRUE
- #endif
- #if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
- #define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
- #endif
- #if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
- #define UART_USE_WAIT FALSE
- #endif
- #if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
- #define UART_USE_MUTUAL_EXCLUSION FALSE
- #endif
- #if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
- #define USB_USE_WAIT FALSE
- #endif
- #if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__)
- #define WSPI_USE_WAIT TRUE
- #endif
- #if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
- #define WSPI_USE_MUTUAL_EXCLUSION TRUE
- #endif
- #endif /* HALCONF_H */
|