![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include <log.h>#include <mmu.h>#include <ff.h>#include <cli.h>#include <cli_shell.h>#include <cli_termesc.h>#include <mmc/sys-sdcard.h>#include <sys-dram.h>#include <sys-gpio.h>#include <sys-i2c.h>#include <sys-sid.h>#include <sys-spi.h>#include <sys-uart.h>
Macros | |
| #define | CONFIG_HEAP_BASE (0x44800000) |
| #define | CONFIG_HEAP_SIZE (16 * 1024 * 1024) |
| #define | CONFIG_SDMMC_SPEED_TEST_SIZE 1024 |
| #define | CHUNK_SIZE 0x20000 |
Functions | |
| static int | fatfs_loadimage_size (char *filename, BYTE *dest, uint32_t *file_size) |
| static int | fatfs_loadimage (char *filename, BYTE *dest) |
| msh_declare_command (reload) | |
| msh_define_help (reload, "rescan TF Card and reload DTB, Kernel zImage", "Usage: reload\n") | |
| int | cmd_reload (int argc, const char **argv) |
| msh_declare_command (read) | |
| msh_define_help (read, "test", "Usage: read\n") | |
| int | cmd_read (int argc, const char **argv) |
| msh_declare_command (write) | |
| msh_define_help (write, "test", "Usage: write\n") | |
| int | cmd_write (int argc, const char **argv) |
| msh_declare_command (bt) | |
| msh_define_help (bt, "backtrace test", "Usage: bt\n") | |
| int | cmd_bt (int argc, const char **argv) |
| msh_declare_command (dram) | |
| msh_define_help (dram, "dump trained dram param", "Usage: dump_dram_param\n") | |
| int | cmd_dram (int argc, const char **argv) |
| int | main (void) |
Variables | |
| sunxi_serial_t | uart_dbg |
| uint32_t | dram_para [96] |
| uint32_t | dram_para_trained [96] |
| sunxi_sdhci_t | sdhci0 |
| sunxi_spi_t | sunxi_spi0 |
| const msh_command_entry | commands [] |
| #define CHUNK_SIZE 0x20000 |
| #define CONFIG_HEAP_BASE (0x44800000) |
| #define CONFIG_HEAP_SIZE (16 * 1024 * 1024) |
| #define CONFIG_SDMMC_SPEED_TEST_SIZE 1024 |
| int cmd_bt | ( | int | argc, |
| const char ** | argv | ||
| ) |
| int cmd_dram | ( | int | argc, |
| const char ** | argv | ||
| ) |
| int cmd_read | ( | int | argc, |
| const char ** | argv | ||
| ) |
| int cmd_reload | ( | int | argc, |
| const char ** | argv | ||
| ) |
| int cmd_write | ( | int | argc, |
| const char ** | argv | ||
| ) |
|
static |
| int main | ( | void | ) |
| msh_declare_command | ( | bt | ) |
| msh_declare_command | ( | dram | ) |
| msh_declare_command | ( | read | ) |
| msh_declare_command | ( | reload | ) |
| msh_declare_command | ( | write | ) |
| msh_define_help | ( | bt | , |
| "backtrace test" | , | ||
| "Usage: bt\n" | |||
| ) |
| msh_define_help | ( | dram | , |
| "dump trained dram param" | , | ||
| "Usage: dump_dram_param\n" | |||
| ) |
| msh_define_help | ( | read | , |
| "test" | , | ||
| "Usage: read\n" | |||
| ) |
| msh_define_help | ( | reload | , |
| "rescan TF Card and reload | DTB, | ||
| Kernel zImage" | , | ||
| "Usage: reload\n" | |||
| ) |
| msh_define_help | ( | write | , |
| "test" | , | ||
| "Usage: write\n" | |||
| ) |
| const msh_command_entry commands[] |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |