提交 b4ae6c40 编写于 作者: B bernard.xiong@gmail.com

add return value in rtgui_key_rx function.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1560 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 08240e3b
......@@ -58,7 +58,7 @@ static void rt_key_savechar(char ch)
/* ISR for serial interrupt */
static void rt_hw_key_isr(void)
{
{
/* save on rx buffer */
rt_key_savechar(URXH1 & 0xff);
......@@ -274,7 +274,7 @@ static void rt_keymap_init(void)
s_key_map[0x48] = RTGUIK_UP;
}
static void rtgui_key_rx(rt_device_t dev, rt_size_t size)
static rt_err_t rtgui_key_rx(rt_device_t dev, rt_size_t size)
{
struct rtgui_event_kbd kbd_event;
char key_value;
......@@ -302,7 +302,9 @@ static void rtgui_key_rx(rt_device_t dev, rt_size_t size)
{
/* post down event */
rtgui_server_post_event(&(kbd_event.parent), sizeof(kbd_event));
}
}
return RT_EOK;
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册