summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon
diff options
context:
space:
mode:
authorFlorent Duchon2013-03-24 15:14:04 +0100
committerFlorent Duchon2013-03-24 15:51:18 +0100
commit8af7e82164f9aa299bc8f86bc707dd39c5535e1e (patch)
tree6b5c3cc01b4b4f2acb352564c4e8c3d7956f8580 /digital/beacon
parent93bde345a27e9d3c05386daf24ff360cb7b394ca (diff)
digital/beacon: activate pull-up on codewheel signal
Diffstat (limited to 'digital/beacon')
-rw-r--r--digital/beacon/src/codewheel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/digital/beacon/src/codewheel.c b/digital/beacon/src/codewheel.c
index 74c8eb2e..73c0329f 100644
--- a/digital/beacon/src/codewheel.c
+++ b/digital/beacon/src/codewheel.c
@@ -41,6 +41,9 @@ void codewheel_init(void)
/* Set codewheel state*/
codewheel_set_state(CODEWHEEL_INIT);
+ /* activated pull up on E6 */
+ PORTE = 0x40;
+
/* Select external clock on rising edge for timer 3 */
TCCR3B |= (1<<CS30)|(1<<CS31)|(1<<CS32);