mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +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)
|
# Put other features for this board (in alphabetical order)
|
||||||
select HAVE_SAUL_GPIO
|
select HAVE_SAUL_GPIO
|
||||||
|
select HAVE_ZTIMER_PERIPH_LPTIMER
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||||
USEMODULE += saul_gpio
|
USEMODULE += saul_gpio
|
||||||
endif
|
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 }
|
#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
|
* @brief Power mode required for GPIO IRQs
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user