Echelon Neuron C User Manual

Page 45

Advertising
background image

Neuron C Reference Guide

25

#pragma disable_servpin_pullup

Disables the internal pullup resistor on the service pin. This pullup resistor
is normally enabled. The pragma takes effect during I/O initialization.
This directive has no effect when used for a Series 5000 chip.
This directive is not supported in model files.

#pragma disable_snvt_si

Disables generation of the self-identification (SI) data. The SI data is
generated by default, but can be disabled using this pragma to reclaim

program memory when the feature is not needed. See

Standard Network

Variable Types (SNVTs)

in Chapter 3,

How Devices Communicate Using

Network Variables,

of the

Neuron C Programmer’s Guide

.

The compiler does not issue error message NCC#15 if you specify this

directive multiple times in the application.

This directive is not supported in model files.

#pragma disable_warning

number

Controls the compiler’s printing of specific warning and hint messages
Warning messages are less severe than errors, yet could indicate a problem

in a program, or a place where code could be improved. To disable all

warning messages, specify an asterisk (*) for the

number

.

See the enable_warning directive to enable disabled warnings.
The disable_warning directive supercedes the warnings_off directive.

#pragma eeprom_locked

This pragma provides a mechanism whereby an application can lock its

checksummed EEPROM. Checksummed EEPROM includes the application
and network images, but not application EEPROM variables. Setting the

flag improves reliability because attempts to write EEPROM as a result of

wild jumps fail. EEPROM variables are not protected. See the discussion of
the set_eeprom_lock( ) function in Chapter 3,

Functions

, on page 39, for more

information.
There are drawbacks to using the EEPROM lock mechanism. A device with
this pragma (or one using the set_eeprom_lock( ) function) requires that the

device be taken offline before checksummed EEPROM can be modified. So, if

the device is configured by a network tool that does not take the device offline
prior to changes, the tool does not change the configuration.
This directive is not supported in model files.

#pragma enable_io_pullups

Enables the internal pullup resistors on pins IO4 through IO7 for Series 3100

devices. The pragma takes effect during I/O initialization. These pullup
resistors are normally disabled. Use of this pragma can eliminate external

hardware components when pullup resistors are required. The PL 3120-E4

Smart Transceiver and the PL 3150 Smart Transceiver both have an extra
I/O pin, IO11. On these models of Smart Transceiver, this directive also

enables a pullup resistor for the IO11 pin.

Advertising