mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2025-04-21 12:27:27 +03:00
code cleanup
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user