Bare-metal system management.
More...
#include <stdint.h>
Go to the source code of this file.
|
#define | BIN_OFFSET_SIGNATURE 0 |
|
#define | BIN_OFFSET_SIZE 4 |
|
#define | BIN_OFFSET_CHECKSUM 8 |
|
#define | BIN_OFFSET_DATA 12 |
|
#define | BIN_SIGNATURE 0xB007C0DE |
|
#define | xstr(a) |
|
#define | str(a) |
|
Bare-metal system management.
◆ str
◆ xstr
◆ system_boot_app()
void system_boot_app |
( |
void | | ) |
|
Boot application program.
◆ system_exe_load()
int system_exe_load |
( |
int(* | dev_init )(void), |
|
|
int(* | stream_get )(uint32_t *rdata) ) |
Load executable: get data from device stream and store to main memory.
- Parameters
-
dev_init | Function pointer ("int foo(void)") for device setup. |
stream_get | Function pointer ("int bar(uint32_t* rdata)") to get the next consecutive 32-bit word from an application source stream. |
- Returns
- 0 if success, non-zero 0 if error.
◆ system_exe_store()
int system_exe_store |
( |
int(* | dev_init )(void), |
|
|
int(* | dev_erase )(void), |
|
|
int(* | stream_put )(uint32_t wdata) ) |
Store executable: copy data from main memory to device stream.
- Parameters
-
dev_init | Function pointer ("int foo(void)") for device setup. |
dev_erase | Function pointer ("int tmp(void)") for device erasure. |
stream_put | Function pointer ("int bar(uint32_t wdata)") to put the next consecutive 32-bit word to an application source stream. |
- Returns
- 0 if success, non-zero 0 if error.
◆ system_setup()
void system_setup |
( |
void | | ) |
|