raiden00pl opened a new pull request, #19297:
URL: https://github.com/apache/nuttx/pull/19297
## Summary
Replace the divergent board conventions for the timer input clock frequency
with a single uniform convention provided by every board:
- `STM32_APBx_TIMn_CLKIN` and `BOARD_TIMn_FREQUENCY` -> `STM32_TIMn_CLKIN`
- `STM32_APBx_LPTIMn_CLKIN`, `BOARD_LPTIMn_FREQUENCY` and
`STM32_LPTIMn_FREQUENCY` -> `STM32_LPTIMn_CLKIN`
All STM32 consumers (tim/lptim/pwm/adc/dac/capture/sdadc/dfsdm/pulsecount)
updated to match; the timer input clock is now bus-agnostic in the drivers.
Boards that carried the same timer clock in more than one convention now
define `STM32_TIMn_CLKIN` exactly once, derived from the APB bus clock (PCLKx
with the x2 doubler when the APB prescaler is greater than 1), instead of
redefining it with a second, sometimes different, value.
BREAKING CHANGE: The timer input-clock board macros `STM32_APBx_TIMn_CLKIN`,
`BOARD_TIMn_FREQUENCY`, `STM32_APBx_LPTIMn_CLKIN`, `BOARD_LPTIMn_FREQUENCY` and
`STM32_LPTIMn_FREQUENCY` are removed in favor of `STM32_TIMn_CLKIN` and
`STM32_LPTIMn_CLKIN`. Out-of-tree boards must define `STM32_TIMn_CLKIN` /
`STM32_LPTIMn_CLKIN` (drop the APB bus from the name, keep the value), and
out-of-tree drivers referencing the old names must be updated.
## Impact
unification of the last greatest divergence between STM32 ports.
## Testing
CI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]