mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 10:33:49 +01:00
boards/common: clean up msba2 common files
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/`
This commit is contained in:
parent
e52c92eb42
commit
60686c96dc
@ -1,5 +1,3 @@
|
|||||||
MODULE = board
|
MODULE = board
|
||||||
|
|
||||||
DIRS = $(RIOTBOARD)/common/msba2
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
|||||||
@ -1 +1,3 @@
|
|||||||
include $(RIOTBOARD)/common/msba2/Makefile.dep
|
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
|
||||||
|
USEMODULE += cc1100
|
||||||
|
endif
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
CPU = lpc2387
|
||||||
|
|
||||||
# Put defined MCU peripherals here (in alphabetical order)
|
# Put defined MCU peripherals here (in alphabetical order)
|
||||||
FEATURES_PROVIDED += periph_rtc
|
FEATURES_PROVIDED += periph_rtc
|
||||||
FEATURES_PROVIDED += periph_spi
|
FEATURES_PROVIDED += periph_spi
|
||||||
@ -5,5 +7,3 @@ FEATURES_PROVIDED += periph_timer
|
|||||||
FEATURES_PROVIDED += periph_uart
|
FEATURES_PROVIDED += periph_uart
|
||||||
|
|
||||||
# Various other features (if any)
|
# Various other features (if any)
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/msba2/Makefile.features
|
|
||||||
|
|||||||
@ -1,3 +1 @@
|
|||||||
USEMODULE += boards_common_msba2
|
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/msba2/Makefile.include
|
include $(RIOTBOARD)/common/msba2/Makefile.include
|
||||||
|
|||||||
@ -22,8 +22,9 @@
|
|||||||
|
|
||||||
#ifndef BOARD_H
|
#ifndef BOARD_H
|
||||||
#define BOARD_H
|
#define BOARD_H
|
||||||
|
|
||||||
|
#include "lpc2387.h"
|
||||||
#include "bitarithm.h"
|
#include "bitarithm.h"
|
||||||
#include "msba2_common.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
MODULE = boards_common_msba2
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
|
||||||
@ -1 +0,0 @@
|
|||||||
CPU = lpc2387
|
|
||||||
@ -21,5 +21,3 @@ include $(RIOTMAKE)/tools/serial.inc.mk
|
|||||||
|
|
||||||
FLASHFILE ?= $(HEXFILE)
|
FLASHFILE ?= $(HEXFILE)
|
||||||
FFLAGS = $(PROG_DEV) $(FLASHFILE)
|
FFLAGS = $(PROG_DEV) $(FLASHFILE)
|
||||||
|
|
||||||
INCLUDES += -I$(RIOTBOARD)/common/msba2/include
|
|
||||||
|
|||||||
@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2014 Kaspar Schleiser <kaspar@schleiser.de>
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @defgroup boards_common_msba2 MSB-A2 common
|
|
||||||
* @ingroup boards_common
|
|
||||||
* @brief Shared files and configuration for all MSB-A2 boards.
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file
|
|
||||||
* @brief MSB-A2 Common Board Definitions
|
|
||||||
*
|
|
||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
|
||||||
*/
|
|
||||||
#ifndef MSBA2_COMMON_H
|
|
||||||
#define MSBA2_COMMON_H
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include "lpc2387.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
#endif /* MSBA2_COMMON_H */
|
|
||||||
@ -1,5 +1,3 @@
|
|||||||
MODULE = board
|
MODULE = board
|
||||||
|
|
||||||
DIRS = $(RIOTBOARD)/common/msba2
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
include $(RIOTBOARD)/common/msba2/Makefile.dep
|
|
||||||
|
|
||||||
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
|
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
|
||||||
USEMODULE += cc1100
|
USEMODULE += cc1100
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
CPU = lpc2387
|
||||||
|
|
||||||
# Put defined MCU peripherals here (in alphabetical order)
|
# Put defined MCU peripherals here (in alphabetical order)
|
||||||
FEATURES_PROVIDED += periph_pwm
|
FEATURES_PROVIDED += periph_pwm
|
||||||
FEATURES_PROVIDED += periph_rtc
|
FEATURES_PROVIDED += periph_rtc
|
||||||
@ -6,5 +8,3 @@ FEATURES_PROVIDED += periph_timer
|
|||||||
FEATURES_PROVIDED += periph_uart
|
FEATURES_PROVIDED += periph_uart
|
||||||
|
|
||||||
# Various other features (if any)
|
# Various other features (if any)
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/msba2/Makefile.features
|
|
||||||
|
|||||||
@ -1,4 +1,2 @@
|
|||||||
USEMODULE += boards_common_msba2
|
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/msba2/Makefile.include
|
include $(RIOTBOARD)/common/msba2/Makefile.include
|
||||||
include $(RIOTMAKE)/tools/openocd.inc.mk
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
#ifndef BOARD_H
|
#ifndef BOARD_H
|
||||||
#define BOARD_H
|
#define BOARD_H
|
||||||
|
|
||||||
#include "msba2_common.h"
|
#include "lpc2387.h"
|
||||||
#include "bitarithm.h"
|
#include "bitarithm.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user