mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
boards/nrf5340dk-app: enable periph_rtt and add its configuration
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
parent
f6286d8171
commit
1f5414b3cd
@ -11,6 +11,7 @@ config BOARD_NRF5340DK_APP
|
||||
bool
|
||||
default y
|
||||
select CPU_MODEL_NRF5340_APP
|
||||
select HAS_PERIPH_RTT
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_HW_FC
|
||||
|
@ -2,6 +2,7 @@ CPU_MODEL = nrf5340_app
|
||||
CPU = nrf53
|
||||
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
FEATURES_PROVIDED += periph_rtt
|
||||
FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
FEATURES_PROVIDED += periph_uart_hw_fc
|
||||
|
@ -75,6 +75,24 @@ static const uart_conf_t uart_config[] = {
|
||||
#define UART_NUMOF ARRAY_SIZE(uart_config) /**< UART configuration NUMOF */
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Real time counter configuration
|
||||
* @{
|
||||
*/
|
||||
#ifndef RTT_DEV
|
||||
#define RTT_DEV (0) /**< NRF_RTC0_S */
|
||||
#endif
|
||||
|
||||
#define RTT_MAX_VALUE (0x00ffffff) /**< 24bit */
|
||||
#define RTT_MAX_FREQUENCY (32768U) /**< in Hz */
|
||||
#define RTT_MIN_FREQUENCY (8U) /**< in Hz */
|
||||
#define RTT_CLOCK_FREQUENCY (32768U) /**< in Hz, LFCLK*/
|
||||
|
||||
#ifndef RTT_FREQUENCY
|
||||
#define RTT_FREQUENCY (1024U) /**< in Hz */
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user