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:
parent
bd603249a5
commit
ef3e192bc0
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user