📄 main.c
字号:
/*********************************************************************************************
* File: main.c
* Author: embest
* Desc: c main entry
* History:
*********************************************************************************************/
#include "rw_ram.h"
/*------------------------------------------------------------------------------------------*/
/* function declare */
/*------------------------------------------------------------------------------------------*/
extern void s_ram_test(void);
void mem_test(void);
void Main(void);
/*********************************************************************************************
* name: main
* func: c code entry
* para: none
* ret: none
* modify:
* comment:
*********************************************************************************************/
void Main(void)
{
sys_init(); /* Initial 44B0X's Interrupt,Port and UART */
// user interface
uart_printf("\n\r Memory Read/Write Access Test Example\n");
mem_test();
// test_cache();
while(1);
}
/*********************************************************************************************
* name: mem_test
* func: using assemble and c language access memory
* para: none
* ret: none
* modify:
* comment:
*********************************************************************************************/
void mem_test(void)
{
uart_printf(" Memory read base Address : 0x%x\n",RW_BASE);
uart_printf(" Memory write base Address : 0x%x\n",RW_TARGET);
uart_printf("\n Memory Read/Write (ASM code,%dBytes) Test. \n",RW_NUM);
s_ram_test();
uart_printf("\n Memory Read/Write (C code,%dBytes) Test. \n",RW_NUM);
c_ram_test();
uart_printf(" Memory Test Success! \n");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -