1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/msp430/Kconfig
Marian Buschsieweke ff7f8ae2f0
cpu/msp430: reorganize code
RIOT supports two distinct families of the MSP430: The [MSP430 x1xx]
MCU family and the [MSP430 F2xx/G2xx] MCU family. For both incompatible
MCU families the code was located in the msp430fxyz folder, resulting
in case of the UART driver in particularly bizarre code looking roughly
like this:

    #ifndef UART_USE_USCI
    /* implementation of x1xx peripheral ... */
    #else
    /* implementation of F2xx/G2xx peripheral ... */
    #endif
    /* zero shared code between both variants */

This splits the peripheral drivers for USCI and USART serial IP blocks
into separate files and relocates everything in cpu/msp430, similar to
how cpu/stm32 is organized.

[MSP430 x1xx]: https://www.ti.com/lit/ug/slau049f/slau049f.pdf
[MSP430 F2xx/G2xx]: https://www.ti.com/lit/ug/slau144k/slau144k.pdf
2023-06-19 17:14:57 +02:00

60 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 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"