www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - Hardware API


hal_init_non_volatile_data

Initialize/Restore non-volatile data.

int hal_init_non_volatile_data ( Remop far * remop );

Parameters

remop

Pointer to Remop data structure.

Return Value

Success: AX = 0
Failure: AX < 0, Could not create file

Comments

This function initializes and restore non-volatile data.   Use it to tell the @CHIP-RTOS where your variables are located, which should be saved.   The function will also reload their saved values, if available.

The non-volatile (remanent) data is stored in A:\rema.bin file.

Call this function at the beginning of your program.

The Remop structure reference by remop must be static.   (This function does not make a copy of the structure's content.)

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.


This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document