Skip to content

Commit

Permalink
cpu/lpc23xx: Add Kconfig symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrolanzieri committed Jul 16, 2020
1 parent c71c2b7 commit 110793b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions cpu/lpc23xx/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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_LPC23XX
bool
select CPU_CORE_ARM7TDMI_S
select HAS_BACKUP_RAM
select HAS_CPU_LPC23XX
select HAS_PERIPH_DAC
select HAS_PERIPH_GPIO
select HAS_PERIPH_GPIO_IRQ
select HAS_PERIPH_TIMER_PERIODIC

## CPU Models
config CPU_MODEL_LPC2387
bool
select CPU_FAM_LPC23XX

config CPU_MODEL_LPC2388
bool
select CPU_FAM_LPC23XX

## Declaration of specific features
config HAS_CPU_LPC23XX
bool
help
Indicates that an 'lpc23xx' cpu is being used.

## Common CPU symbols
config CPU_FAM
default "lpc23xx" if CPU_FAM_LPC23XX

config CPU_MODEL
default "lpc2387" if CPU_MODEL_LPC2387
default "lpc2388" if CPU_MODEL_LPC2388

config CPU
default "lpc23xx" if CPU_FAM_LPC23XX

source "$(RIOTCPU)/arm7_common/Kconfig"
2 changes: 1 addition & 1 deletion cpu/lpc23xx/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ FEATURES_PROVIDED += periph_dac
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
FEATURES_PROVIDED += periph_timer_periodic

-include $(RIOTCPU)/arm7_common/Makefile.features
include $(RIOTCPU)/arm7_common/Makefile.features

0 comments on commit 110793b

Please sign in to comment.