summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Duchon2012-04-22 00:02:25 +0200
committerFlorent Duchon2012-05-04 00:06:26 +0200
commit52835300ed33e1320205c9f94857d071e3ec0582 (patch)
tree878cc33ad363e13683f1102cc1b522608ad94cc6
parent52d6d531c5448e131b1fe1e222608448a9306186 (diff)
digital/beacon: remap motor output from PB5 to PB7
-rw-r--r--digital/beacon/src/motor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/digital/beacon/src/motor.c b/digital/beacon/src/motor.c
index 85cb742e..907559ea 100644
--- a/digital/beacon/src/motor.c
+++ b/digital/beacon/src/motor.c
@@ -28,24 +28,24 @@
/* This function initializes the motor control output */
void motor_init(void)
{
- DDRB |= (1<<PB5);
+ DDRB |= (1<<PB7);
}
/* This function starts the motor rotation */
void motor_start(void)
{
- PORTB |= (1<<PORTB5);
+ PORTB |= (1<<PORTB7);
}
/* This function stops the motor rotation */
void motor_stop(void)
{
- PORTB &= ~(1<<PORTB5);
+ PORTB &= ~(1<<PORTB7);
}
TMotor_state motor_get_state(void)
{
- if(PORTB&(1<<PORTB5))
+ if(PORTB&(1<<PORTB7))
return MOTOR_IN_ROTATION;
else
return MOTOR_STOPPED;