projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
safety checkin: more pffs
[my-code/arm.git]
/
betty
/
buttons.c
diff --git
a/betty/buttons.c
b/betty/buttons.c
index
9eb99b5
..
21efe01
100644
(file)
--- a/
betty/buttons.c
+++ b/
betty/buttons.c
@@
-26,10
+26,10
@@
void button_init(t_button *button) {
PINSEL0&=~((1<<27)|(1<<26)); // p0.13
// ctrl databus for p2.18 - p2.24
PINSEL0&=~((1<<27)|(1<<26)); // p0.13
// ctrl databus for p2.18 - p2.24
- PINSEL2
&=(PINSEL2&(~((1<<5)|(1<<4)
)))|(1<<4);
+ PINSEL2
=(PINSEL2&P2MASK&~((1<<5)|(1<<4
)))|(1<<4);
// ctrl addr bus for p3.20, p3.21
// ctrl addr bus for p3.20, p3.21
- PINSEL2=(PINSEL2&
(~((1<<27)|(1<<26)|(1<<25)
)))|(1<<27)|(1<<26);
+ PINSEL2=(PINSEL2&
P2MASK&~((1<<27)|(1<<26)|(1<<25
)))|(1<<27)|(1<<26);
// input
IODIR0&=~((1<<30)|(1<<28)|(1<<27)|(1<<22)|(1<<13));
// input
IODIR0&=~((1<<30)|(1<<28)|(1<<27)|(1<<22)|(1<<13));