![]() |
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 <sys-dram.h>#include <sys-gpio.h>#include <sys-i2c.h>#include <sys-sdcard.h>#include <sys-sid.h>#include <sys-spi.h>#include <sys-uart.h>
Macros | |
| #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) |
| int | main (void) |
Variables | |
| sunxi_serial_t | uart_dbg |
| sunxi_i2c_t | i2c_pmu |
| sunxi_sdhci_t | sdhci0 |
| sunxi_sdhci_t | sdhci2 |
| const msh_command_entry | commands [] |
| #define CHUNK_SIZE 0x20000 |
| #define CONFIG_SDMMC_SPEED_TEST_SIZE 1024 |
| 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 | ( | read | ) |
| msh_declare_command | ( | reload | ) |
| msh_declare_command | ( | write | ) |
| 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 |