DMCP interface
03.15_020
|
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. | |
System RESET functions.
char* get_reset_state_file | ( | ) |
Get pointer to reset state file.
int is_reset_state_file | ( | ) |
Check for reset state file.
void set_reset_magic | ( | uint32_t | value | ) |
Set reset constant.
Use this to force required 'after RESET' behavior before sys_reset() is used.
void set_reset_state_file | ( | const char * | str | ) |
Set reset state file to given string.
str | String 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).