Commit Graph

11 Commits

Author SHA1 Message Date
Nico Tonnhofer 635d40a42a heater-stm32.c: rework init 2017-04-03 23:07:17 +02:00
Nico Tonnhofer bcb6964ceb heater: add max_pwm and software pwm also for stm32 2017-03-21 17:36:14 +01:00
Phil Hord 4b3c6fee7b Overload DEFINE_HEATER to take variable arguments
DEFINE_HEATER used to take 3 arguments.  Today it takes 4.  Soon it might
take 5.  The transition from 3 to 4 was painful while old config files
had not caught up to the new parameters.  Let's avoid the pain again in
the future by making this macro overloadable to accept any correct number
of arguments while doing the right thing.  Also let's accept 5 or 6
parameters so new configs will work with today's "older" code.
2017-03-21 14:50:28 +01:00
Nico Tonnhofer aeb98b557b STM32F411: cleanup code with using pinio.h macros. 2017-03-03 18:54:57 +01:00
Nico Tonnhofer dee35e2c02 STM32F411: enable temperature control. 2017-03-03 18:54:57 +01:00
Nico Tonnhofer 6f334be231 STM32F411: support inverted heater pin signals. 2017-03-03 18:54:57 +01:00
Nico Tonnhofer afc4c3e8e4 STM32F411: Allow non-PWM pins as heater output. 2017-03-03 18:54:57 +01:00
Nico Tonnhofer 423c5694d0 STM32F411: Respect configured PWM frequencies in heater-stm32.c
Test: the PWM frequency on the scope should be similar to the
one configures in the board file with DEFINE_HEATER().
2017-03-03 18:54:57 +01:00
Nico Tonnhofer 06c6aed23d STM32F411: Turn on only timers needed in heater-stm32.c
Test: PWM pins work as before.
2017-03-03 18:54:57 +01:00
Nico Tonnhofer 12691b4488 STM32F411: Implement heater_set() in heater-stm32.c.
Works very nicely from full off (M106 S0) to full on (M106 S255).

Test: M106 should work now as expected. M106 S0 should turn full
off, M106 S255 should turn full on, both without any spike on the
scope.
2017-03-03 18:54:57 +01:00
Nico Tonnhofer df78b8d826 STM32F411: implement heater-stm32.c partially.
Like Traumflugs implementation at a fixed frequency of 1kHz and a fixed duty
cycle of 10%.
2017-03-03 18:54:57 +01:00