# Copyright (c) 2014-2017 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

##########################################
##### WEIDOS-MKR1010 #####################
##########################################
# --------------------
weidosMKR1010.name=WEIDOS-MKR1010
weidosMKR1010.vid.0=0x2341
weidosMKR1010.pid.0=0x8054
weidosMKR1010.vid.1=0x2341
weidosMKR1010.pid.1=0x0054

weidosMKR1010.upload.tool=bossac
weidosMKR1010.upload.protocol=sam-ba
weidosMKR1010.upload.maximum_size=262144
weidosMKR1010.upload.maximum_data_size=32768
weidosMKR1010.upload.use_1200bps_touch=true
weidosMKR1010.upload.wait_for_upload_port=true
weidosMKR1010.upload.native_usb=true
weidosMKR1010.build.mcu=cortex-m0plus
weidosMKR1010.build.f_cpu=48000000L
weidosMKR1010.build.usb_product="Arduino MKR WiFi 1010"
weidosMKR1010.build.usb_manufacturer="Arduino LLC"
weidosMKR1010.build.board=SAMD_MKRWIFI1010
weidosMKR1010.build.core=weidmuller
weidosMKR1010.build.extra_flags=-DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ {build.usb_flags} -DUSE_BQ24195L_PMIC -DEXTENDED_PIN_MODE -DHAS_MCP23008
weidosMKR1010.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
weidosMKR1010.build.openocdscript=openocd_scripts/arduino_zero.cfg
weidosMKR1010.build.variant=mkrwifi1010
weidosMKR1010.build.vid=0x2341
weidosMKR1010.build.pid=0x8054
weidosMKR1010.bootloader.tool=openocd
weidosMKR1010.bootloader.file=mkrwifi1010/samd21_sam_ba_arduino_mkrwifi1010.bin
#weidosMKR1010.arduinoota.extraflags=-d

##########################################
##### WEIDOS-MKR1010-LORA ################
##########################################
# --------------------
weidosMKR1010LoRa.name=WEIDOS-MKR1010-LORA
weidosMKR1010LoRa.vid.0=0x2341
weidosMKR1010LoRa.pid.0=0x8054
weidosMKR1010LoRa.vid.1=0x2341
weidosMKR1010LoRa.pid.1=0x0054

weidosMKR1010LoRa.upload.tool=bossac
weidosMKR1010LoRa.upload.protocol=sam-ba
weidosMKR1010LoRa.upload.maximum_size=262144
weidosMKR1010LoRa.upload.maximum_data_size=32768
weidosMKR1010LoRa.upload.use_1200bps_touch=true
weidosMKR1010LoRa.upload.wait_for_upload_port=true
weidosMKR1010LoRa.upload.native_usb=true
weidosMKR1010LoRa.build.mcu=cortex-m0plus
weidosMKR1010LoRa.build.f_cpu=48000000L
weidosMKR1010LoRa.build.usb_product="Arduino MKR WiFi 1010"
weidosMKR1010LoRa.build.usb_manufacturer="Arduino LLC"
weidosMKR1010LoRa.build.board=SAMD_MKRWIFI1010
weidosMKR1010LoRa.build.core=weidmuller
weidosMKR1010LoRa.build.extra_flags=-DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ {build.usb_flags} -DUSE_BQ24195L_PMIC -DEXTENDED_PIN_MODE
weidosMKR1010LoRa.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
weidosMKR1010LoRa.build.openocdscript=openocd_scripts/arduino_zero.cfg
weidosMKR1010LoRa.build.variant=mkrwifi1010
weidosMKR1010LoRa.build.vid=0x2341
weidosMKR1010LoRa.build.pid=0x8054
weidosMKR1010LoRa.bootloader.tool=openocd
weidosMKR1010LoRa.bootloader.file=mkrwifi1010/samd21_sam_ba_arduino_mkrwifi1010.bin
#weidosMKR1010LoRa.arduinoota.extraflags=-d

##########################################
##### WEIDOS-MKR1010-GPRS ################
##########################################
# --------------------
weidosMKR1010GPRS.name=WEIDOS-MKR1010-GPRS
weidosMKR1010GPRS.vid.0=0x2341
weidosMKR1010GPRS.pid.0=0x8054
weidosMKR1010GPRS.vid.1=0x2341
weidosMKR1010GPRS.pid.1=0x0054

weidosMKR1010GPRS.upload.tool=bossac
weidosMKR1010GPRS.upload.protocol=sam-ba
weidosMKR1010GPRS.upload.maximum_size=262144
weidosMKR1010GPRS.upload.maximum_data_size=32768
weidosMKR1010GPRS.upload.use_1200bps_touch=true
weidosMKR1010GPRS.upload.wait_for_upload_port=true
weidosMKR1010GPRS.upload.native_usb=true
weidosMKR1010GPRS.build.mcu=cortex-m0plus
weidosMKR1010GPRS.build.f_cpu=48000000L
weidosMKR1010GPRS.build.usb_product="Arduino MKR WiFi 1010"
weidosMKR1010GPRS.build.usb_manufacturer="Arduino LLC"
weidosMKR1010GPRS.build.board=SAMD_MKRWIFI1010
weidosMKR1010GPRS.build.core=weidmuller
weidosMKR1010GPRS.build.extra_flags=-DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ {build.usb_flags} -DUSE_BQ24195L_PMIC -DEXTENDED_PIN_MODE
weidosMKR1010GPRS.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
weidosMKR1010GPRS.build.openocdscript=openocd_scripts/arduino_zero.cfg
weidosMKR1010GPRS.build.variant=mkrwifi1010
weidosMKR1010GPRS.build.vid=0x2341
weidosMKR1010GPRS.build.pid=0x8054
weidosMKR1010GPRS.bootloader.tool=openocd
weidosMKR1010GPRS.bootloader.file=mkrwifi1010/samd21_sam_ba_arduino_mkrwifi1010.bin
#weidosMKR1010GPRS.arduinoota.extraflags=-d
