Skip to content

Commit

Permalink
cpu/atxmega: Fix features config
Browse files Browse the repository at this point in the history
Update features definitions and configurations.  Now atxmega define
features that only are full available on all variations and do not
require any definition at periph_conf.h file.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
  • Loading branch information
nandojve committed Aug 17, 2021
1 parent 64aac3a commit 2d3f7bf
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 18 deletions.
8 changes: 1 addition & 7 deletions boards/atxmega-a1u-xpro/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ config BOARD_ATXMEGA_A1U_XPRO
bool
default y
select CPU_MODEL_XMEGA128A1U
select HAS_PERIPH_CPUID
select HAS_PERIPH_GPIO
select HAS_PERIPH_GPIO_IRQ

select HAS_PERIPH_I2C
select HAS_PERIPH_NVM
select HAS_PERIPH_PM
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_TIMER_PERIODIC
select HAS_PERIPH_UART

select HAVE_SAUL_GPIO
4 changes: 4 additions & 0 deletions boards/atxmega-a1u-xpro/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
CPU_MODEL = atxmega128a1u

FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_uart

include $(RIOTBOARD)/common/atxmega/Makefile.features
8 changes: 1 addition & 7 deletions boards/atxmega-a3bu-xplained/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ config BOARD_ATXMEGA_A3BU_XPLAINED
bool
default y
select CPU_MODEL_XMEGA256A3BU
select HAS_PERIPH_CPUID
select HAS_PERIPH_GPIO
select HAS_PERIPH_GPIO_IRQ

select HAS_PERIPH_I2C
select HAS_PERIPH_NVM
select HAS_PERIPH_PM
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_TIMER_PERIODIC
select HAS_PERIPH_UART

select HAVE_SAUL_GPIO
4 changes: 4 additions & 0 deletions boards/atxmega-a3bu-xplained/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
CPU_MODEL = atxmega256a3bu

FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_uart

include $(RIOTBOARD)/common/atxmega/Makefile.features
1 change: 0 additions & 1 deletion cpu/atxmega/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ config CPU_COMMON_ATXMEGA
select HAS_PERIPH_PM
select HAS_PERIPH_TIMER
select HAS_PERIPH_TIMER_PERIODIC
select HAS_PERIPH_UART

config CPU_CORE_ATXMEGA_A1
bool
Expand Down
3 changes: 0 additions & 3 deletions cpu/atxmega/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ include $(RIOTCPU)/avr8_common/Makefile.features
FEATURES_PROVIDED += cpu_core_atxmega
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_nvm
FEATURES_PROVIDED += periph_pm
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer periph_timer_periodic
FEATURES_PROVIDED += periph_uart

0 comments on commit 2d3f7bf

Please sign in to comment.