diff options
author | Christian Pointner <equinox@helsinki.at> | 2014-05-03 14:15:03 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2014-05-03 14:15:03 (GMT) |
commit | 9ea1ffa5e7b7c98532c217cb4595a301fd65f718 (patch) | |
tree | 09b6833b458ee010d98b8189f7a9ec8fc8a0e0cf /software/rhmixxx | |
parent | fde563bf345e3cae611992c4b2fdd9516f58002f (diff) |
upgraded avr utils
Diffstat (limited to 'software/rhmixxx')
-rw-r--r-- | software/rhmixxx/rhmixxx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/software/rhmixxx/rhmixxx.c b/software/rhmixxx/rhmixxx.c index c305462..6b22d21 100644 --- a/software/rhmixxx/rhmixxx.c +++ b/software/rhmixxx/rhmixxx.c @@ -80,17 +80,17 @@ void EVENT_USB_Device_ControlRequest(void) static FILE serial_stream;
-#define KEY_PIN PINF
-#define KEY_PORT PORTF
-#define KEY_DDR DDRF
+#define KEY_PIN PINA
+#define KEY_PORT PORTA
+#define KEY_DDR DDRA
#define KEY_BIT 0
#define KEY_LP_MAX 255
void key_init(void)
{
- KEY_DDR = KEY_DDR & ~(1<<KEY_BIT);
- KEY_PORT |= (1<<KEY_BIT);
+ KEY_DDR = 0xF0;
+ KEY_PORT = 0xEF;
}
int main(void)
|