beautypg.com

Echelon Neuron User Manual

Page 82

background image

74

Neuron C Compiler Errors (NCC)

NCC#

Description

223

Improper function definition - missing parameter list [NCC#223]

This message generally results from a syntax error of a specific kind. The

compiler's syntax-directed parser is fooled by the error into thinking there
is a function definition in progress, but the expected parameter list, in

parentheses, which follows a function definition, is not found. For example:

static stuff i; // 'stuff' not defined

When a situation such as this arises, the compiler assumes 'stuff' is a
function name, since it has not been previously defined. This results in a

syntax error when 'i' is then read, since a function definition is supposed to

be followed by a parameter list.

224

Improper initializer format [NCC#224]

A set of initializers in braces has too many levels of braces, or is otherwise
incorrectly formulated. Initializers of aggregates (arrays, structures, or

unions) should have a set of braces for each level of aggregate, but

individual values should not have their own braces.

225

Cannot set array bound from initializers [NCC#225]

The C language provides two methods of specifying the bounds of an array.

The first method, explicit bounds, uses a constant expression in brackets

following the array name. The second method, implicit bounds, uses the
number of initializers in the initializer list to automatically set the array

bounds. This method indicates a problem in the initializer list such that

the array bound cannot be automatically set.

226

I/O object requires 'master' or 'slave' [NCC#226]

The neurowire I/O object being declared must have either master or slave
keywords after the neurowire keyword.

227

Cannot have a 'select' pin on 'neurowire slave' object [NCC#227]

The neurowire master I/O object declaration requires a select value. The

neurowire slave I/O object declaration does not.

228

The 'timeout' pin must be one of IO_0 ... IO_7 [NCC#228]

The neurowire slave's timeout pin option can only be one of the pins IO_0
through IO_7.

229

Neurowire slave device cannot have a baud or kbaud specifier [NCC#229]

The neurowire master device generates the clock used in the transfer.

Therefore, specification of a bit rate in the declaration of a slave neurowire

device is meaningless.