SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Macros | Functions | Variables
main.c File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
#include <log.h>
#include <common.h>
#include <mmu.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-sdhci.h>
#include <sys-sdcard.h>
#include <sys-sid.h>
#include <sys-spi.h>
#include <sys-uart.h>
Include dependency graph for main.c:

Macros

#define CONFIG_SDMMC_SPEED_TEST_SIZE   102400 * 4
 

Functions

 msh_declare_command (speedtest)
 
 msh_define_help (speedtest, "Do speed test", "Usage: speedtest\n")
 
int cmd_speedtest (int argc, const char **argv)
 
 msh_declare_command (swi)
 
 msh_define_help (swi, "Software interrupt test", "Usage: swi\n")
 
int cmd_swi (int argc, const char **argv)
 
int main (void)
 

Variables

sunxi_serial_t uart_dbg
 
sunxi_i2c_t i2c_pmu
 
sunxi_sdhci_t sdhci2
 
uint32_t dram_para [32]
 
const msh_command_entry commands []
 

Macro Definition Documentation

◆ CONFIG_SDMMC_SPEED_TEST_SIZE

#define CONFIG_SDMMC_SPEED_TEST_SIZE   102400 * 4

Function Documentation

◆ cmd_speedtest()

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

◆ cmd_swi()

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

◆ main()

int main ( void  )

◆ msh_declare_command() [1/2]

msh_declare_command ( speedtest  )

◆ msh_declare_command() [2/2]

msh_declare_command ( swi  )

◆ msh_define_help() [1/2]

msh_define_help ( speedtest  ,
"Do speed test"  ,
"Usage: speedtest\n"   
)

◆ msh_define_help() [2/2]

msh_define_help ( swi  ,
"Software interrupt test"  ,
"Usage: swi\n"   
)

Variable Documentation

◆ commands

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

◆ dram_para

uint32_t dram_para[32]
extern

◆ i2c_pmu

sunxi_i2c_t i2c_pmu
extern

◆ sdhci2

sunxi_sdhci_t sdhci2
extern

◆ uart_dbg

sunxi_serial_t uart_dbg
extern