eCosTM Reference Manual
Prev | Chapter 18. Package: eCos uITRON Compatibility Layer | Next

# Component: Semaphores

#### Macro name

CYGPKG_UITRON_SEMAS

#### Type

Boolean

#### Description

uITRON Semaphore objects are used with functions named xxx_sem(); they support traditional semaphore semantics.

## Option: Number of semaphores

#### Macro name

CYGNUM_UITRON_SEMAS

#### Type

Count

#### Description

The number of uITRON semaphores present in the system. Valid semaphore object IDs will range from 1 to this value.

## Component: Support create and delete

#### Macro name

CYGPKG_UITRON_SEMAS_CREATE_DELETE

#### Type

Boolean

#### Description

Support semaphore create and delete operations (cre_sem, del_sem). Otherwise all semaphores are created, up to the number specified above.

### Option: Number of semaphores created initially

#### Macro name

CYGNUM_UITRON_SEMAS_INITIALLY

#### Type

Count

#### Description

The number of uITRON semaphores initially created. This number should not be more than the number of semaphores in the system, though setting it to a large value to mean "all" is acceptable. Initially, only semaphores numbered 1 to this number exist; higher numbered ones must be created before use. It is only useful to initialize semaphores up to this number; higher numbered ones must be created in order to use them, and so they will be re-initialized.

## Component: Initialize semaphore counts

#### Macro name

CYGPKG_UITRON_SEMAS_ARE_INITIALIZED

#### Type

Boolean

#### Description

Initialize semaphores to specific count values. Otherwise semaphores are initialized with the count set to zero.

### Option: Static initializers

#### Macro name

CYGDAT_UITRON_SEMA_INITIALIZERS

#### Type

Multiline

#### Description

A list of initializers separated by commas, one per line. An initializer is "CYG_UIT_SEMA(INITIAL-COUNT)" or "CYG_UIT_SEMA_NOEXS" for slots above the number initially to be created, when create and delete operations are supported. Note: this option is invoked in the context of a C++ array initializer, between curly brackets. Ensure that the number of initializers here exactly matches the total number of semaphores specified.

Prev | Home | Next
Option: NULL is a good pointer | Up | Component: Mailboxes