You can modify the default initialization values of the Device VIs using compiler -D macros. Enter the compiler -D macros in the Additional compiler flags text box, located on the Advanced tab of the Application Information category in the Build Specification Properties dialog box. To enter a compiler -D option, enter -D followed by the macro name, an equals sign, and the value you want. For example, –D VDK_NUM_DEVICES=5. The compiler -D options affect how the Blackfin device operates.
The following table lists the available -D compiler macros and default values.
| Compiler Macro | Description | Default Value |
|---|---|---|
| VDK_NUM_DEVICES | Sets the maximum number of device drivers you can open simultaneously. | 10 |
| VDK_NUM_DMA_CHANNELS | Sets the maximum number of DMA channels you can open simultaneously. | 4 |
| VDK_NUM_DBC_ENTRIES | Specifies the maximum number of queue entries. Deferred callbacks are used instead of live callbacks when the number of entries is greater than zero. | 0 |
| VDK_NUM_INT_HANDLERS | Specifies the number of secondary handlers the Blackfin application uses. | 3 |