Task declarations, Function declarations – Echelon Neuron C User Manual
Page 232
212
Syntax Summary
abstract-decl-specifier
:
type-specifier
cv-type-qualifier
Task Declarations
Neuron C contains task declarations. Task declarations are similar to function
declarations. A task declaration consists of a when or an interrupt clause list,
followed by a task. A task is a compound statement (like an ANSI C function
body).
task-declaration
:
when-clause-list
task
interrupt-clause
task
when-clause-list
:
when-clause-list
when-clause
when-clause
when-clause
:
priority preempt_safe when
when-event
priority when
when-event
preempt_safe when
when-event
when
when-event
interrupt-clause
:
interrupt
interrupt-event
task
:
compound-stmt
Function Declarations
The following is ANSI C function declaration syntax.
function-declaration
:
function-head
compound-stmt
function-head
:
function-type-and-name
parm-declaration-list
function-type-and-name
function-type-and-name
:
declaration-specifier-list
declarator
parm-declaration-list
:
parm-declaration-list
parm-declaration
parm-declaration