zephyr/boards/arm/qemu_cortex_m0/Kconfig.defconfig
Ioannis Glaropoulos 9145264ba9 boards: arm: qemu_cortex_m0: implement custom system clock driver
For the qemu_cortex_m0 we implement a custom system clock
driver based on the nRF51 TIMER peripheral. The system
clock is configured to run at 1 MHz frequency.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-10-02 21:06:54 -04:00

43 lines
786 B
Plaintext

# Kconfig - QEMU Cortex-M0 board configuration
#
# Copyright (c) 2019 Nordic Semiconductor ASA.
#
# SPDX-License-Identifier: Apache-2.0
if BOARD_QEMU_CORTEX_M0
config BOARD
default "qemu_cortex_m0"
if SYS_CLOCK_EXISTS
config NRF_TIMER_TIMER
bool "nRF Timer Counter (NRF_TIMER0) Timer"
depends on CLOCK_CONTROL
depends on SOC_COMPATIBLE_NRF
select TICKLESS_CAPABLE
default y
help
This module implements a kernel device driver for the nRF Timer
Counter NRF_TIMER0 and provides the standard "system clock driver"
interfaces.
config NRF_RTC_TIMER
default n
endif # SYS_CLOCK_EXISTS
config SYS_CLOCK_HW_CYCLES_PER_SEC
int
default 1000000
config SYS_CLOCK_TICKS_PER_SEC
int
default 100
config ENTROPY_NRF_FORCE_ALT
bool
default y
endif # BOARD_QEMU_CORTEX_M0