ChibiOS/HAL
6.1.0
|
HAL Configuration. More...
HAL Configuration.
The file halconf.h
contains the high level settings for all the drivers supported by the HAL. The low level, platform dependent, settings are contained in the mcuconf.h
file instead and are describe in the various platforms reference manuals.
Macros | |
#define | HAL_USE_PAL TRUE |
Enables the PAL subsystem. More... | |
#define | HAL_USE_ADC TRUE |
Enables the ADC subsystem. More... | |
#define | HAL_USE_CAN TRUE |
Enables the CAN subsystem. More... | |
#define | HAL_USE_CRY TRUE |
Enables the cryptographic subsystem. More... | |
#define | HAL_USE_DAC TRUE |
Enables the DAC subsystem. More... | |
#define | HAL_USE_EXT TRUE |
Enables the EXT subsystem. More... | |
#define | HAL_USE_GPT TRUE |
Enables the GPT subsystem. More... | |
#define | HAL_USE_I2C TRUE |
Enables the I2C subsystem. More... | |
#define | HAL_USE_I2S TRUE |
Enables the I2S subsystem. More... | |
#define | HAL_USE_ICU TRUE |
Enables the ICU subsystem. More... | |
#define | HAL_USE_MAC TRUE |
Enables the MAC subsystem. More... | |
#define | HAL_USE_MMC_SPI TRUE |
Enables the MMC_SPI subsystem. More... | |
#define | HAL_USE_PWM TRUE |
Enables the PWM subsystem. More... | |
#define | HAL_USE_QSPI TRUE |
Enables the QSPI subsystem. More... | |
#define | HAL_USE_RTC TRUE |
Enables the RTC subsystem. More... | |
#define | HAL_USE_SDC TRUE |
Enables the SDC subsystem. More... | |
#define | HAL_USE_SERIAL TRUE |
Enables the SERIAL subsystem. More... | |
#define | HAL_USE_SERIAL_USB TRUE |
Enables the SERIAL over USB subsystem. More... | |
#define | HAL_USE_SPI TRUE |
Enables the SPI subsystem. More... | |
#define | HAL_USE_UART TRUE |
Enables the UART subsystem. More... | |
#define | HAL_USE_USB TRUE |
Enables the USB subsystem. More... | |
#define | HAL_USE_WDG TRUE |
Enables the WDG subsystem. More... | |
#define | PAL_USE_CALLBACKS FALSE |
Enables synchronous APIs. More... | |
#define | PAL_USE_WAIT FALSE |
Enables synchronous APIs. More... | |
#define | ADC_USE_WAIT TRUE |
Enables synchronous APIs. More... | |
#define | ADC_USE_MUTUAL_EXCLUSION TRUE |
Enables the adcAcquireBus() and adcReleaseBus() APIs. More... | |
#define | CAN_USE_SLEEP_MODE TRUE |
Sleep mode related APIs inclusion switch. More... | |
#define | CAN_ENFORCE_USE_CALLBACKS FALSE |
Enforces the driver to use direct callbacks rather than OSAL events. More... | |
#define | HAL_CRY_USE_FALLBACK FALSE |
Enables the SW fall-back of the cryptographic driver. More... | |
#define | HAL_CRY_ENFORCE_FALLBACK FALSE |
Makes the driver forcibly use the fall-back implementations. More... | |
#define | DAC_USE_WAIT TRUE |
Enables synchronous APIs. More... | |
#define | DAC_USE_MUTUAL_EXCLUSION TRUE |
Enables the dacAcquireBus() and dacReleaseBus() APIs. More... | |
#define | I2C_USE_MUTUAL_EXCLUSION TRUE |
Enables the mutual exclusion APIs on the I2C bus. More... | |
#define | MAC_USE_ZERO_COPY TRUE |
Enables the zero-copy API. More... | |
#define | MAC_USE_EVENTS TRUE |
Enables an event sources for incoming packets. More... | |
#define | MMC_NICE_WAITING TRUE |
Delays insertions. More... | |
#define | QSPI_USE_WAIT TRUE |
Enables synchronous APIs. More... | |
#define | QSPI_USE_MUTUAL_EXCLUSION TRUE |
Enables the qspiAcquireBus() and qspiReleaseBus() APIs. More... | |
#define | SDC_INIT_RETRY 100 |
Number of initialization attempts before rejecting the card. More... | |
#define | SDC_MMC_SUPPORT TRUE |
Include support for MMC cards. More... | |
#define | SDC_NICE_WAITING TRUE |
Delays insertions. More... | |
#define | SDC_INIT_OCR_V20 0x50FF8000U |
OCR initialization constant for V20 cards. More... | |
#define | SDC_INIT_OCR 0x80100000U |
OCR initialization constant for non-V20 cards. More... | |
#define | SERIAL_DEFAULT_BITRATE 38400 |
Default bit rate. More... | |
#define | SERIAL_BUFFERS_SIZE 16 |
Serial buffers size. More... | |
#define | SERIAL_USB_BUFFERS_SIZE 256 |
Serial over USB buffers size. More... | |
#define | SERIAL_USB_BUFFERS_NUMBER 2 |
Serial over USB number of buffers. More... | |
#define | SPI_USE_WAIT TRUE |
Enables synchronous APIs. More... | |
#define | SPI_USE_CIRCULAR FALSE |
Enables circular transfers APIs. More... | |
#define | SPI_USE_MUTUAL_EXCLUSION TRUE |
Enables the spiAcquireBus() and spiReleaseBus() APIs. More... | |
#define | SPI_SELECT_MODE SPI_SELECT_MODE_PAD |
Handling method for SPI CS line. More... | |
#define | UART_USE_WAIT TRUE |
Enables synchronous APIs. More... | |
#define | UART_USE_MUTUAL_EXCLUSION TRUE |
Enables the uartAcquireBus() and uartReleaseBus() APIs. More... | |
#define | USB_USE_WAIT TRUE |
Enables synchronous APIs. More... | |
#define HAL_USE_CRY TRUE |
#define HAL_USE_MMC_SPI TRUE |
#define HAL_USE_SERIAL_USB TRUE |
#define PAL_USE_CALLBACKS FALSE |
#define PAL_USE_WAIT FALSE |
#define ADC_USE_WAIT TRUE |
#define ADC_USE_MUTUAL_EXCLUSION TRUE |
Enables the adcAcquireBus()
and adcReleaseBus()
APIs.
#define CAN_USE_SLEEP_MODE TRUE |
#define CAN_ENFORCE_USE_CALLBACKS FALSE |
#define HAL_CRY_USE_FALLBACK FALSE |
#define HAL_CRY_ENFORCE_FALLBACK FALSE |
#define DAC_USE_WAIT TRUE |
#define DAC_USE_MUTUAL_EXCLUSION TRUE |
Enables the dacAcquireBus()
and dacReleaseBus()
APIs.
#define I2C_USE_MUTUAL_EXCLUSION TRUE |
#define MAC_USE_EVENTS TRUE |
#define MMC_NICE_WAITING TRUE |
Delays insertions.
If enabled this options inserts delays into the MMC waiting routines releasing some extra CPU time for the threads with lower priority, this may slow down the driver a bit however. This option is recommended also if the SPI driver does not use a DMA channel and heavily loads the CPU.
#define QSPI_USE_WAIT TRUE |
#define QSPI_USE_MUTUAL_EXCLUSION TRUE |
Enables the qspiAcquireBus()
and qspiReleaseBus()
APIs.
#define SDC_INIT_RETRY 100 |
#define SDC_MMC_SUPPORT TRUE |
#define SDC_NICE_WAITING TRUE |
#define SDC_INIT_OCR_V20 0x50FF8000U |
#define SDC_INIT_OCR 0x80100000U |
#define SERIAL_DEFAULT_BITRATE 38400 |
#define SERIAL_BUFFERS_SIZE 16 |
#define SERIAL_USB_BUFFERS_SIZE 256 |
#define SERIAL_USB_BUFFERS_NUMBER 2 |
#define SPI_USE_WAIT TRUE |
#define SPI_USE_CIRCULAR FALSE |
#define SPI_USE_MUTUAL_EXCLUSION TRUE |
Enables the spiAcquireBus()
and spiReleaseBus()
APIs.
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD |
#define UART_USE_WAIT TRUE |
#define UART_USE_MUTUAL_EXCLUSION TRUE |
Enables the uartAcquireBus()
and uartReleaseBus()
APIs.