Other directives – Echelon Neuron C User Manual

Page 57

Advertising
background image

Neuron C Reference Guide

37

Neuron 3120E1 Chip, Neuron 3120E2 Chip, and 3120 Smart Transceiver,

firmware version 6 (or later) supports either algorithm. For the Neuron 3120
Chip, firmware version 4 (or later) supports either algorithm. For a Series

5000 device, firmware version 18 (or later) supports either algorithm. The

newer version of transaction tracking (the

on

option) is used by default when

available, unless the device is a L

ON

W

ORKS

network interface (for example,

running the MIP), or the device’s application program generates explicit
destination addresses.
These directives are not supported in model files.

#pragma unknown_system_image_extension_isa_warning

This directive causes the [NLD#477] linker message, which normally reports

an error for the use of #pragma system_image_extensions nv_length_override

on a version of the Neuron firmware that does not support system image
extension, to be changed to a warning. This change allows you to compile the

same application code for different targets with respect to their system image

support.

The Code Wizard in NodeBuilder 3.1 (and later) uses this directive to

generate Neuron C source code that compiles, for example, for a LTM-10A

target (debug platform), and a TP/FT-10F Flash Control Module (release
platform). See the discussion on Changeable Type Network Variables in the

chapter

How Devices Communicate Using Network Variables

of the

Neuron

C Programmer's Guide

for more information.

You normally do not need to specify this directive if your debug and release

targets use the same system firmware version and hardware, or if you use
conditional compilation to distinguish between the targets.
This directive is not supported in model files.

#pragma warnings_off

#pragma warnings_on

Controls the compiler’s printing of warning messages. Warning messages

generally indicate a problem in a program, or a place where code could be
improved. Warning messages are on by default at the start of a compilation.

These pragmas can be intermixed multiple times throughout a program to

turn warning message printing on and off as desired.

These directives override the settings for the #pragma enable_warning

number

and #pragma disable_warning

number

directives.

The warnings_off and warnings_on directives are deprecated. Use the

enable_warning and disable_warning directives instead.

Other Directives

The following additional directives are defined in Neuron C Version 2.2:

#error “

text

This directive allows you to issue a custom error message. When this

directive is processed, program compilation fails. This directive is useful for
managing conditional compilation, for example:

#ifdef XXX

Advertising