projects
/
my-code
/
arm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6043214
)
added innit for p3.20/1
author
hackbard
<hackbard@staubsauger.localdomain>
Thu, 6 Sep 2007 00:55:36 +0000
(
02:55
+0200)
committer
hackbard
<hackbard@staubsauger.localdomain>
Thu, 6 Sep 2007 00:55:36 +0000
(
02:55
+0200)
betty/buttons.c
patch
|
blob
|
history
diff --git
a/betty/buttons.c
b/betty/buttons.c
index
ba76f8d
..
15298a3
100644
(file)
--- 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);
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));
// input
IODIR0&=~((1<<30)|(1<<28)|(1<<27)|(1<<22)|(1<<13));
IODIR3&=~((1<<21)|(1<<20));