Karl Palsson
e0f377fec0
stm32f4: use new rcc_clock_setup_pll()
...
Batch replaced to use new api. User code doesn't need this, but
examples should be up to date, and this avoids deprecation warnings.
2019-06-02 20:39:56 +00:00
Karl Palsson
c03b580722
stm32: morse timer: remove WFI where not critical
...
__WFI is not standardized, though often provided. As it's not a core
part of this example, drop it.
2016-12-17 00:24:36 +00:00
Karl Palsson
9af2b8c7fb
stm32: morse timer: standardize example
...
Simplify, clarify and synchronize the two morse LED blinker examples.
Prepare for one day extracting the core as common morse example code.
2016-12-17 00:23:10 +00:00
Karl Palsson
d2abd471a5
stm32: timer: further clarify example commentary
...
The "timer" example is actually "the same" for both f1 and f4. Do a
sanity sweep over the commentary, remove all vestiges that this was
cloned from a motor control example, and synchronize both examples.
Future work should extract the common portions "somewhere" but at least
make them consistent for now.
2016-12-16 22:41:15 +00:00
Valentin Ochs
da04ccdf71
stm32: timer: Clarify some misleading comments.
...
Start clearing up misleading/redundant commentary.
2016-12-16 22:35:22 +00:00
Karl Palsson
1260b16772
timer_reset -> rcc_periph_reset_pulse() replace
...
timer_reset wasn't fully implemented for all timers on all series, and
was simply a wrapper of the RST bits in the RCC registers anyway.
First part of https://github.com/libopencm3/libopencm3/issues/709
2016-12-16 21:32:36 +00:00
Karl Palsson
8924042d2a
stm32f4: timer: correct misleading comments.
...
Code was correct, comment was badly imported.
2016-05-03 21:14:09 +00:00
Piotr Esden-Tempski
976720c355
Updated libopencm3 to current master. Made all examples compile again.
...
Be specifically careful with the usb examples. There is likely some
breakage to be expected, not sure I updated all the drivers to the
correct types for the respective chips.
2015-12-15 00:56:25 +01:00
Piotr Esden-Tempski
4de8d15303
[stm32f4-discovery] Using WFI instead of nop in the main loop.
...
WFI (Wait for Interrupt) tells the processor to suspend untill the next
interrupt is called. Better than burning away the cycles with nop.
2015-02-13 16:41:18 -08:00
Piotr Esden-Tempski
ec7c0f318b
[stm32f4-discovery] Added timer example for the stm32f4 discovery board.
2015-02-13 16:41:18 -08:00