1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-26 01:59:44 +02:00

code cleanup

This commit is contained in:
Xiangfu Liu 2010-04-28 16:34:38 +08:00
parent 9ed1a769d6
commit 945e32bae2

View File

@ -55,10 +55,6 @@ void load_args()
ARG_COL_ADDR = 9; ARG_COL_ADDR = 9;
} }
#define GPIO_LCD_CS (2 * 32 + 21)
#define GPIO_KEYOUT_BASE (2 * 32 + 10)
#define GPIO_KEYIN_BASE (3 * 32 + 18)
void gpio_init() void gpio_init()
{ {
__gpio_as_nand(); __gpio_as_nand();
@ -67,6 +63,10 @@ void gpio_init()
__gpio_as_lcd_18bit(); __gpio_as_lcd_18bit();
__gpio_as_msc(); __gpio_as_msc();
#define GPIO_LCD_CS (2 * 32 + 21)
#define GPIO_KEYOUT_BASE (2 * 32 + 10)
#define GPIO_KEYIN_BASE (3 * 32 + 18)
unsigned int i; unsigned int i;
for (i = 0; i < 7; i++){ for (i = 0; i < 7; i++){
__gpio_as_input(GPIO_KEYIN_BASE + i); __gpio_as_input(GPIO_KEYIN_BASE + i);