1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/xg23-pk6068a: provide ZTIMER_LPTIMER configuration

This commit is contained in:
Jue 2022-10-26 20:53:14 +02:00 committed by Juergen Fitschen
parent bd603249a5
commit ef3e192bc0
3 changed files with 15 additions and 0 deletions

View File

@ -20,3 +20,4 @@ config BOARD_XG23_PK6068A
# Put other features for this board (in alphabetical order)
select HAVE_SAUL_GPIO
select HAVE_ZTIMER_PERIPH_LPTIMER

View File

@ -1,3 +1,7 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif
ifneq (,$(filter ztimer_msec ztimer_sec,$(USEMODULE)))
USEMODULE += ztimer_periph_lptimer
endif

View File

@ -35,6 +35,16 @@ extern "C" {
*/
#define PM_BLOCKER_INITIAL { 0, 0, 0 }
/**
* @name ztimer configuration
* @{
*/
#define CONFIG_ZTIMER_LPTIMER_DEV TIMER_DEV(1)
#define CONFIG_ZTIMER_LPTIMER_FREQ LFXO_FREQ
#define CONFIG_ZTIMER_LPTIMER_WIDTH 24
#define CONFIG_ZTIMER_LPTIMER_BLOCK_PM_MODE EFM32_PM_MODE_EM3
/** @} */
/**
* @brief Power mode required for GPIO IRQs
*