-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14343 from leandrolanzieri/pr/kconfig/cc2538_base…
…d_symbols boards/cc2538-based: Model features in Kconfig
- Loading branch information
Showing
12 changed files
with
193 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (c) 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 BOARD | ||
default "cc2538dk" if BOARD_CC2538DK | ||
|
||
config BOARD_CC2538DK | ||
bool | ||
default y | ||
select CPU_MODEL_CC2538NF53 | ||
select HAS_PERIPH_ADC | ||
select HAS_PERIPH_I2C | ||
select HAS_PERIPH_SPI | ||
select HAS_PERIPH_TIMER | ||
select HAS_PERIPH_UART | ||
select HAS_EMULATOR_RENODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (c) 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 BOARD_COMMON_REMOTE | ||
bool | ||
default y | ||
select CPU_MODEL_CC2538SF53 | ||
select HAS_PERIPH_ADC | ||
select HAS_PERIPH_I2C | ||
select HAS_PERIPH_RTT | ||
select HAS_PERIPH_SPI | ||
select HAS_PERIPH_TIMER | ||
select HAS_PERIPH_UART |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (c) 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 BOARD | ||
default "firefly" if BOARD_FIREFLY | ||
|
||
config BOARD_FIREFLY | ||
bool | ||
default y | ||
select BOARD_COMMON_REMOTE | ||
|
||
source "$(RIOTBOARD)/common/remote/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (c) 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 BOARD | ||
default "openmote-b" if BOARD_OPENMOTE_B | ||
|
||
config BOARD_OPENMOTE_B | ||
bool | ||
default y | ||
select CPU_MODEL_CC2538SF53 | ||
select HAS_PERIPH_ADC | ||
select HAS_PERIPH_I2C | ||
select HAS_PERIPH_RTT | ||
select HAS_PERIPH_SPI | ||
select HAS_PERIPH_TIMER | ||
select HAS_PERIPH_UART |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 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 BOARD | ||
default "openmote-cc2538" if BOARD_OPENMOTE_CC2538 | ||
|
||
config BOARD_OPENMOTE_CC2538 | ||
bool | ||
default y | ||
select CPU_MODEL_CC2538SF53 | ||
select HAS_PERIPH_ADC | ||
select HAS_PERIPH_I2C | ||
select HAS_PERIPH_SPI | ||
select HAS_PERIPH_TIMER | ||
select HAS_PERIPH_UART |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (c) 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 BOARD | ||
default "remote-pa" if BOARD_REMOTE_PA | ||
|
||
config BOARD_REMOTE_PA | ||
bool | ||
default y | ||
select BOARD_COMMON_REMOTE | ||
|
||
source "$(RIOTBOARD)/common/remote/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (c) 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 BOARD | ||
default "remote-reva" if BOARD_REMOTE_REVA | ||
|
||
config BOARD_REMOTE_REVA | ||
bool | ||
default y | ||
select BOARD_COMMON_REMOTE | ||
|
||
source "$(RIOTBOARD)/common/remote/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (c) 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 BOARD | ||
default "remote-revb" if BOARD_REMOTE_REVB | ||
|
||
config BOARD_REMOTE_REVB | ||
bool | ||
default y | ||
select BOARD_COMMON_REMOTE | ||
|
||
source "$(RIOTBOARD)/common/remote/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright (c) 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_FAM_CC2538 | ||
bool | ||
select CPU_CORE_CORTEX_M3 | ||
select HAS_CPU_CC2538 | ||
select HAS_PERIPH_CPUID | ||
select HAS_PERIPH_GPIO | ||
select HAS_PERIPH_GPIO_IRQ | ||
select HAS_PERIPH_HWRNG | ||
select HAS_PERIPH_UART_MODECFG | ||
select HAS_CORTEXM_MPU | ||
select HAS_PUF_SRAM | ||
|
||
## CPU Models | ||
config CPU_MODEL_CC2538NF53 | ||
bool | ||
select CPU_FAM_CC2538 | ||
|
||
config CPU_MODEL_CC2538SF53 | ||
bool | ||
select CPU_FAM_CC2538 | ||
|
||
## Definition of specific features | ||
config HAS_CPU_CC2538 | ||
bool | ||
help | ||
Indicates that a 'cc2538' cpu is being used. | ||
|
||
## Common CPU symbols | ||
config CPU_FAM | ||
default "cc2538" if CPU_FAM_CC2538 | ||
|
||
config CPU_MODEL | ||
default "cc2538nf53" if CPU_MODEL_CC2538NF53 | ||
default "cc2538sf53" if CPU_MODEL_CC2538SF53 | ||
|
||
config CPU | ||
default "cc2538" if CPU_FAM_CC2538 | ||
|
||
source "$(RIOTCPU)/cortexm_common/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters