mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
doc: arduino: unify arduino include path and doc with rest of codebase
This commit is contained in:
parent
6046eacef6
commit
3a3e993c0c
@ -1,6 +1,8 @@
|
||||
# include optional dependencies
|
||||
include $(RIOTBOARD)/arduino-atmega-common/Makefile.dep
|
||||
|
||||
INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include
|
||||
|
||||
# define port used to flash the board
|
||||
OS = $(shell uname)
|
||||
ifeq ($(OS),Linux)
|
||||
|
@ -22,8 +22,8 @@
|
||||
* @author Laurent Navet <laurent.navet@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef BOARD_H
|
||||
#define BOARD_H
|
||||
#ifndef BOARD_COMMON_H
|
||||
#define BOARD_COMMON_H
|
||||
|
||||
#include "cpu.h"
|
||||
#include "arduino_pinmap.h"
|
||||
@ -106,5 +106,5 @@ void board_init(void);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* BOARD_H */
|
||||
#endif /* BOARD_COMMON_H */
|
||||
/** @} */
|
@ -3,9 +3,6 @@ export CPU = atmega328p
|
||||
|
||||
USEMODULE += arduino-atmega-common
|
||||
|
||||
# add arduino-atmega-common include path
|
||||
INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include
|
||||
|
||||
#export needed for flash rule
|
||||
export PORT_LINUX ?= /dev/ttyUSB0
|
||||
export PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
|
35
boards/arduino-duemilanove/include/board.h
Normal file
35
boards/arduino-duemilanove/include/board.h
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Freie Universität Berlin
|
||||
*
|
||||
* 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_arduino-duemilanove Arduino Duemilanove
|
||||
* @ingroup boards
|
||||
* @brief Support for the Arduino Duemilanove board
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Board specific definitions for the Arduino Duemilanove board
|
||||
*
|
||||
* @author Martine Lenders <m.lenders@fu-berlin.de>
|
||||
*/
|
||||
|
||||
#ifndef BOARD_H
|
||||
#define BOARD_H
|
||||
|
||||
#include "board_common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* BOARD_H */
|
||||
/** @} */
|
@ -3,9 +3,6 @@ export CPU = atmega2560
|
||||
|
||||
USEMODULE += arduino-atmega-common
|
||||
|
||||
# add arduino-atmega-common include path
|
||||
INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include
|
||||
|
||||
#export needed for flash rule
|
||||
export PORT_LINUX ?= /dev/ttyACM0
|
||||
export PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
@ -17,4 +14,4 @@ export FFLAGS += -p m2560
|
||||
# overridden for debugging (which requires changes that require to use an ISP)
|
||||
export PROGRAMMER ?= stk500v2
|
||||
|
||||
include $(RIOTBOARD)/arduino-atmega-common/Makefile.include
|
||||
include $(RIOTBOARD)/arduino-atmega-common/Makefile.include
|
||||
|
35
boards/arduino-mega2560/include/board.h
Normal file
35
boards/arduino-mega2560/include/board.h
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Freie Universität Berlin
|
||||
*
|
||||
* 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_arduino-mega2560 Arduino Mega 2560
|
||||
* @ingroup boards
|
||||
* @brief Support for the Arduino Mega 2560 board
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Board specific definitions for the Arduino Mega 2560 board
|
||||
*
|
||||
* @author Martine Lenders <m.lenders@fu-berlin.de>
|
||||
*/
|
||||
|
||||
#ifndef BOARD_H
|
||||
#define BOARD_H
|
||||
|
||||
#include "board_common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* BOARD_H */
|
||||
/** @} */
|
@ -3,9 +3,6 @@ export CPU = atmega328p
|
||||
|
||||
USEMODULE += arduino-atmega-common
|
||||
|
||||
# add arduino-atmega-common include path
|
||||
INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include
|
||||
|
||||
# export needed for flash rule
|
||||
export PORT_LINUX ?= /dev/ttyACM0
|
||||
export PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
|
35
boards/arduino-uno/include/board.h
Normal file
35
boards/arduino-uno/include/board.h
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Freie Universität Berlin
|
||||
*
|
||||
* 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_arduino-uno Arduino Uno
|
||||
* @ingroup boards
|
||||
* @brief Support for the Arduino Uno board
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Board specific definitions for the Arduino Uno board
|
||||
*
|
||||
* @author Martine Lenders <m.lenders@fu-berlin.de>
|
||||
*/
|
||||
|
||||
#ifndef BOARD_H
|
||||
#define BOARD_H
|
||||
|
||||
#include "board_common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* BOARD_H */
|
||||
/** @} */
|
Loading…
Reference in New Issue
Block a user