1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu/stm32
Joshua DeWeese 289814edcf cpu/stm32/periph/timer: don't stop counter
If a timer's channel was set with a really small realtive duration from
now, such that it would be missed (underflowed), the driver would stop
the timer, potentially causing missed ticks. It was stopped to ensure
that the channel's output-compare register could be set to the current
counter value, before re-enabling the timer's counter. This is a
condition that will ensure that the underflow won't happen again and the
interrupt will fire, at the cost of losing some ticks for very high
speed clocks.

This patch replaces the logic that stopped the timer. Instead it uses a
register provided by the timer hardware to trigger timer interrupts via
software.
2023-02-08 14:08:56 -05:00
..
bootloader cpu/stm32: implement reset to bootloader 2020-06-05 18:41:06 +02:00
dist treewide/stm32: Make CLOCK_HS* configurable 2022-11-03 11:37:28 +01:00
include cpu/stm32/periph_timer: implement timer_set() 2023-01-03 15:51:06 +01:00
kconfigs cpu/stm32/kconfig: rework clock tree 2022-11-03 11:37:33 +01:00
ldscripts cpu/{cortexm_common, stm32}: add support for backup RAM 2022-01-21 15:53:18 +01:00
periph cpu/stm32/periph/timer: don't stop counter 2023-02-08 14:08:56 -05:00
stmclk treewide/stm32: Make CLOCK_HS* configurable 2022-11-03 11:37:28 +01:00
vectors cpu/stm32: Add Kconfig dependency modeling 2021-07-02 15:11:05 +02:00
cpu_common.c cpu/stm32: add initial support for stm32u5 family 2021-12-23 11:04:41 +01:00
cpu_init.c cpu: call early_init() 2023-01-08 22:26:12 +01:00
doc.txt treewide/stm32: Make CLOCK_HS* configurable 2022-11-03 11:37:28 +01:00
Kconfig cpu/stm32/kconfig: rework clock tree 2022-11-03 11:37:33 +01:00
Makefile cpu/stm32: only build bootloader when the module is loaded 2020-09-28 21:07:01 +02:00
Makefile.cmsis pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
Makefile.default cpu: make pm_layered a DEFAULT_MODULE 2021-01-27 13:21:20 +01:00
Makefile.dep cpu/stm32: improvement of USB driver selection 2022-11-03 13:52:01 +01:00
Makefile.features cpu/stm32: Implement periph/gpio_ll{,_irq} except for STM32F1 2022-04-22 14:34:57 +02:00
Makefile.include cpu/stm32: extend RAM with SRAM4 2022-01-02 15:43:37 +01:00
stm32_info.mk cpu/stm32: add initial support for stm32u5 family 2021-12-23 11:04:41 +01:00
stm32_line.mk cpu/stm32: Add STM32_LINE cases for STM32L1xxx6 2022-03-01 17:20:16 +01:00
stm32_mem_lengths.mk cpu/stm32: fix RAM_LEN for F427, F429, F437, F439 models 2022-11-15 22:29:34 +01:00
stm32_riotboot.mk cpu/stm32: introduce CPU_FAM_SHORT variable 2020-05-26 12:27:12 +02:00
stm32.config cpu/stm32: Add Kconfig dependency modeling 2021-07-02 15:11:05 +02:00