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

# Option: NULL is a good pointer

#### Macro name

CYGSEM_UITRON_PARAMS_NULL_IS_GOOD_PTR

#### Type

Boolean

#### Description

uITRON deliberately defines the constant NADR (-1) for use as an invalid memory address. The value -1 is chosen to allow working in microcontrollers which have real memory at address zero, the traditional "C" NULL pointer. By default, uITRON functions check for both NULL and NADR as bad addresses: set this option to prevent checking for NULL and allow pointers to address zero to be used.

Prev | Home | Next
Option: Return Error Codes for Bad Params | Up | Component: Semaphores