mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
add virtual key driver for QEUM/mini2440
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1020 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
1 parent
e98032b284
commit
9536c46386
3 files changed
+136
-115
No files matched your search
@@ -11,7 +11,7 @@
|
||||
* Date Author Notes
|
||||
* 2006-03-24 Bernard first implementation
|
||||
* 2006-05-05 Bernard add DATA_COUNT definition
|
||||
* 2006-10-05 Alsor.Z for s3c2410x porting
|
||||
* 2006-10-05 Alsor.Z for s3c2410x porting
|
||||
* 2007-11-20 Yi.Qiu add lcd,touch,console
|
||||
*/
|
||||
|
||||
@@ -27,16 +27,12 @@
|
||||
/*@{*/
|
||||
|
||||
extern rt_uint32_t PCLK, FCLK, HCLK, UCLK;
|
||||
extern rt_uint8_t asc16_font[];
|
||||
extern rt_uint16_t _rt_hw_framebuffer[];
|
||||
|
||||
extern void rt_hw_clock_init(void);
|
||||
extern void rt_hw_lcd_init(void);
|
||||
extern void rt_hw_mmu_init(void);
|
||||
extern void rt_hw_touch_init(void);
|
||||
|
||||
extern void rt_kbd_init(void);
|
||||
extern void rt_console_init(rt_uint8_t*, rt_uint8_t*, rt_uint8_t);
|
||||
extern void rt_hw_key_init(void);
|
||||
|
||||
extern void rt_hw_get_clock(void);
|
||||
extern void rt_hw_set_dividor(rt_uint8_t hdivn, rt_uint8_t pdivn);
|
||||
@@ -152,6 +148,9 @@ void rt_hw_board_init()
|
||||
/* initialize uart */
|
||||
rt_hw_uart_init();
|
||||
|
||||
/* init virtual keypad */
|
||||
rt_hw_key_init();
|
||||
|
||||
/* initialize mmu */
|
||||
rt_hw_mmu_init();
|
||||
|
||||
|
||||
+126
-90
File diff suppressed because it is too large.
Load diff
+5
-19
@@ -58,25 +58,6 @@ extern struct rt_device uart0_device;
|
||||
extern unsigned char __bss_end;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Fix me
|
||||
*/
|
||||
#if (defined (__GNUC__))
|
||||
void *_sbrk (int incr)
|
||||
{
|
||||
static char * heap_end;
|
||||
char * prev_heap_end;
|
||||
|
||||
if (heap_end == 0)
|
||||
heap_end = & __bss_end;
|
||||
|
||||
prev_heap_end = heap_end;
|
||||
heap_end += incr;
|
||||
|
||||
return (void *) prev_heap_end;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_FINSH
|
||||
extern void finsh_system_init(void);
|
||||
#endif
|
||||
@@ -115,6 +96,11 @@ void rtthread_startup(void)
|
||||
rt_system_heap_init((void*)&__bss_end, (void*)0x33F00000);
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_MODULE
|
||||
/* init module system*/
|
||||
rt_system_module_init();
|
||||
#endif
|
||||
|
||||
/* init scheduler system */
|
||||
rt_system_scheduler_init();
|
||||
|
||||
|
||||
Reference in new issue
Block a user