Skip to content
Snippets Groups Projects
Unverified Commit be9a65a5 authored by Francisco Acosta's avatar Francisco Acosta Committed by GitHub
Browse files

Merge pull request #7092 from aabadie/mkrfox1200

boards/arduino-mkrfox1200: add initial implementation (without SigFox)
parents 14911c18 6e0dfcec
No related branches found
No related tags found
No related merge requests found
MODULE = board
DIRS = $(RIOTBOARD)/common/arduino-mkr
include $(RIOTBASE)/Makefile.base
include $(RIOTBOARD)/common/arduino-mkr/Makefile.dep
include $(RIOTBOARD)/common/arduino-mkr/Makefile.features
-include $(RIOTCPU)/samd21/Makefile.features
USEMODULE += boards_common_arduino-mkr
ifeq ($(PROGRAMMER),jlink)
export MKR_JLINK_DEVICE = atsamd21
endif
include $(RIOTBOARD)/common/arduino-mkr/Makefile.include
# add arduino-mkrfox1200 include path
INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
/**
* @defgroup boards_arduino-mkrfox1200 Arduino MKRFOX1200
* @ingroup boards
* @brief Support for the Arduino MKRFOX1200 board.
*
* ### General information
*
* The [Arduino MKRFOX1200](https://www.arduino.cc/en/Main.ArduinoBoardMKRFox1200) board is
* a learning and development board that provides Sigfox connectivity and is
* powered by an Atmel SAMD21 microcontroller.
*
* ### Pinout
*
* <img src="https://www.arduino.cc/en/uploads/Main/MKR1000_pinout.png"
* alt="Arduino MKRFOX1200 pinout" style="height:800px;"/>
*
* ### Flash the board
*
* 1. Put the board in bootloader mode by double tapping the reset button.<br/>
* When the board is in bootloader mode, the user led (green) oscillates
* smoothly.
*
*
* 2. Use `BOARD=arduino-mkrfox1200` with the `make` command.<br/>
* Example with `hello-world` application:
* ```
* make BOARD=arduino-mkrfox1200 -C examples/hello-world flash
* ```
*
* ### Accessing STDIO via UART
*
* To access the STDIO of RIOT, a FTDI to USB converter needs to be plugged to
* the RX/TX pins on the board.
*/
\ No newline at end of file
/*
* Copyright (C) 2017 Inria
*
* 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.
*/
/**
* @ingroup boards_arduino-mkrfox1200
* @{
*
* @file
* @brief Board specific definitions for the Arduino MKRFOX1200
* board
*
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
*/
#ifndef BOARD_H
#define BOARD_H
#include "cpu.h"
#include "periph_conf.h"
#include "board_common.h"
#include "arduino_pinmap.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief The on-board LED is connected to pin 6 on this board
*/
#define ARDUINO_LED (6U)
/**
* @name LED pin definitions and handlers
* @{
*/
#define LED0_PIN GPIO_PIN(PA, 20)
#define LED_PORT PORT->Group[PA]
#define LED0_MASK (1 << 20)
#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* BOARD_H */
/** @} */
...@@ -4,6 +4,7 @@ BOARD_INSUFFICIENT_MEMORY := airfy-beacon \ ...@@ -4,6 +4,7 @@ BOARD_INSUFFICIENT_MEMORY := airfy-beacon \
arduino-duemilanove \ arduino-duemilanove \
arduino-mega2560 \ arduino-mega2560 \
arduino-mkr1000 \ arduino-mkr1000 \
arduino-mkrfox1200 \
arduino-mkrzero \ arduino-mkrzero \
arduino-uno \ arduino-uno \
arduino-zero \ arduino-zero \
...@@ -82,6 +83,7 @@ DISABLE_TEST_FOR_ARM7 := tests-relic tests-cpp_% ...@@ -82,6 +83,7 @@ DISABLE_TEST_FOR_ARM7 := tests-relic tests-cpp_%
ARM_CORTEX_M_BOARDS := airfy-beacon \ ARM_CORTEX_M_BOARDS := airfy-beacon \
arduino-due \ arduino-due \
arduino-mkr1000 \ arduino-mkr1000 \
arduino-mkrfox1200 \
arduino-mkrzero \ arduino-mkrzero \
arduino-zero \ arduino-zero \
b-l072z-lrwan1 \ b-l072z-lrwan1 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment