diff options
Diffstat (limited to 'firmware/pwm.c')
-rw-r--r-- | firmware/pwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/pwm.c b/firmware/pwm.c index b8b6231..9e3666d 100644 --- a/firmware/pwm.c +++ b/firmware/pwm.c @@ -84,7 +84,7 @@ int pwm_init(int pin) { case 9: /* set pin as output */ - DDRB |=(1<<PB5); + OX_DDR9 |=(1<<OX_P9); OCR1A=1; // TOP #ifdef OCTOPUS_CAN /* configure timer, (WGM = FAST PWM) (clear on OCnA, set on TOP COM1A1)*/ @@ -97,7 +97,7 @@ int pwm_init(int pin) #endif break; case 8: - DDRB |=(1<<PB4); + OX_DDR8 |=(1<<OX_P8); #ifdef OCTOPUS_CAN OCR2A=1; // TOP /* configure timer, (WGM = FAST PWM) (clear on OCnA, set on TOP COM1A1)*/ @@ -138,7 +138,7 @@ void pwm_deinit_usb(int pin) int pwm_deinit(int pin) { - octopus.ports[pin]=PIN_NONE; + octopus.ports[pin]=PIN_OUT; // this is wrong! #ifdef OCTOPUS_CAN switch(pin) { |