Skip to content

Commit

Permalink
boards/common: clean up msba2 common files
Browse files Browse the repository at this point in the history
The 'msba2' common files have accumulated many empty files are files that
do nothing.
This makes reasoning about the boards needlessly difficult.

Trim down on `common/msba2/` so that it now only contains the setup for the
UART/bootloader based flashing.

This should eventuelly be moved to `makefiles/tools/`
  • Loading branch information
benpicco committed Nov 16, 2019
1 parent e52c92e commit 60686c9
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 59 deletions.
2 changes: 0 additions & 2 deletions boards/avsextrem/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MODULE = board

DIRS = $(RIOTBOARD)/common/msba2

include $(RIOTBASE)/Makefile.base
4 changes: 3 additions & 1 deletion boards/avsextrem/Makefile.dep
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
include $(RIOTBOARD)/common/msba2/Makefile.dep
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
USEMODULE += cc1100
endif
4 changes: 2 additions & 2 deletions boards/avsextrem/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
CPU = lpc2387

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_rtc
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart

# Various other features (if any)

include $(RIOTBOARD)/common/msba2/Makefile.features
2 changes: 0 additions & 2 deletions boards/avsextrem/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
USEMODULE += boards_common_msba2

include $(RIOTBOARD)/common/msba2/Makefile.include
3 changes: 2 additions & 1 deletion boards/avsextrem/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@

#ifndef BOARD_H
#define BOARD_H

#include "lpc2387.h"
#include "bitarithm.h"
#include "msba2_common.h"

#ifdef __cplusplus
extern "C" {
Expand Down
3 changes: 0 additions & 3 deletions boards/common/msba2/Makefile

This file was deleted.

Empty file removed boards/common/msba2/Makefile.dep
Empty file.
1 change: 0 additions & 1 deletion boards/common/msba2/Makefile.features

This file was deleted.

2 changes: 0 additions & 2 deletions boards/common/msba2/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ include $(RIOTMAKE)/tools/serial.inc.mk

FLASHFILE ?= $(HEXFILE)
FFLAGS = $(PROG_DEV) $(FLASHFILE)

INCLUDES += -I$(RIOTBOARD)/common/msba2/include
36 changes: 0 additions & 36 deletions boards/common/msba2/include/msba2_common.h

This file was deleted.

2 changes: 0 additions & 2 deletions boards/msba2/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MODULE = board

DIRS = $(RIOTBOARD)/common/msba2

include $(RIOTBASE)/Makefile.base
2 changes: 0 additions & 2 deletions boards/msba2/Makefile.dep
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include $(RIOTBOARD)/common/msba2/Makefile.dep

ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
USEMODULE += cc1100
endif
Expand Down
4 changes: 2 additions & 2 deletions boards/msba2/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CPU = lpc2387

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_pwm
FEATURES_PROVIDED += periph_rtc
Expand All @@ -6,5 +8,3 @@ FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart

# Various other features (if any)

include $(RIOTBOARD)/common/msba2/Makefile.features
2 changes: 0 additions & 2 deletions boards/msba2/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
USEMODULE += boards_common_msba2

include $(RIOTBOARD)/common/msba2/Makefile.include
include $(RIOTMAKE)/tools/openocd.inc.mk
2 changes: 1 addition & 1 deletion boards/msba2/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef BOARD_H
#define BOARD_H

#include "msba2_common.h"
#include "lpc2387.h"
#include "bitarithm.h"

#ifdef __cplusplus
Expand Down

0 comments on commit 60686c9

Please sign in to comment.