diff options
Diffstat (limited to 'openpcd/firmware/src/pwm.c')
-rw-r--r-- | openpcd/firmware/src/pwm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openpcd/firmware/src/pwm.c b/openpcd/firmware/src/pwm.c index fd11e7c..9d79b61 100644 --- a/openpcd/firmware/src/pwm.c +++ b/openpcd/firmware/src/pwm.c @@ -101,6 +101,9 @@ void pwm_duty_set_percent(int channel, u_int16_t duty) void pwm_init(void) { + /* IMPORTANT: Disable PA17 (SSC TD) output */ + AT91F_PIO_CfgInput(AT91C_BASE_PIOA, AT91C_PIO_PA17); + /* Set PA0 to Peripheral A (PWM0) */ AT91F_PIO_CfgPeriph(AT91C_BASE_PIOA, AT91C_PA0_PWM0, 0); |