From: hackbard Date: Thu, 6 Sep 2007 00:55:36 +0000 (+0200) Subject: added innit for p3.20/1 X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f67e07f664916d773bc0be3d3eada848fbaaf814;p=my-code%2Farm.git added innit for p3.20/1 --- 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));