RTEMS
Macros
Device Driver Configuration

Macros

#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_EXTRA_DRIVERS
 This configuration option is an initializer define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_ATA_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_IDE_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER
 This configuration option is a boolean feature define. More...
 
#define CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS
 This configuration option is an initializer define. More...
 
#define CONFIGURE_ATA_DRIVER_TASK_PRIORITY
 This configuration option is an integer define. More...
 
#define CONFIGURE_MAXIMUM_DRIVERS
 This configuration option is an integer define. More...
 

Detailed Description

This section describes configuration options related to the device drivers. Note that network device drivers are not covered by the following options.

Macro Definition Documentation

◆ CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER

#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then no Clock Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then a Clock Driver may be initialized during system initialization.
Notes

This configuration parameter is intended to prevent the common user error of using the Hello World example as the baseline for an application and leaving out a clock tick source.

The application shall define exactly one of the following configuration options

otherwise a compile time error in the configuration file will occur.

Definition at line 1226 of file appl-config.h.

◆ CONFIGURE_APPLICATION_EXTRA_DRIVERS

#define CONFIGURE_APPLICATION_EXTRA_DRIVERS

This configuration option is an initializer define.

The value of this configuration option is used to initialize the Device Driver Table.

Default Value
The default value is the empty list.
Value Constraints
The value of this configuration option shall be a list of initializers for structures of type rtems_driver_address_table.
Notes

The value of this configuration option is placed after the entries of other device driver configuration options.

See CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS for an alternative placement of application device driver initializers.

Definition at line 1252 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_ATA_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_ATA_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the ATA Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes

Most BSPs do not include support for an ATA Driver.

If this option is defined and the BSP does not have this device driver, then the user will get a link time error for an undefined symbol.

Definition at line 1274 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the Clock Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes

The Clock Driver is responsible for providing a regular interrupt which invokes a clock tick directive.

The application shall define exactly one of the following configuration options

otherwise a compile time error in the configuration file will occur.

Definition at line 1305 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the Console Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes

The Console Driver is responsible for providing the /dev/console device file. This device is used to initialize the standard input, output, and error file descriptors.

BSPs should be constructed in a manner that allows printk() to work properly without the need for the Console Driver to be configured.

The

configuration options are mutually exclusive.

Definition at line 1339 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the Frame Buffer Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes

Most BSPs do not include support for a Frame Buffer Driver. This is because many boards do not include the required hardware.

If this option is defined and the BSP does not have this device driver, then the user will get a link time error for an undefined symbol.

Definition at line 1362 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_IDE_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_IDE_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the IDE Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes

Most BSPs do not include support for an IDE Driver.

If this option is defined and the BSP does not have this device driver, then the user will get a link time error for an undefined symbol.

Definition at line 1384 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the /dev/null Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes
This device driver is supported by all BSPs.

Definition at line 1401 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the Real-Time Clock Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes

Most BSPs do not include support for a real-time clock (RTC). This is because many boards do not include the required hardware.

If this is defined and the BSP does not have this device driver, then the user will get a link time error for an undefined symbol.

Definition at line 1424 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the Simple Console Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes

This device driver is responsible for providing the /dev/console device file. This device is used to initialize the standard input, output, and error file descriptors.

This device driver reads via getchark().

This device driver writes via rtems_putc().

The Termios framework is not used. There is no support to change device settings, e.g. baud, stop bits, parity, etc.

The

configuration options are mutually exclusive.

Definition at line 1462 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the Simple Task Console Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes

This device driver is responsible for providing the /dev/console device file. This device is used to initialize the standard input, output, and error file descriptors.

This device driver reads via getchark().

This device driver writes into a write buffer. The count of characters written into the write buffer is returned. It might be less than the requested count, in case the write buffer is full. The write is non-blocking and may be called from interrupt context. A dedicated task reads from the write buffer and outputs the characters via rtems_putc(). This task runs with the least important priority. The write buffer size is 2047 characters and it is not configurable.

Use fsync( STDOUT_FILENO ) or fdatasync( STDOUT_FILENO ) to drain the write buffer.

The Termios framework is not used. There is no support to change device settings, e.g. baud, stop bits, parity, etc.

The

configuration options are mutually exclusive.

Definition at line 1509 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the Stub Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes
This device driver simply provides entry points that return successful and is primarily a test fixture. It is supported by all BSPs.

Definition at line 1527 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the Benchmark Timer Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes

The Benchmark Timer Driver is intended for the benchmark tests of the RTEMS Testsuite. Applications should not use this driver.

The application shall define exactly one of the following configuration options

otherwise a compile time error will occur.

Definition at line 1558 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the Watchdog Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes

Most BSPs do not include support for a watchdog device driver. This is because many boards do not include the required hardware.

If this is defined and the BSP does not have this device driver, then the user will get a link time error for an undefined symbol.

Definition at line 1581 of file appl-config.h.

◆ CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER

This configuration option is a boolean feature define.

In case this configuration option is defined, then the /dev/zero Driver is initialized during system initialization.

Default Configuration
If this configuration option is undefined, then the described feature is not enabled.
Notes
This device driver is supported by all BSPs.

Definition at line 1598 of file appl-config.h.

◆ CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS

#define CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS

This configuration option is an initializer define.

The value of this configuration option is used to initialize the Device Driver Table.

Default Value
The default value is the empty list.
Value Constraints
The value of this configuration option shall be a list of initializers for structures of type rtems_driver_address_table.
Notes

The value of this configuration option is placed after the entries defined by CONFIGURE_BSP_PREREQUISITE_DRIVERS and before all other device driver configuration options.

See CONFIGURE_APPLICATION_EXTRA_DRIVERS for an alternative placement of application device driver initializers.

Definition at line 1625 of file appl-config.h.

◆ CONFIGURE_ATA_DRIVER_TASK_PRIORITY

#define CONFIGURE_ATA_DRIVER_TASK_PRIORITY

This configuration option is an integer define.

The value of this configuration option defines the ATA task priority.

Default Value
The default value is 140.
Value Constraints
The value of this configuration option shall be a valid Classic API task priority. The set of valid task priorities is scheduler-specific.
Notes
This configuration option is only evaluated if the configuration option CONFIGURE_APPLICATION_NEEDS_ATA_DRIVER is defined.

Definition at line 1645 of file appl-config.h.

◆ CONFIGURE_MAXIMUM_DRIVERS

#define CONFIGURE_MAXIMUM_DRIVERS

This configuration option is an integer define.

The value of this configuration option defines the number of device drivers.

Default Value

This is computed by default, and is set to the number of statically configured device drivers configured using the following configuration options:

Value Constraints

The value of this configuration option shall satisfy all of the following constraints:

  • It shall be less than or equal to SIZE_MAX.
  • It shall be greater than or equal than the number of statically configured device drivers.
  • It shall be less than or equal to a BSP-specific and application-specific value which depends on the size of the memory available to the application.
Notes
If the application will dynamically install device drivers, then the configuration option value shall be larger than the number of statically configured device drivers.

Definition at line 1716 of file appl-config.h.