From f67e07f664916d773bc0be3d3eada848fbaaf814 Mon Sep 17 00:00:00 2001 From: hackbard Date: Thu, 6 Sep 2007 02:55:36 +0200 Subject: [PATCH] added innit for p3.20/1 --- betty/buttons.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/betty/buttons.c b/betty/buttons.c index ba76f8d..15298a3 100644 --- a/betty/buttons.c +++ b/betty/buttons.c @@ -26,6 +26,8 @@ void button_init(void) { PINSEL0&=~((1<<27)|(1<<26)); // p0.13 // ctrl databus for p2.18 - p2.24 PINSEL2&=(PINSEL2&(~((1<<5)|(1<<4))))|(1<<4); + // ctrl addr bus for p3.20, p3.21 + PINSEL2=(PINSEL2&(~((1<<27)|(1<<26)|(1<<25))))|(1<<27)|(1<<26); // input IODIR0&=~((1<<30)|(1<<28)|(1<<27)|(1<<22)|(1<<13)); IODIR3&=~((1<<21)|(1<<20)); -- 2.20.1