Commit a3ac43fc authored by Wojciech Dubowik's avatar Wojciech Dubowik Committed by Sandeep Mistry

Add Seeed Studio Arch Link support

[[http://wiki.seeedstudio.com/Arch_Link/]]
Signed-off-by: default avatarWojciech Dubowik <Wojciech.Dubowik@gmail.com>
parent 9d6b7848
...@@ -39,3 +39,4 @@ script: ...@@ -39,3 +39,4 @@ script:
- buildExampleSketch sandeepmistry:nRF5:hackaBLE 01.Basics Blink - buildExampleSketch sandeepmistry:nRF5:hackaBLE 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:Sinobit 01.Basics BareMinimum - buildExampleSketch sandeepmistry:nRF5:Sinobit 01.Basics BareMinimum
- buildExampleSketch sandeepmistry:nRF5:DWM1001-DEV 01.Basics Blink - buildExampleSketch sandeepmistry:nRF5:DWM1001-DEV 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:SeeedArchLink 01.Basics Blink
...@@ -108,6 +108,7 @@ Become a sponsor and get your logo on our README on Github with a link to your s ...@@ -108,6 +108,7 @@ Become a sponsor and get your logo on our README on Github with a link to your s
* [ng-beacon](https://github.com/urish/ng-beacon) * [ng-beacon](https://github.com/urish/ng-beacon)
* [TinyBLE](https://www.seeedstudio.com/Seeed-Tiny-BLE-BLE-%2B-6DOF-Mbed-Platform-p-2268.html) * [TinyBLE](https://www.seeedstudio.com/Seeed-Tiny-BLE-BLE-%2B-6DOF-Mbed-Platform-p-2268.html)
* [Sino:bit](http://sinobit.org) * [Sino:bit](http://sinobit.org)
* [SeeedArchLink](http://wiki.seeedstudio.com/Arch_Link/)
## Installing ## Installing
......
...@@ -948,3 +948,43 @@ DWM1001-DEV.menu.softdevice.s132.softdeviceversion=2.0.1 ...@@ -948,3 +948,43 @@ DWM1001-DEV.menu.softdevice.s132.softdeviceversion=2.0.1
DWM1001-DEV.menu.softdevice.s132.upload.maximum_size=409600 DWM1001-DEV.menu.softdevice.s132.upload.maximum_size=409600
DWM1001-DEV.menu.softdevice.s132.build.extra_flags=-DNRF52 -DS132 -DNRF51_S132 DWM1001-DEV.menu.softdevice.s132.build.extra_flags=-DNRF52 -DS132 -DNRF51_S132
DWM1001-DEV.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa.ld DWM1001-DEV.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa.ld
SeeedArchLink.name=Seeed Arch Link
SeeedArchLink.upload.tool=sandeepmistry:openocd
SeeedArchLink.upload.target=nrf51
SeeedArchLink.upload.protocol=cmsis-dap
SeeedArchLink.upload.maximum_size=262144
SeeedArchLink.bootloader.tool=sandeepmistry:openocd
SeeedArchLink.build.mcu=cortex-m0
SeeedArchLink.build.f_cpu=16000000
SeeedArchLink.build.board=ARCHLINK
SeeedArchLink.build.core=nRF5
SeeedArchLink.build.variant=SeeedArchLink
SeeedArchLink.build.variant_system_lib=
SeeedArchLink.build.extra_flags=-DNRF51
SeeedArchLink.build.float_flags=
SeeedArchLink.build.ldscript=nrf51_xxaa.ld
SeeedArchLink.build.lfclk_flags=-DUSE_LFXO
SeeedArchLink.menu.softdevice.none=None
SeeedArchLink.menu.softdevice.none.softdevice=none
SeeedArchLink.menu.softdevice.none.softdeviceversion=
SeeedArchLink.menu.softdevice.s110=S110
SeeedArchLink.menu.softdevice.s110.softdevice=s110
SeeedArchLink.menu.softdevice.s110.softdeviceversion=8.0.0
SeeedArchLink.menu.softdevice.s110.upload.maximum_size=151552
SeeedArchLink.menu.softdevice.s110.build.extra_flags=-DNRF51 -DS110 -DNRF51_S110
SeeedArchLink.menu.softdevice.s110.build.ldscript=armgcc_s110_nrf51822_xxaa.ld
SeeedArchLink.menu.softdevice.s130=S130
SeeedArchLink.menu.softdevice.s130.softdevice=s130
SeeedArchLink.menu.softdevice.s130.softdeviceversion=2.0.1
SeeedArchLink.menu.softdevice.s130.upload.maximum_size=151552
SeeedArchLink.menu.softdevice.s130.build.extra_flags=-DNRF51 -DS130 -DNRF51_S130
SeeedArchLink.menu.softdevice.s130.build.ldscript=armgcc_s130_nrf51822_xxaa.ld
/*
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// API compatibility
#include "variant.h"
/*
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
Copyright (c) 2016 Sandeep Mistry All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "variant.h"
const uint32_t g_ADigitalPinMap[] = {
// D0 - D7
7, //RX
8, //TX
9, //W5500 interrupt
10,
11, //SS_SDCARD
12,
13,
17, //W5500 reset
// D8 - D13
18,
23,
24, //SS_W5500
25, //SPI MOSI
28, //SPI MISO
29, //SPI SCK
// A0 - A6
1,
2,
3,
4,
5, //I2C SDA
6, //I2C SDA
30, //LED
// AREF
0,
};
/*
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
Copyright (c) 2016 Sandeep Mistry All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _VARIANT_ARCHLINK_
#define _VARIANT_ARCHLINK_
/** Master clock frequency */
#define VARIANT_MCK (16000000ul)
/*----------------------------------------------------------------------------
* Headers
*----------------------------------------------------------------------------*/
#include "WVariant.h"
#ifdef __cplusplus
extern "C"
{
#endif // __cplusplus
// Number of pins defined in PinDescription array
#define PINS_COUNT (22u)
#define NUM_DIGITAL_PINS (22u)
#define NUM_ANALOG_INPUTS (7u)
#define NUM_ANALOG_OUTPUTS (0u)
// LEDs
#define PIN_LED1 (20)
#define LED_BUILTIN PIN_LED1
/*
* Analog pins
*/
#define PIN_A0 (14)
#define PIN_A1 (15)
#define PIN_A2 (16)
#define PIN_A3 (17)
#define PIN_A4 (18)
#define PIN_A5 (19)
#define PIN_A6 (20)
static const uint8_t A0 = PIN_A0 ;
static const uint8_t A1 = PIN_A1 ;
static const uint8_t A2 = PIN_A2 ;
static const uint8_t A3 = PIN_A3 ;
static const uint8_t A4 = PIN_A4 ;
static const uint8_t A5 = PIN_A5 ;
static const uint8_t A6 = PIN_A6 ;
#define ADC_RESOLUTION 10
// Other pins
#define PIN_AREF (21)
static const uint8_t AREF = PIN_AREF;
/*
* SPI Interfaces
*/
#define SPI_INTERFACES_COUNT 1
#define PIN_SPI_MISO (12)
#define PIN_SPI_MOSI (11)
#define PIN_SPI_SCK (13)
static const uint8_t SS = 10 ;
static const uint8_t MOSI = PIN_SPI_MOSI ;
static const uint8_t MISO = PIN_SPI_MISO ;
static const uint8_t SCK = PIN_SPI_SCK ;
static const uint8_t SDCARD_SS = 4 ;
/*
* Wire Interfaces
*/
#define WIRE_INTERFACES_COUNT 1
#define PIN_WIRE_SDA (18)
#define PIN_WIRE_SCL (19)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
/*
* Serial interfaces
*/
// Serial
#define PIN_SERIAL_RX (0)
#define PIN_SERIAL_TX (1)
#ifdef __cplusplus
}
#endif
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment