mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ef4b58f4f0
The QN908x CPU has several timer modules: one RTC (Real-Time Clock) that can count from the 32kHz internal clock or 32.768 kHz external clock, four CTIMER that use the APB clock and have four channels each and one SCT timer with up to 10 channels running on the AHB clock. This patch implements a timer driver for the CTIMER blocks only, which is enough to make the xtimer module work. Future patches should improve on this module to support using the RTC CNT2 32-bit free-running counter unit and/or the SCT timer.
25 lines
621 B
Plaintext
25 lines
621 B
Plaintext
# Copyright (c) 2020 iosabi
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
# directory for more details.
|
|
#
|
|
|
|
config BOARD
|
|
default "qn9080dk" if BOARD_QN9080DK
|
|
|
|
config BOARD_QN9080DK
|
|
bool
|
|
default y
|
|
select BOARD_COMMON_QN908X
|
|
select CPU_MODEL_QN9080XHN
|
|
|
|
# Put defined MCU peripherals here (in alphabetical order)
|
|
select BOARD_HAS_XTAL32K
|
|
select BOARD_HAS_XTAL_32M
|
|
select HAS_PERIPH_TIMER
|
|
select HAS_PERIPH_UART
|
|
select HAS_PERIPH_UART_MODECFG
|
|
|
|
source "$(RIOTBOARD)/common/qn908x/Kconfig"
|