MotorController
Macros
HAL_CONF

Macros

#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   TRUE
 Enables the EXT subsystem. More...
 
#define HAL_USE_GPT   FALSE
 Enables the GPT subsystem. More...
 
#define HAL_USE_I2C   TRUE
 Enables the I2C subsystem. More...
 
#define HAL_USE_I2C_SLAVE   TRUE
 Enables the I2C slave 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   FALSE
 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   FALSE
 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   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_MUTUAL_EXCLUSION   FALSE
 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

§ ADC_USE_MUTUAL_EXCLUSION

#define ADC_USE_MUTUAL_EXCLUSION   FALSE

Enables the adcAcquireBus() and adcReleaseBus() APIs.

Note
Disabling this option saves both code and data space.

Definition at line 197 of file halconf.h.

§ ADC_USE_WAIT

#define ADC_USE_WAIT   TRUE

Enables synchronous APIs.

Note
Disabling this option saves both code and data space.

Definition at line 189 of file halconf.h.

§ CAN_USE_SLEEP_MODE

#define CAN_USE_SLEEP_MODE   TRUE

Sleep mode related APIs inclusion switch.

Definition at line 208 of file halconf.h.

§ HAL_USE_ADC

#define HAL_USE_ADC   FALSE

Enables the ADC subsystem.

Definition at line 44 of file halconf.h.

§ HAL_USE_CAN

#define HAL_USE_CAN   FALSE

Enables the CAN subsystem.

Definition at line 51 of file halconf.h.

§ HAL_USE_DAC

#define HAL_USE_DAC   FALSE

Enables the DAC subsystem.

Definition at line 58 of file halconf.h.

§ HAL_USE_EXT

#define HAL_USE_EXT   TRUE

Enables the EXT subsystem.

Definition at line 65 of file halconf.h.

§ HAL_USE_GPT

#define HAL_USE_GPT   FALSE

Enables the GPT subsystem.

Definition at line 72 of file halconf.h.

§ HAL_USE_I2C

#define HAL_USE_I2C   TRUE

Enables the I2C subsystem.

Definition at line 79 of file halconf.h.

§ HAL_USE_I2C_SLAVE

#define HAL_USE_I2C_SLAVE   TRUE

Enables the I2C slave subsystem.

Definition at line 86 of file halconf.h.

§ HAL_USE_I2S

#define HAL_USE_I2S   FALSE

Enables the I2S subsystem.

Definition at line 93 of file halconf.h.

§ HAL_USE_ICU

#define HAL_USE_ICU   FALSE

Enables the ICU subsystem.

Definition at line 100 of file halconf.h.

§ HAL_USE_MAC

#define HAL_USE_MAC   FALSE

Enables the MAC subsystem.

Definition at line 107 of file halconf.h.

§ HAL_USE_MMC_SPI

#define HAL_USE_MMC_SPI   FALSE

Enables the MMC_SPI subsystem.

Definition at line 114 of file halconf.h.

§ HAL_USE_PAL

#define HAL_USE_PAL   TRUE

Enables the PAL subsystem.

Definition at line 37 of file halconf.h.

§ HAL_USE_PWM

#define HAL_USE_PWM   TRUE

Enables the PWM subsystem.

Definition at line 121 of file halconf.h.

§ HAL_USE_RTC

#define HAL_USE_RTC   FALSE

Enables the RTC subsystem.

Definition at line 128 of file halconf.h.

§ HAL_USE_SDC

#define HAL_USE_SDC   FALSE

Enables the SDC subsystem.

Definition at line 135 of file halconf.h.

§ HAL_USE_SERIAL

#define HAL_USE_SERIAL   FALSE

Enables the SERIAL subsystem.

Definition at line 142 of file halconf.h.

§ HAL_USE_SERIAL_USB

#define HAL_USE_SERIAL_USB   FALSE

Enables the SERIAL over USB subsystem.

Definition at line 149 of file halconf.h.

§ HAL_USE_SPI

#define HAL_USE_SPI   FALSE

Enables the SPI subsystem.

Definition at line 156 of file halconf.h.

§ HAL_USE_UART

#define HAL_USE_UART   FALSE

Enables the UART subsystem.

Definition at line 163 of file halconf.h.

§ HAL_USE_USB

#define HAL_USE_USB   FALSE

Enables the USB subsystem.

Definition at line 170 of file halconf.h.

§ HAL_USE_WDG

#define HAL_USE_WDG   FALSE

Enables the WDG subsystem.

Definition at line 177 of file halconf.h.

§ I2C_USE_MUTUAL_EXCLUSION

#define I2C_USE_MUTUAL_EXCLUSION   FALSE

Enables the mutual exclusion APIs on the I2C bus.

Definition at line 219 of file halconf.h.

§ MAC_USE_EVENTS

#define MAC_USE_EVENTS   TRUE

Enables an event sources for incoming packets.

Definition at line 237 of file halconf.h.

§ MAC_USE_ZERO_COPY

#define MAC_USE_ZERO_COPY   FALSE

Enables an event sources for incoming packets.

Definition at line 230 of file halconf.h.

§ MMC_NICE_WAITING

#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 253 of file halconf.h.

§ SDC_INIT_RETRY

#define SDC_INIT_RETRY   100

Number of initialization attempts before rejecting the card.

Note
Attempts are performed at 10mS intervals.

Definition at line 265 of file halconf.h.

§ SDC_MMC_SUPPORT

#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 274 of file halconf.h.

§ SDC_NICE_WAITING

#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 284 of file halconf.h.

§ SERIAL_BUFFERS_SIZE

#define SERIAL_BUFFERS_SIZE   16

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 16 bytes for both the transmission and receive buffers.

Definition at line 308 of file halconf.h.

§ SERIAL_DEFAULT_BITRATE

#define SERIAL_DEFAULT_BITRATE   38400

Default bit rate.

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

Definition at line 297 of file halconf.h.

§ SERIAL_USB_BUFFERS_NUMBER

#define SERIAL_USB_BUFFERS_NUMBER   2

Serial over USB number of buffers.

Note
The default is 2 buffers.

Definition at line 331 of file halconf.h.

§ SERIAL_USB_BUFFERS_SIZE

#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 323 of file halconf.h.

§ SPI_USE_MUTUAL_EXCLUSION

#define SPI_USE_MUTUAL_EXCLUSION   FALSE

Enables the spiAcquireBus() and spiReleaseBus() APIs.

Note
Disabling this option saves both code and data space.

Definition at line 351 of file halconf.h.

§ SPI_USE_WAIT

#define SPI_USE_WAIT   TRUE

Enables synchronous APIs.

Note
Disabling this option saves both code and data space.

Definition at line 343 of file halconf.h.

§ UART_USE_MUTUAL_EXCLUSION

#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 371 of file halconf.h.

§ UART_USE_WAIT

#define UART_USE_WAIT   FALSE

Enables synchronous APIs.

Note
Disabling this option saves both code and data space.

Definition at line 363 of file halconf.h.

§ USB_USE_WAIT

#define USB_USE_WAIT   FALSE

Enables synchronous APIs.

Note
Disabling this option saves both code and data space.

Definition at line 383 of file halconf.h.