Skip to content

Commit

Permalink
boards/samr30-xpro: added ztimer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jue89 committed May 8, 2020
1 parent 4fa2a30 commit 962825a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/samr30-xpro/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ endif
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif

ifneq (,$(filter ztimer_msec,$(USEMODULE)))
USEMODULE += ztimer_periph_rtt
endif
8 changes: 8 additions & 0 deletions boards/samr30-xpro/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ enum {
#endif
/** @} */

/**
* @name ztimer configuration
* @{
*/
#define CONFIG_ZTIMER_USEC_ADJUST (16)
#define CONFIG_ZTIMER_USEC_REQUIRED_PM_MODE (1)
/** @} */

/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/
Expand Down

0 comments on commit 962825a

Please sign in to comment.