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 ba76f8d..15298a3 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));