-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19770: cpu/nrf5x_common: reset all available CC channels r=maribu a=dylad ### Contribution description Properly reset all CC channels of a given timer at initialization (except the last one which seems to be used for capture only in the driver). The issue with the previous code was that some CCs were not clear on some nRF52 MCUs. For instance, nRF52840 has 4 CCs for its two first timers, then 6 CCs for all others. nRF9160 and nRF5340 also have 6 CCs for all its timer peripherals. Thus, loop through the reported number of channels and clear the associated register instead of hardcoding the first 3 CC channels. ### Testing procedure CI should be enough I think. ### Issues/PRs references None. 19773: cpu/nrf{52,9160}: remove duplicate sevonpend bit r=maribu a=dylad ### Contribution description This PR removes duplicate calls of `SCB_SCR_SEVONPEND` bit in nRF52 and nRF9160. This call is already done [here](https://github.com/RIOT-OS/RIOT/blob/7c320055a1d83f8fc2a9e16562a72c700bb3e01c/cpu/cortexm_common/cortexm_init.c#L60) ### Testing procedure Flash a nRF52 or nRF9160-based board and check that the board is still alive. ### Issues/PRs references None. I notice this duplicate call when porting nRF53. 19774: boards/frdm-k22f: fixes long lines in periph_conf.h r=maribu a=hugueslarrive 19775: boards/frdm-k64f: fixes long lines and comma separated by whitespaces… r=maribu a=hugueslarrive … warnings Co-authored-by: Dylan Laduranty <dylan.laduranty@mesotic.com> Co-authored-by: dylad <dylan.laduranty@mesotic.com> Co-authored-by: Hugues Larrive <hlarrive@pm.me>
- Loading branch information
Showing
5 changed files
with
140 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters