Skip to content

Commit

Permalink
Add warnings on hardware PWM features.
Browse files Browse the repository at this point in the history
  • Loading branch information
phizev committed Dec 28, 2024
1 parent a46a9b2 commit a760262
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Marlin/src/HAL/TEENSY40_41/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@
#if ENABLED(BAUD_RATE_GCODE) && SERIAL_PORT_2 == -2
#error "BAUD_RATE_GCODE cannot be enabled when using the Ethernet serial port."
#endif

#if ENABLED(SPINDLE_LASER_USE_PWM) && !ENABLED(SILENCE_TEENSY_SPINDLE_LASER_WARNING)
#warning "SPINDLE_LASER_USE_PWM is untested on Teensy 4.0/4.1, see https://www.pjrc.com/teensy/td_pulse.html for details on frequencies, and resolution. #define SILENCE_TEENSY_SPINDLE_LASER_WARNING to silence warning."
#endif

#if ENABLED(FAST_PWM_FAN) && FAST_PWM_FAN_FREQUENCY == 1000U
#warning "FAST_PWM_FAN_FREQUENCY has been left as default, see https://www.pjrc.com/teensy/td_pulse.html and consider raising it to reduce noise."
#endif

0 comments on commit a760262

Please sign in to comment.