📄 edma_main.c
字号:
/* * \file edma_main.c * \brief Command line interface for eDMA validation tests * \version $Revision: 1.1 $ * \author Michael Norman */#include "common.h"#include "uif.h"#include "edma_tests.h"#undef EDMA_CLI/********************************************************************//* * Setup user interface */void mainloop (void);void cmd_rd (int, char **);const char PROMPT[] = "eDMA> ";UIF_CMD UIF_CMDTAB[] ={ UIF_CMDS_ALL {"rd", 0,0,0,cmd_rd, "Register Disply",""},};const int UIF_NUM_CMD = UIF_CMDTAB_SIZE;UIF_SETCMD UIF_SETCMDTAB[] = {"",0,0,NULL,""};const int UIF_NUM_SETCMD = 0;/********************************************************************/void main (void){#ifndef EDMA_CLI printf("Running all XBS tests.\n"); edma_reg_dump();#else char ch; printf("\n"); printf("**************************************************\n"); printf("* *\n"); printf("* eDMA Utility *\n"); printf("* *\n"); printf("**************************************************\n"); printf(HELPMSG); printf("\n"); mainloop();#endif}/********************************************************************/voidmainloop (void){ /* Enable interrupts to the core */ mcf5xxx_irq_enable(); while (TRUE) { printf(PROMPT); run_cmd(); }}/********************************************************************/voidcmd_rd (int argc, char **argv){ edma_reg_dump();}/********************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -