X1000: board_key.c: 修复编译过程中的警告/Fix compile-time warnings

在第217行中,“(rt_uint32_t*)&keyId”应改为“(rt_ubase_t*)&keyId”。

In line 217, "(rt_uint32_t*)&keyId" should be changed to "(rt_ubase_t*)&keyId".

Signed-off-by: Zhou Yanjie <zhou_yan_jie@163.com>
This commit is contained in:
Zhou Yanjie 2019-02-02 22:58:28 +08:00
parent 059be8ec8a
commit c4bdf80cfa
1 changed files with 1 additions and 1 deletions

2
bsp/x1000/drivers/board_key.c Normal file → Executable file
View File

@ -214,7 +214,7 @@ void kbd_thread(void* parameter)
while (1)
{
if(rt_mb_recv(_keyMb, (rt_uint32_t*)&keyId, RT_TICK_PER_SECOND) != RT_EOK)
if(rt_mb_recv(_keyMb, (rt_ubase_t*)&keyId, RT_TICK_PER_SECOND) != RT_EOK)
{
//if no key pressed,check power key...
keyId = 0;