SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
main.c File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
#include <config.h>
#include <log.h>
#include <common.h>
#include <mmu.h>
#include <sys-clk.h>
#include <sys-dram.h>
#include <sys-i2c.h>
#include <sys-rtc.h>
#include <sys-sdcard.h>
#include <sys-sid.h>
#include <sys-spi.h>
#include <cli.h>
#include <cli_shell.h>
#include <cli_termesc.h>
#include <elf_loader.h>
#include <ff.h>
Include dependency graph for main.c:

Classes

struct  image_info_t
 

Macros

#define CONFIG_HIFI4_ELF_FILENAME   "dsp.elf"
 
#define CONFIG_HIFI4_ELF_LOADADDR   (0x45000000)
 
#define CONFIG_SDMMC_SPEED_TEST_SIZE   1024
 
#define FILENAME_MAX_LEN   32
 
#define CHUNK_SIZE   0x20000
 

Functions

static int fatfs_loadimage (char *filename, BYTE *dest)
 
static int load_sdcard (image_info_t *image)
 
 msh_declare_command (boot)
 
 msh_define_help (boot, "boot HIFI4", "Usage: boot\n")
 
int cmd_boot (int argc, const char **argv)
 
int main (void)
 

Variables

sunxi_serial_t uart_dbg
 
sdhci_t sdhci0
 
dram_para_t dram_para
 
image_info_t image
 
const msh_command_entry commands []
 

Macro Definition Documentation

◆ CHUNK_SIZE

#define CHUNK_SIZE   0x20000

◆ CONFIG_HIFI4_ELF_FILENAME

#define CONFIG_HIFI4_ELF_FILENAME   "dsp.elf"

◆ CONFIG_HIFI4_ELF_LOADADDR

#define CONFIG_HIFI4_ELF_LOADADDR   (0x45000000)

◆ CONFIG_SDMMC_SPEED_TEST_SIZE

#define CONFIG_SDMMC_SPEED_TEST_SIZE   1024

◆ FILENAME_MAX_LEN

#define FILENAME_MAX_LEN   32

Function Documentation

◆ cmd_boot()

int cmd_boot ( int  argc,
const char **  argv 
)

◆ fatfs_loadimage()

static int fatfs_loadimage ( char *  filename,
BYTE dest 
)
static

◆ load_sdcard()

static int load_sdcard ( image_info_t image)
static

◆ main()

int main ( void  )

◆ msh_declare_command()

msh_declare_command ( boot  )

◆ msh_define_help()

msh_define_help ( boot  ,
"boot HIFI4"  ,
"Usage: boot\n"   
)

Variable Documentation

◆ commands

const msh_command_entry commands[]
Initial value:
= {
}
#define msh_command_end
Definition cli.h:21
#define msh_define_command(name)
Definition cli.h:33

◆ dram_para

dram_para_t dram_para
extern

◆ image

image_info_t image

◆ sdhci0

sdhci_t sdhci0
extern

◆ uart_dbg

sunxi_serial_t uart_dbg
extern