Added option to increase the FAN PWM frequency.

This commit is contained in:
Erik van der Zalm
2012-05-02 19:26:14 +02:00
parent 6a5a34e0ff
commit 1874cb71a6
4 changed files with 82 additions and 1 deletions

View File

@ -559,6 +559,9 @@ void tp_init()
#endif
#if (FAN_PIN > -1)
SET_OUTPUT(FAN_PIN);
#ifdef FAST_PWM_FAN
setPwmFrequency(FAN_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
#endif
#endif
#ifdef HEATER_0_USES_MAX6675