Paparazzi UAS  v5.15_devel-50-g4d7045d
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
HAL_CONF

Macros

#define HAL_USE_TM   FALSE
 Enables the TM subsystem. More...
 
#define HAL_USE_PAL   TRUE
 Enables the PAL subsystem. More...
 
#define HAL_USE_ADC   FALSE
 Enables the ADC subsystem. More...
 
#define HAL_USE_CAN   FALSE
 Enables the CAN subsystem. More...
 
#define HAL_USE_DAC   FALSE
 Enables the DAC subsystem. More...
 
#define HAL_USE_EXT   FALSE
 Enables the EXT subsystem. More...
 
#define HAL_USE_GPT   FALSE
 Enables the GPT subsystem. More...
 
#define HAL_USE_I2C   FALSE
 Enables the I2C subsystem. More...
 
#define HAL_USE_I2S   FALSE
 Enables the I2S subsystem. More...
 
#define HAL_USE_ICU   FALSE
 Enables the ICU subsystem. More...
 
#define HAL_USE_MAC   FALSE
 Enables the MAC subsystem. More...
 
#define HAL_USE_MMC_SPI   FALSE
 Enables the MMC_SPI subsystem. More...
 
#define HAL_USE_PWM   TRUE
 Enables the PWM subsystem. More...
 
#define HAL_USE_RTC   FALSE
 Enables the RTC subsystem. More...
 
#define HAL_USE_SDC   FALSE
 Enables the SDC subsystem. More...
 
#define HAL_USE_SERIAL   FALSE
 Enables the SERIAL subsystem. More...
 
#define HAL_USE_SERIAL_USB   FALSE
 Enables the SERIAL over USB subsystem. More...
 
#define HAL_USE_SPI   FALSE
 Enables the SPI subsystem. More...
 
#define HAL_USE_UART   FALSE
 Enables the UART subsystem. More...
 
#define HAL_USE_USB   FALSE
 Enables the USB subsystem. More...
 
#define HAL_USE_WDG   FALSE
 Enables the WDG subsystem. 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 I2C_USE_MUTUAL_EXCLUSION   TRUE
 Enables the mutual exclusion APIs on the I2C bus. More...
 
#define MAC_USE_ZERO_COPY   FALSE
 Enables an event sources for incoming packets. More...
 
#define MAC_USE_EVENTS   TRUE
 Enables an event sources for incoming packets. More...
 
#define MMC_NICE_WAITING   TRUE
 Delays insertions. More...
 
#define SDC_INIT_RETRY   100
 Number of initialization attempts before rejecting the card. More...
 
#define SDC_MMC_SUPPORT   FALSE
 Include support for MMC cards. More...
 
#define SDC_NICE_WAITING   TRUE
 Delays insertions. More...
 
#define SERIAL_DEFAULT_BITRATE   57600
 Default bit rate. More...
 
#define SERIAL_BUFFERS_SIZE   1024
 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_MUTUAL_EXCLUSION   TRUE
 Enables the spiAcquireBus() and spiReleaseBus() APIs. More...
 
#define UART_USE_WAIT   FALSE
 Enables synchronous APIs. More...
 
#define UART_USE_MUTUAL_EXCLUSION   FALSE
 Enables the uartAcquireBus() and uartReleaseBus() APIs. More...
 
#define USB_USE_WAIT   FALSE
 Enables synchronous APIs. More...
 

Detailed Description

Macro Definition Documentation

#define ADC_USE_MUTUAL_EXCLUSION   TRUE

Enables the adcAcquireBus() and adcReleaseBus() APIs.

Note
Disabling this option saves both code and data space.

Definition at line 247 of file halconf.h.

#define ADC_USE_WAIT   TRUE

Enables synchronous APIs.

Note
Disabling this option saves both code and data space.

Definition at line 239 of file halconf.h.

#define CAN_USE_SLEEP_MODE   TRUE

Sleep mode related APIs inclusion switch.

Definition at line 258 of file halconf.h.

#define HAL_USE_ADC   FALSE

Enables the ADC subsystem.

Definition at line 63 of file halconf.h.

#define HAL_USE_CAN   FALSE

Enables the CAN subsystem.

Definition at line 74 of file halconf.h.

#define HAL_USE_DAC   FALSE

Enables the DAC subsystem.

Definition at line 86 of file halconf.h.

#define HAL_USE_EXT   FALSE

Enables the EXT subsystem.

Definition at line 94 of file halconf.h.

#define HAL_USE_GPT   FALSE

Enables the GPT subsystem.

Definition at line 101 of file halconf.h.

#define HAL_USE_I2C   FALSE

Enables the I2C subsystem.

Definition at line 111 of file halconf.h.

#define HAL_USE_I2S   FALSE

Enables the I2S subsystem.

Definition at line 119 of file halconf.h.

#define HAL_USE_ICU   FALSE

Enables the ICU subsystem.

NOTE: ICU is needed form PPM and Spektrum radio Maybe also for Superbit. Leave default TRUE for now Might have to be changed to ifdef RADIO_CONTROL_TYPE_PPM then TRUE, otherwise FALSE

Definition at line 133 of file halconf.h.

#define HAL_USE_MAC   FALSE

Enables the MAC subsystem.

Definition at line 141 of file halconf.h.

#define HAL_USE_MMC_SPI   FALSE

Enables the MMC_SPI subsystem.

Definition at line 148 of file halconf.h.

#define HAL_USE_PAL   TRUE

Enables the PAL subsystem.

Definition at line 53 of file halconf.h.

#define HAL_USE_PWM   TRUE

Enables the PWM subsystem.

Definition at line 155 of file halconf.h.

#define HAL_USE_RTC   FALSE

Enables the RTC subsystem.

Definition at line 162 of file halconf.h.

#define HAL_USE_SDC   FALSE

Enables the SDC subsystem.

Definition at line 169 of file halconf.h.

#define HAL_USE_SERIAL   FALSE

Enables the SERIAL subsystem.

Definition at line 179 of file halconf.h.

#define HAL_USE_SERIAL_USB   FALSE

Enables the SERIAL over USB subsystem.

Definition at line 190 of file halconf.h.

#define HAL_USE_SPI   FALSE

Enables the SPI subsystem.

Definition at line 201 of file halconf.h.

#define HAL_USE_TM   FALSE

Enables the TM subsystem.

Definition at line 46 of file halconf.h.

#define HAL_USE_UART   FALSE

Enables the UART subsystem.

Definition at line 209 of file halconf.h.

#define HAL_USE_USB   FALSE

Enables the USB subsystem.

Definition at line 219 of file halconf.h.

#define HAL_USE_WDG   FALSE

Enables the WDG subsystem.

Definition at line 227 of file halconf.h.

#define I2C_USE_MUTUAL_EXCLUSION   TRUE

Enables the mutual exclusion APIs on the I2C bus.

Definition at line 269 of file halconf.h.

#define MAC_USE_EVENTS   TRUE

Enables an event sources for incoming packets.

Definition at line 287 of file halconf.h.

#define MAC_USE_ZERO_COPY   FALSE

Enables an event sources for incoming packets.

Definition at line 280 of file halconf.h.

#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.

Definition at line 303 of file halconf.h.

#define SDC_INIT_RETRY   100

Number of initialization attempts before rejecting the card.

Note
Attempts are performed at 10mS intervals.

Definition at line 315 of file halconf.h.

#define SDC_MMC_SUPPORT   FALSE

Include support for MMC cards.

Note
MMC support is not yet implemented so this option must be kept at FALSE.

Definition at line 324 of file halconf.h.

#define SDC_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.

Definition at line 334 of file halconf.h.

#define SERIAL_BUFFERS_SIZE   1024

Serial buffers size.

Configuration parameter, you can change the depth of the queue buffers depending on the requirements of your application.

Note
The default is 64 bytes for both the transmission and receive buffers.

Definition at line 358 of file halconf.h.

#define SERIAL_DEFAULT_BITRATE   57600

Default bit rate.

Configuration parameter, this is the baud rate selected for the default configuration.

Definition at line 347 of file halconf.h.

#define SERIAL_USB_BUFFERS_NUMBER   2

Serial over USB number of buffers.

Note
The default is 2 buffers.

Definition at line 381 of file halconf.h.

#define SERIAL_USB_BUFFERS_SIZE   256

Serial over USB buffers size.

Configuration parameter, the buffer size must be a multiple of the USB data endpoint maximum packet size.

Note
The default is 256 bytes for both the transmission and receive buffers.

Definition at line 373 of file halconf.h.

#define SPI_USE_MUTUAL_EXCLUSION   TRUE

Enables the spiAcquireBus() and spiReleaseBus() APIs.

Note
Disabling this option saves both code and data space.

Definition at line 401 of file halconf.h.

#define SPI_USE_WAIT   TRUE

Enables synchronous APIs.

Note
Disabling this option saves both code and data space.

Definition at line 393 of file halconf.h.

#define UART_USE_MUTUAL_EXCLUSION   FALSE

Enables the uartAcquireBus() and uartReleaseBus() APIs.

Note
Disabling this option saves both code and data space.

Definition at line 421 of file halconf.h.

#define UART_USE_WAIT   FALSE

Enables synchronous APIs.

Note
Disabling this option saves both code and data space.

Definition at line 413 of file halconf.h.

#define USB_USE_WAIT   FALSE

Enables synchronous APIs.

Note
Disabling this option saves both code and data space.

Definition at line 433 of file halconf.h.