DMCP interface  03.15_020
System RESET

System RESET functions. More...

Macros

#define NO_SPLASH_MAGIC   0xEACE7362
 Reset constant - Avoid initial splash screen.
 
#define ALLOC_FAIL_MAGIC   0x363EACE7
 Reset constant - Indicate unhandled memory allocation.
 
#define CLEAN_RESET_MAGIC   0x3EACE736
 Reset constant - Start program in clean state.
 
#define RUN_DMCP_MAGIC   0x3CE7EA37
 Reset constant - Start DMCP menu (instead of program)
 
#define RESET_STATE_FILE_SIZE   0x38
 Size of reset state file buffer.
 

Functions

void set_reset_magic (uint32_t value)
 Set reset constant. More...
 
int is_reset_state_file ()
 Check for reset state file. More...
 
char * get_reset_state_file ()
 Get pointer to reset state file. More...
 
void set_reset_state_file (const char *str)
 Set reset state file to given string. More...
 
void sys_reset ()
 Invoke CPU reset.
 

Detailed Description

System RESET functions.

Function Documentation

◆ get_reset_state_file()

char* get_reset_state_file ( )

Get pointer to reset state file.

Returns
Pointer to reset state file

◆ is_reset_state_file()

int is_reset_state_file ( )

Check for reset state file.

Returns
(0/1) 1 - Reset state file available

◆ set_reset_magic()

void set_reset_magic ( uint32_t  value)

Set reset constant.

Use this to force required 'after RESET' behavior before sys_reset() is used.

◆ set_reset_state_file()

void set_reset_state_file ( const char *  str)

Set reset state file to given string.

Parameters
strString to set

Length of str should be less then RESET_STATE_FILE_SIZE and longer then zero, otherwise the reset state file is just unset (is_reset_state_file() returns 0).