Files | |
| file | loader.h |
| Default definitions and error values for the Contiki program loader. | |
Modules | |
| ELF object code loader | |
| The Contiki ELF loader is able to load and relocate ELF object files. | |
Data Structures | |
| struct | dsc |
| The DSC program description structure. More... | |
Defines | |
| #define | DSC(dscname, description, prgname, process, icon) const struct dsc dscname = {description, prgname, icon} |
| Intantiating macro for the DSC structure. | |
| #define | LOADER_OK 0 |
| No error. | |
| #define | LOADER_ERR_READ 1 |
| Read error. | |
| #define | LOADER_ERR_HDR 2 |
| Header error. | |
| #define | LOADER_ERR_OS 3 |
| Wrong OS. | |
| #define | LOADER_ERR_FMT 4 |
| Data format error. | |
| #define | LOADER_ERR_MEM 5 |
| Not enough memory. | |
| #define | LOADER_ERR_OPEN 6 |
| Could not open file. | |
| #define | LOADER_ERR_ARCH 7 |
| Wrong architecture. | |
| #define | LOADER_ERR_VERSION 8 |
| Wrong OS version. | |
| #define | LOADER_ERR_NOLOADER 9 |
| Program loading not supported. | |
| #define | LOADER_LOAD(name, arg) LOADER_ERR_NOLOADER |
| Load and execute a program. | |
| #define | LOADER_UNLOAD() |
| Unload a program from memory. | |
| #define | LOADER_LOAD_DSC(name) NULL |
| Load a DSC (program description). | |
| #define | LOADER_UNLOAD_DSC(dsc) |
| Unload a DSC (program description). | |
The DSC is saved into a file which can be loaded by programs such as the "Directory" application which reads all DSC files on disk and presents the icons and descriptions in a window.
|
|
Intantiating macro for the DSC structure.
|
|
|
Load and execute a program. This macro is used for loading and executing a program, and requires support from the architecture dependant code. The actual program loading is made by architecture specific functions.
|
|
|
Load a DSC (program description). Loads a DSC (program description) into memory and returns a pointer to the dsc.
|
|
|
Unload a program from memory. This macro is used for unloading a program and deallocating any memory that was allocated during the loading of the program. This function must be called by the program itself. |
|
|
Unload a DSC (program description). Unload a DSC from memory and deallocate any memory that was allocated when it was loaded. |
1.4.1