System management functions, Error checking, Network support functions – Comtrol eCos User Manual

Page 484: Μitron configuration faq

Advertising
background image

Chapter 32. µITRON API

dlytim must be positive or zero, otherwise E_PAR

return value pointer in

ref_xxx()

is a valid pointer, or E_PAR

params within pk_dalm and pk_dcyc must be valid, or E_PAR

cycact in

act_cyc()

must be valid, or E_PAR

handler must be defined in

ref_xxx()

and

act_cyc()

, or E_NOEXS

parameter pointer must be a good pointer in

get_tim()

and

set_tim()

, otherwise E_PAR is returned

The following conditions are checked for, and can return error codes, regardless of the setting of

CYGSEM_UITRON_BAD_PARAMS_RETURN_ERRORS

:

dly_tsk()

: return code E_RLWAI is returned depending on the reason for terminating the sleep

System Management Functions

These functions are fully supported in this release:

ER

get_ver

(

T_VER *pk_ver )

ER

ref_sys

(

T_RSYS *pk_rsys )

ER

ref_cfg

(

T_RCFG *pk_rcfg )

Note that the information returned by each of these calls may be configured to match the user’s own versioning
system, and the values supplied by the default configuration may be inappropriate.

These functions are not supported in this release:

ER

def_svc

(

FN s_fncd,

T_DSVC *pk_dsvc )

ER

def_exc

(

UINT exckind,

T_DEXC *pk_dexc )

Error checking

The

following

conditions

are

only

checked

for,

and

only

return

errors

if

CYGSEM_UITRON_BAD_PARAMS_RETURN_ERRORS

is enabled:

return value pointer in all calls is a valid pointer, or E_PAR

380

Advertising