Date:2010-04-28 10:34:38 (13 years 7 months ago)
Author:Xiangfu Liu
Commit:945e32bae2d300fd24258f32d3e9127c6bda8e1b
Message:code cleanup

Files: xbboot/target-stage1/stage1.c (2 diffs)

Change Details

xbboot/target-stage1/stage1.c
5555    ARG_COL_ADDR = 9;
5656}
5757
58#define GPIO_LCD_CS (2 * 32 + 21)
59#define GPIO_KEYOUT_BASE (2 * 32 + 10)
60#define GPIO_KEYIN_BASE (3 * 32 + 18)
61
6258void gpio_init()
6359{
6460    __gpio_as_nand();
...... 
6763    __gpio_as_lcd_18bit();
6864    __gpio_as_msc();
6965
66#define GPIO_LCD_CS (2 * 32 + 21)
67#define GPIO_KEYOUT_BASE (2 * 32 + 10)
68#define GPIO_KEYIN_BASE (3 * 32 + 18)
69
7070    unsigned int i;
7171    for (i = 0; i < 7; i++){
7272        __gpio_as_input(GPIO_KEYIN_BASE + i);

Archive Download the corresponding diff file



interactive