02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6<br />

Components<br />

in a single project. In the project facility, they are represented by the checkbox icon,<br />

as shown in Figure 6-1.<br />

Prior to Tornado 2.0, there were #ifdef/#else constructs that implemented the<br />

same feature. In this example from Tornado 1.0.1, the user has a choice of the<br />

timestamp device to use with WindView:<br />

#ifdef INCLUDE_USER_TIMESTAMP<br />

... /* user timestamp driver */<br />

#elif defined(INCLUDE_TIMESTAMP)<br />

... /* system timestamp driver */<br />

#else<br />

... /* DEFAULT: sequential timestamp driver */<br />

#endif<br />

6<br />

Selection information, like that for folders, is for user presentation only. It is not<br />

related to initialization group hierarchy, and thereby the startup sequence.<br />

Selections contain one or more components only.<br />

Selections behave like folders, except they add a count for a range of available<br />

components; for example, a selection containing three components might tell the<br />

user only one can be configured at a time, or perhaps two of three. Because of the<br />

count, selections do not contain folders or other selections; nor do they have<br />

parameter or initialization group objects associated with them.<br />

The following properties describe a selection:<br />

NAME<br />

A readable name, the one that appears next to the selection icon in the project<br />

facility component hierarchy.<br />

SYNOPSIS<br />

A brief description of the selection.<br />

COUNT<br />

Set a minimum and maximum count from available options.<br />

CHILDREN<br />

Components from which to select.<br />

DEFAULTS<br />

The default component(s), depending on the count.<br />

119

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!