mirror of
https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.git
synced 2025-02-25 01:26:55 +08:00
2、【创建】Eclipse工程,并支持IAR插件调试 3、【创建】Keil工程,位于/RVMDK目录下 4、【创建】IAR工程,位于/EWARM目录下 5、【添加】RT-Thread1.1.1操作系统支持 6、【添加】LED1、LED2系统运行指示灯 7、【修改】Readdme.md文件 Signed-off-by: armink <armink.ztl@gmail.com>
43 lines
823 B
C
43 lines
823 B
C
/*
|
|
* File : showmem.c
|
|
* This file is part of RT-Thread RTOS
|
|
* COPYRIGHT (C) 2006, 2008 RT-Thread Development Team
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://openlab.rt-thread.com/license/LICENSE
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2008-07-29 Bernard first version from QiuYi implementation
|
|
*/
|
|
|
|
#include <rtthread.h>
|
|
|
|
void rt_hw_show_memory(rt_uint32_t addr, rt_uint32_t size)
|
|
{
|
|
int i = 0, j =0;
|
|
|
|
RT_ASSERT(addr);
|
|
|
|
addr = addr & ~0xF;
|
|
size = 4*((size + 3)/4);
|
|
|
|
while(i < size)
|
|
{
|
|
rt_kprintf("0x%08x: ", addr );
|
|
|
|
for(j=0; j<4; j++)
|
|
{
|
|
rt_kprintf("0x%08x ", *(rt_uint32_t *)addr);
|
|
|
|
addr += 4;
|
|
i++;
|
|
}
|
|
|
|
rt_kprintf("\n");
|
|
}
|
|
|
|
return;
|
|
}
|