Firmware2/Marlin
PheiPheiPhei adb5375a09 Enabling servo usage on boards with PWM current control
Enabling servo usage on boards with PWM current control
timer5 is used by some boards like the Mini Rambo for controlling motor current via PWM, see stepper.cpp.
```cpp
  #ifdef MOTOR_CURRENT_PWM_XY_PIN
    pinMode(MOTOR_CURRENT_PWM_XY_PIN, OUTPUT);
    pinMode(MOTOR_CURRENT_PWM_Z_PIN, OUTPUT);
    pinMode(MOTOR_CURRENT_PWM_E_PIN, OUTPUT);
    digipot_current(0, motor_current_setting[0]);
    digipot_current(1, motor_current_setting[1]);
    digipot_current(2, motor_current_setting[2]);
    //Set timer5 to 31khz so the PWM of the motor power is as constant as possible. (removes a buzzing noise)
    TCCR5B = (TCCR5B & ~(_BV(CS50) | _BV(CS51) | _BV(CS52))) | _BV(CS50);
  #endif
}
```
Using the same timer for controlling servos results in loss of motor control. So use timer4/3 for those boards instead.
[See discussion here.](http://shop.prusa3d.com/forum/software-f13/enabling-auto-leveling-in-firmware-t416-s40.html)
2016-03-22 00:56:31 +01:00
..
example_configurations Merge pull request #3082 from thinkyhead/updated_2820 2016-03-20 17:10:38 -07:00
fonts Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
scripts Cosmetic tweaks from dev 2016-03-06 05:52:00 -08:00
blinkm.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
blinkm.h Deprecate Support for Arduino IDE < 1.0.5 2015-06-08 17:15:28 -05:00
boards.h Add AJ4P pins and fix RAMBO pins 2016-03-06 05:52:01 -08:00
buzzer.cpp Suppress some compiler warnings 2015-08-16 06:56:47 -05:00
buzzer.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
cardreader.cpp Use a separate serial line buffer 2016-03-18 16:46:20 -07:00
cardreader.h Use a separate serial line buffer 2016-03-18 16:46:20 -07:00
Conditionals.h Merge pull request #3082 from thinkyhead/updated_2820 2016-03-20 17:10:38 -07:00
Configuration_adv.h Improve the descriptions for THERMAL_PROTECTION 2016-03-19 14:08:59 +01:00
configuration_store.cpp Include M65 "ABC" parameters in EEPROM 2016-03-19 05:52:20 -07:00
configuration_store.h Overridable Options - Part 11 (PR#2563) 2015-07-31 01:07:04 -05:00
Configuration.h Merge pull request #3082 from thinkyhead/updated_2820 2016-03-20 17:10:38 -07:00
Default_Version.h Don't override SOURCE_CODE_URL in Default_Version.h 2016-03-06 05:51:56 -08:00
digipot_mcp4451.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_bitmaps.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_6x9_marlin.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_HD44780_C.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_HD44780_J.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_HD44780_W.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_ISO10646_1.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_ISO10646_5_Cyrillic.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_ISO10646_CN.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_ISO10646_Kana.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_Marlin_symbols.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_lcd_implementation.h Merge pull request #3113 from jbrazio/bugfix/3061-stop-print-time-counter 2016-03-20 17:05:07 -07:00
fastio.h Clean up "else" and other spacing 2015-11-12 00:03:21 -06:00
language_an.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_bg.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_ca.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_cn.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_cz.h Update language_cz.h 2016-03-19 20:43:28 +01:00
language_da.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_de.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_en.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_es.h Added missing translations. 2016-03-20 22:34:00 +01:00
language_eu.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_fi.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_fr.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_gl.h Galician (gl) language. 2015-09-30 14:46:01 -05:00
language_it.h Added missing translations. 2016-03-20 22:34:00 +01:00
language_kana_utf8.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_kana.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_nl.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_pl.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_pt-br_utf.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_pt-br.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_pt.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_ru.h "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
language_test.h Various minor spelling corrections 2016-03-05 20:41:15 -08:00
language.h Send a Busy signal to hosts during long processes, wait for input, etc 2016-03-18 22:38:35 -07:00
M100_Free_Mem_Chk.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
macros.h Merge pull request #3147 from thinkyhead/rc_stringify_macro 2016-03-15 17:37:03 -07:00
Makefile Various minor spelling corrections 2016-03-05 20:41:15 -08:00
Marlin_main.cpp Merge pull request #3187 from AnHardt/target_extruder_number 2016-03-20 17:15:22 -07:00
Marlin.h Merge pull request #3113 from jbrazio/bugfix/3061-stop-print-time-counter 2016-03-20 17:05:07 -07:00
Marlin.ino Add support for LCM1602 16x2 I2C LCD adapter 2016-03-19 19:26:44 -07:00
MarlinSerial.cpp deleted double used comments 2016-03-06 05:51:58 -08:00
MarlinSerial.h Protect MarlinSerial against interrupts 2016-02-24 17:18:12 +01:00
mesh_bed_leveling.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
mesh_bed_leveling.h Additional wrapping for #3140 2016-03-15 01:18:58 -07:00
pins_3DRAG.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_5DPRINT.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_99.h
pins_A4JP.h Add AJ4P pins and fix RAMBO pins 2016-03-06 05:52:01 -08:00
pins_AZTEEG_X1.h
pins_AZTEEG_X3_PRO.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_AZTEEG_X3.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_BAM_DICE_DUE.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_BQ_ZUM_MEGA_3D.h Implemented BQ ZUM Mega 3D board layout as an override to RAMPS 1.3 2016-03-06 05:51:57 -08:00
pins_BRAINWAVE_PRO.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_BRAINWAVE.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_CHEAPTRONIC.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_ELEFU_3.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_FELIX2.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_GEN3_MONOLITHIC.h
pins_GEN3_PLUS.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_GEN6_DELUXE.h
pins_GEN6.h
pins_GEN7_12.h
pins_GEN7_13.h
pins_GEN7_14.h
pins_GEN7_CUSTOM.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_K8200.h
pins_LEAPFROG.h Move Y2 and Z2 pins defines to pins.h 2015-09-07 09:41:06 -05:00
pins_MEGACONTROLLER.h Support for multiple PWM fans 2016-03-19 03:10:18 -07:00
pins_MEGATRONICS_2.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_MEGATRONICS_3.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_MEGATRONICS.h Apply remaining ENABLED/DISABLED conditionals 2015-08-03 16:04:48 -05:00
pins_MELZI_MAKR3D.h Rename and repair MELZI_1284 (PR#2301) 2015-06-22 22:30:07 -04:00
pins_MELZI.h
pins_MINIRAMBO.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_MINITRONICS.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_MKS_BASE.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_OMCA_A.h Rename BEEPER to BEEPER_PIN 2015-08-02 22:09:08 -05:00
pins_OMCA.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_PRINTRBOARD.h Fix Printrboard with LCD (redo) 2016-03-05 22:13:00 -08:00
pins_RAMBO.h Add AJ4P pins and fix RAMBO pins 2016-03-06 05:52:01 -08:00
pins_RAMPS_13_EFB.h Handle RAMPS 1.3 as the special case 2016-03-06 05:52:00 -08:00
pins_RAMPS_13.h Handle RAMPS 1.3 as the special case 2016-03-06 05:52:00 -08:00
pins_RAMPS_14_EFB.h Rename RAMPS 1.3 pins for RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_RAMPS_14.h Support MAX31855 as Temperature Sensor -3 2016-03-10 02:49:54 -08:00
pins_RAMPS_OLD.h Support MAX31855 as Temperature Sensor -3 2016-03-10 02:49:54 -08:00
pins_RIGIDBOARD.h Support MAX31855 as Temperature Sensor -3 2016-03-10 02:49:54 -08:00
pins_RUMBA.h Fix up probe pin define and test 2015-09-10 10:54:03 -05:00
pins_SANGUINOLOLU_11.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_SANGUINOLOLU_12.h Rename and repair MELZI_1284 (PR#2301) 2015-06-22 22:30:07 -04:00
pins_SAV_MKI.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_SETHI.h
pins_STB_11.h
pins_TEENSY2.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_TEENSYLU.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_ULTIMAIN_2.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_ULTIMAKER_OLD.h
pins_ULTIMAKER.h Define servo pins just like other pins 2015-08-02 23:26:58 -05:00
pins.h Add AJ4P pins and fix RAMBO pins 2016-03-06 05:52:01 -08:00
planner.cpp Support for multiple PWM fans 2016-03-19 03:10:18 -07:00
planner.h Support for multiple PWM fans 2016-03-19 03:10:18 -07:00
qr_solve.cpp Use macros where possible 2016-03-06 05:51:55 -08:00
qr_solve.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SanityCheck.h Merge pull request #3082 from thinkyhead/updated_2820 2016-03-20 17:10:38 -07:00
Sd2Card.cpp Use _BV macros, patch up others 2016-03-06 05:51:55 -08:00
Sd2Card.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
Sd2PinMap.h Use _BV macros, patch up others 2016-03-06 05:51:55 -08:00
SdBaseFile.cpp Wrap macros to prevent bad expansions 2016-03-12 22:38:55 -08:00
SdBaseFile.h Rename fpos_t to avoid libc conflict 2016-02-10 20:49:25 -08:00
SdFatConfig.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdFatStructs.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdFatUtil.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdFatUtil.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdFile.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdFile.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdInfo.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdVolume.cpp Use _BV macros, patch up others 2016-03-06 05:51:55 -08:00
SdVolume.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
servo.cpp Additional wrapping for #3140 2016-03-15 01:18:58 -07:00
servo.h Enabling servo usage on boards with PWM current control 2016-03-22 00:56:31 +01:00
speed_lookuptable.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
stepper_indirection.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
stepper_indirection.h Move step macros to stepper_indirection.h 2016-03-10 04:34:55 -08:00
stepper.cpp Check probes only when deployed 2016-03-19 02:00:08 -07:00
stepper.h Move step macros to stepper_indirection.h 2016-03-10 04:34:55 -08:00
temperature.cpp Merge pull request #3113 from jbrazio/bugfix/3061-stop-print-time-counter 2016-03-20 17:05:07 -07:00
temperature.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
thermistortables.h Added configuration example for the BQ Hephestos 2 3D printer. 2016-03-06 05:51:56 -08:00
ultralcd_implementation_hitachi_HD44780.h Merge pull request #3113 from jbrazio/bugfix/3061-stop-print-time-counter 2016-03-20 17:05:07 -07:00
ultralcd_st7920_u8glib_rrd.h Additional wrapping for #3140 2016-03-15 01:18:58 -07:00
ultralcd.cpp "Homing" as a translatable string 2016-03-19 04:41:03 -07:00
ultralcd.h Use const parameters instead of static casting 2016-03-19 03:36:53 -07:00
utf_mapper.h Use static locals in utf_mapper.h 2015-11-12 00:03:21 -06:00
vector_3.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
vector_3.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
watchdog.cpp Clean up watchdog impl. 2015-11-12 00:03:22 -06:00
watchdog.h Clean up watchdog impl. 2015-11-12 00:03:22 -06:00