From b4ae6c402e3165944621e472d7a673a117dd2662 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Thu, 30 Jun 2011 22:55:43 +0000 Subject: [PATCH] add return value in rtgui_key_rx function. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1560 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/mini2440/key.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bsp/mini2440/key.c b/bsp/mini2440/key.c index 7f7a160de..27896c634 100644 --- a/bsp/mini2440/key.c +++ b/bsp/mini2440/key.c @@ -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