From db82f30dc2a2f5475bc45bffa149e016484ff074 Mon Sep 17 00:00:00 2001 From: wuyangyong Date: Tue, 13 Dec 2011 07:08:34 +0000 Subject: [PATCH] add mem_test git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1837 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- examples/test/mem_test.c | 105 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 examples/test/mem_test.c diff --git a/examples/test/mem_test.c b/examples/test/mem_test.c new file mode 100644 index 0000000000..595578e126 --- /dev/null +++ b/examples/test/mem_test.c @@ -0,0 +1,105 @@ +#include + +#include +#include + +#define printf rt_kprintf + +void mem_test(uint32_t address, uint32_t size ) +{ + uint32_t i; + + printf("memtest,address: 0x%08X size: 0x%08X\r\n", address, size); + + /**< 8bit test */ + { + uint8_t * p_uint8_t = (uint8_t *)address; + for(i=0; i +FINSH_FUNCTION_EXPORT(mem_test, mem_test(0xA0000000, 0x00100000) ); +#endif