44
RabbitCore RCM4000
The sample code below shows how a protected variable is defined and how its value can
be restored.
main() {
protected int state1, state2, state3;
...
_sysIsSoftReset(); // restore any protected variables
The
bbram
keyword may also be used instead if there is a need to store a variable in
battery-backed SRAM without affecting the performance of the application program. Data
integrity is
not
assured when a reset or power failure occurs during the update process.
Additional information on
bbram
and
protected
variables is available in the
Dynamic C
User’s Manual
.
Summary of Contents for RabbitCore RCM4000
Page 6: ...RabbitCore RCM4100...
Page 12: ...6 RabbitCore RCM4000...
Page 20: ...14 RabbitCore RCM4000...
Page 46: ...40 RabbitCore RCM4000...
Page 68: ...62 RabbitCore RCM4000...
Page 82: ...76 RabbitCore RCM4000...
Page 96: ...90 RabbitCore RCM4000...
Page 114: ...108 RabbitCore RCM4000...
Page 118: ...112 RabbitCore RCM4000...
Page 122: ...116 RabbitCore RCM4000...
Page 124: ......