Skip to content

Commit ef3e192

Browse files
committed
boards/xg23-pk6068a: provide ZTIMER_LPTIMER configuration
1 parent bd60324 commit ef3e192

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

boards/xg23-pk6068a/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ config BOARD_XG23_PK6068A
2020

2121
# Put other features for this board (in alphabetical order)
2222
select HAVE_SAUL_GPIO
23+
select HAVE_ZTIMER_PERIPH_LPTIMER

boards/xg23-pk6068a/Makefile.dep

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
ifneq (,$(filter saul_default,$(USEMODULE)))
22
USEMODULE += saul_gpio
33
endif
4+
5+
ifneq (,$(filter ztimer_msec ztimer_sec,$(USEMODULE)))
6+
USEMODULE += ztimer_periph_lptimer
7+
endif

boards/xg23-pk6068a/include/board.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ extern "C" {
3535
*/
3636
#define PM_BLOCKER_INITIAL { 0, 0, 0 }
3737

38+
/**
39+
* @name ztimer configuration
40+
* @{
41+
*/
42+
#define CONFIG_ZTIMER_LPTIMER_DEV TIMER_DEV(1)
43+
#define CONFIG_ZTIMER_LPTIMER_FREQ LFXO_FREQ
44+
#define CONFIG_ZTIMER_LPTIMER_WIDTH 24
45+
#define CONFIG_ZTIMER_LPTIMER_BLOCK_PM_MODE EFM32_PM_MODE_EM3
46+
/** @} */
47+
3848
/**
3949
* @brief Power mode required for GPIO IRQs
4050
*

0 commit comments

Comments
 (0)