Merge pull request #15794 from fjmolinas/pr_fix_posix_sleep
tests/posix_sleep: fix for invalid RTT configurations
This commit is contained in:
commit
5bc7555ae7
@ -274,6 +274,7 @@ static const i2c_conf_t i2c_config[] = {
|
|||||||
#ifndef RTT_FREQUENCY
|
#ifndef RTT_FREQUENCY
|
||||||
#define RTT_FREQUENCY (32768U) /* in Hz. For changes see `rtt.c` */
|
#define RTT_FREQUENCY (32768U) /* in Hz. For changes see `rtt.c` */
|
||||||
#endif
|
#endif
|
||||||
|
#define RTT_MIN_OFFSET (10U)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -135,7 +135,7 @@ static const uart_conf_t uart_config[] = {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#ifndef RTT_FREQUENCY
|
#ifndef RTT_FREQUENCY
|
||||||
#define RTT_FREQUENCY (1) /* in Hz */
|
#define RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* in Hz */
|
||||||
#endif
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|||||||
@ -117,7 +117,7 @@ static const spi_conf_t spi_config[] = {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#ifndef RTT_FREQUENCY
|
#ifndef RTT_FREQUENCY
|
||||||
#define RTT_FREQUENCY (1) /* in Hz */
|
#define RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* in Hz */
|
||||||
#endif
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,12 @@ include ../Makefile.tests_common
|
|||||||
|
|
||||||
USEMODULE += posix_sleep
|
USEMODULE += posix_sleep
|
||||||
|
|
||||||
# Pull-in periph-rtt on board that provides this feature to switch to the RTT
|
# These CPU families have a non configurable RTT of 1Hz, not enough for
|
||||||
# backend of ztimer
|
# ztimer_msec to run on periph_rtt
|
||||||
FEATURES_OPTIONAL += periph_rtt
|
ifeq (,$(filter efm32 kinetis,$(CPU)))
|
||||||
|
# Pull-in periph-rtt on boards that provide this feature to switch to
|
||||||
|
# the RTT backend of ztimer
|
||||||
|
FEATURES_OPTIONAL += periph_rtt
|
||||||
|
endif
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user