mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
7044699388
- add support for multiple timers - add support for selecting clock source in the board's `periph_conf.h` - add support for the prescaler - implement `periph_timer_query_freqs` - add a second timer to all MSP430 boards - the first timer is fast ticking, high-power - the second is slow ticking, low-power
61 lines
1.4 KiB
Plaintext
61 lines
1.4 KiB
Plaintext
# Copyright (c) 2020 Freie Universitaet Berlin
|
|
# 2020 HAW Hamburg
|
|
#
|
|
# 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 CPU_ARCH_MSP430
|
|
bool
|
|
imply MODULE_NEWLIB_NANO
|
|
select HAS_ARCH_16BIT
|
|
select HAS_ARCH_MSP430
|
|
select HAS_CPU_MSP430
|
|
select HAS_DBGPIN
|
|
select HAS_NEWLIB
|
|
select HAS_PERIPH_FLASHPAGE
|
|
select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE
|
|
select HAS_PERIPH_FLASHPAGE_PAGEWISE
|
|
select HAS_PERIPH_PM
|
|
select HAS_PERIPH_TIMER_QUERY_FREQS
|
|
select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG
|
|
|
|
config HAS_CPU_MSP430
|
|
bool
|
|
help
|
|
Indicates that an 'MSP430' CPU is being used.
|
|
|
|
config CPU_MSP430
|
|
bool
|
|
select CPU_ARCH_MSP430
|
|
|
|
choice LIBC_IMPLEMENTATION
|
|
default MODULE_NEWLIB
|
|
endchoice
|
|
|
|
## Common CPU symbols
|
|
config CPU_ARCH
|
|
default "msp430" if CPU_MSP430
|
|
|
|
config CPU
|
|
default "msp430" if CPU_MSP430
|
|
|
|
config CPU_CORE
|
|
default "msp430" if CPU_MSP430
|
|
|
|
## Definition of specific features
|
|
config HAS_ARCH_MSP430
|
|
bool
|
|
help
|
|
Indicates that the current architecture is MSP430.
|
|
|
|
## Specific default configuration values
|
|
config GNRC_PKTBUF_SIZE
|
|
default 2560
|
|
depends on KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC
|
|
|
|
source "$(RIOTCPU)/msp430/periph/Kconfig"
|
|
source "$(RIOTCPU)/msp430/kconfigs/x1xx/Kconfig"
|
|
source "$(RIOTCPU)/msp430/kconfigs/f2xx_g2xx/Kconfig"
|