]> hackdaworld.org Git - my-code/arm.git/commitdiff
added innit for p3.20/1
authorhackbard <hackbard@staubsauger.localdomain>
Thu, 6 Sep 2007 00:55:36 +0000 (02:55 +0200)
committerhackbard <hackbard@staubsauger.localdomain>
Thu, 6 Sep 2007 00:55:36 +0000 (02:55 +0200)
betty/buttons.c

index ba76f8db90d59a87c2b06076c098256c6d595908..15298a36e2772b9d0b573ea0a200f261d22aaf37 100644 (file)
@@ -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));