-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6afe7e2
commit feb21b6
Showing
22 changed files
with
1,159 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
# Wattuino RC | ||
rc.name=Wattuino RC | ||
rc.vid.0=0x1D50 | ||
rc.pid.0=0x6112 | ||
rc.vid.1=0x1D50 | ||
rc.pid.1=0x6113 | ||
rc.bootloader.tool=openocd | ||
rc.bootloader.file=rc_sambar.bin | ||
rc.bootloader.size=0x4000 | ||
rc.bootloader.NVMCTRL_BOOTPROT=0x01 | ||
rc.upload.tool=bossac | ||
rc.upload.protocol=sam-ba | ||
rc.upload.maximum_size=262144 | ||
rc.upload.use_1200bps_touch=true | ||
rc.upload.wait_for_upload_port=true | ||
rc.upload.native_usb=true | ||
rc.build.mcu=cortex-m0plus | ||
rc.build.f_cpu=48000000L | ||
rc.build.board=SAMD_MKR1000 | ||
rc.build.variant=wattuino_rc | ||
rc.build.core=arduino:arduino | ||
rc.build.extra_flags=-D__SAMD21G18A__ {build.usb_flags} | ||
rc.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld | ||
rc.build.openocdscript=openocd_scripts/arduino_zero.cfg | ||
rc.build.vid=0x1D50 | ||
rc.build.pid=0x6113 | ||
rc.build.usb_product="Wattuino RC" | ||
rc.build.usb_manufacturer="Watterott" |
Binary file not shown.
Binary file not shown.
80 changes: 80 additions & 0 deletions
80
software/Arduino/hardware/watterott/samd/drivers/sam-bar.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
|
||
[Strings] | ||
DriverPackageDisplayName="USB Serial Port Driver" | ||
ManufacturerName="Watterott" | ||
ServiceName="USB RS-232 Emulation Driver" | ||
robotics.loader="Eitech Robotics Bootloader" | ||
robotics.sketch="Eitech Robotics" | ||
sambar.loader="SAM-BAR Bootloader" | ||
sambar.sketch="SAM-BAR Sketch" | ||
|
||
[DefaultInstall] | ||
CopyINF=sam-bar.inf | ||
|
||
[Version] | ||
Class=Ports | ||
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} | ||
Signature="$Windows NT$" | ||
Provider=%ManufacturerName% | ||
DriverPackageDisplayName=%DriverPackageDisplayName% | ||
CatalogFile=sam-bar.cat | ||
DriverVer=01/01/2017,1.0.0.0 | ||
|
||
[Manufacturer] | ||
%ManufacturerName%=DeviceList, NTamd64, NTia64 | ||
|
||
[DestinationDirs] | ||
FakeModemCopyFileSection=12 | ||
DefaultDestDir=12 | ||
|
||
[DeviceList] | ||
%robotics.loader%=DriverInstall, USB\VID_1D50&PID_6110 | ||
%robotics.sketch%=DriverInstall, USB\VID_1D50&PID_6111 | ||
%robotics.loader%=DriverInstall, USB\VID_1D50&PID_6110&MI_00 | ||
%robotics.sketch%=DriverInstall, USB\VID_1D50&PID_6111&MI_00 | ||
%sambar.loader%=DriverInstall, USB\VID_1D50&PID_6112 | ||
%sambar.sketch%=DriverInstall, USB\VID_1D50&PID_6113 | ||
%sambar.loader%=DriverInstall, USB\VID_1D50&PID_6112&MI_00 | ||
%sambar.sketch%=DriverInstall, USB\VID_1D50&PID_6113&MI_00 | ||
|
||
[DeviceList.NTamd64] | ||
%robotics.loader%=DriverInstall, USB\VID_1D50&PID_6110 | ||
%robotics.sketch%=DriverInstall, USB\VID_1D50&PID_6111 | ||
%robotics.loader%=DriverInstall, USB\VID_1D50&PID_6110&MI_00 | ||
%robotics.sketch%=DriverInstall, USB\VID_1D50&PID_6111&MI_00 | ||
%sambar.loader%=DriverInstall, USB\VID_1D50&PID_6112 | ||
%sambar.sketch%=DriverInstall, USB\VID_1D50&PID_6113 | ||
%sambar.loader%=DriverInstall, USB\VID_1D50&PID_6112&MI_00 | ||
%sambar.sketch%=DriverInstall, USB\VID_1D50&PID_6113&MI_00 | ||
|
||
[DeviceList.NTia64] | ||
%robotics.loader%=DriverInstall, USB\VID_1D50&PID_6110 | ||
%robotics.sketch%=DriverInstall, USB\VID_1D50&PID_6111 | ||
%robotics.loader%=DriverInstall, USB\VID_1D50&PID_6110&MI_00 | ||
%robotics.sketch%=DriverInstall, USB\VID_1D50&PID_6111&MI_00 | ||
%sambar.loader%=DriverInstall, USB\VID_1D50&PID_6112 | ||
%sambar.sketch%=DriverInstall, USB\VID_1D50&PID_6113 | ||
%sambar.loader%=DriverInstall, USB\VID_1D50&PID_6112&MI_00 | ||
%sambar.sketch%=DriverInstall, USB\VID_1D50&PID_6113&MI_00 | ||
|
||
[DriverInstall] | ||
include=mdmcpq.inf,usb.inf | ||
CopyFiles=FakeModemCopyFileSection | ||
AddReg=DriverAddReg | ||
|
||
[DriverAddReg] | ||
HKR,,DevLoader,,*ntkern | ||
HKR,,NTMPDriver,,usbser.sys | ||
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" | ||
|
||
[DriverInstall.Services] | ||
include=mdmcpq.inf | ||
AddService=usbser, 0x00000002, DriverService | ||
|
||
[DriverService] | ||
DisplayName=%ServiceName% | ||
ServiceType=1 | ||
StartType=3 | ||
ErrorControl=1 | ||
ServiceBinary=%12%\usbser.sys | ||
LoadOrderGroup=Base |
21 changes: 21 additions & 0 deletions
21
software/Arduino/hardware/watterott/samd/libraries/Wattuino_RC/examples/Blink/Blink.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Blink Example | ||
* | ||
* Turns on an LED for one second, then off for one second, repeatedly. | ||
*/ | ||
|
||
// setup function, runs once when you press reset or power the board | ||
void setup() | ||
{ | ||
// J1...J7 have LEDs | ||
pinMode(RCJ1, OUTPUT); // initialize pin as an output | ||
} | ||
|
||
// loop function, runs over and over again forever | ||
void loop() | ||
{ | ||
digitalWrite(RCJ1, HIGH); // turn LED on (HIGH is the voltage level) | ||
delay(1000); // wait for a second | ||
digitalWrite(RCJ1, LOW); // turn LED off by making the voltage LOW | ||
delay(1000); // wait for a second | ||
} |
Binary file added
BIN
+9.16 KB
...are/Arduino/hardware/watterott/samd/libraries/Wattuino_RC/examples/Blink/binary/FLASH.BIN
Binary file not shown.
50 changes: 50 additions & 0 deletions
50
...re/Arduino/hardware/watterott/samd/libraries/Wattuino_RC/examples/Blink_All/Blink_All.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Blink Example | ||
* | ||
* Turns on all LEDs for one second, then off for one second, repeatedly. | ||
*/ | ||
|
||
// setup function, runs once when you press reset or power the board | ||
void setup() | ||
{ | ||
// initialize pins as outputs | ||
pinMode(LED_BUILTIN, OUTPUT); | ||
pinMode(RCJ1, OUTPUT); | ||
pinMode(RCJ2, OUTPUT); | ||
pinMode(RCJ3, OUTPUT); | ||
pinMode(RCJ4, OUTPUT); | ||
pinMode(RCJ5, OUTPUT); | ||
pinMode(RCJ6, OUTPUT); | ||
pinMode(RCJ7, OUTPUT); | ||
pinMode(RCS1, OUTPUT); | ||
} | ||
|
||
// loop function, runs over and over again forever | ||
void loop() | ||
{ | ||
// turn LEDs on (HIGH is the voltage level) | ||
digitalWrite(LED_BUILTIN, HIGH); | ||
digitalWrite(RCJ1, HIGH); | ||
digitalWrite(RCJ2, HIGH); | ||
digitalWrite(RCJ3, HIGH); | ||
digitalWrite(RCJ4, HIGH); | ||
digitalWrite(RCJ5, HIGH); | ||
digitalWrite(RCJ6, HIGH); | ||
digitalWrite(RCJ7, HIGH); | ||
digitalWrite(RCS1, HIGH); | ||
|
||
delay(1000); // wait for a second | ||
|
||
// turn LEDs off by making the voltage LOW | ||
digitalWrite(LED_BUILTIN, LOW); | ||
digitalWrite(RCJ1, LOW); | ||
digitalWrite(RCJ2, LOW); | ||
digitalWrite(RCJ3, LOW); | ||
digitalWrite(RCJ4, LOW); | ||
digitalWrite(RCJ5, LOW); | ||
digitalWrite(RCJ6, LOW); | ||
digitalWrite(RCJ7, LOW); | ||
digitalWrite(RCS1, LOW); | ||
|
||
delay(1000); // wait for a second | ||
} |
Binary file added
BIN
+9.35 KB
...Arduino/hardware/watterott/samd/libraries/Wattuino_RC/examples/Blink_All/binary/FLASH.BIN
Binary file not shown.
9 changes: 9 additions & 0 deletions
9
software/Arduino/hardware/watterott/samd/libraries/Wattuino_RC/library.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name=Wattuino RC | ||
version=1.0.0 | ||
author=Watterott | ||
maintainer=Watterott | ||
sentence=Wattuino RC | ||
paragraph=Wattuino RC | ||
category=Other | ||
url=https://github.com/watterott/wattuino | ||
architectures=* |
1 change: 1 addition & 0 deletions
1
software/Arduino/hardware/watterott/samd/libraries/Wattuino_RC/src/Wattuino_RC.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//empty file, workaround for libraries containing only examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
# Watterott SAMD Core and Platform | ||
# -------------------------------- | ||
|
||
name=Watterott SAMD Boards (ARM Cortex-M0+) | ||
version=1.0.0 | ||
|
||
# BOSSA | ||
|
||
tools.bossac.path={runtime.tools.bossac.path} | ||
tools.bossac.cmd=bossac | ||
tools.bossac.cmd.windows=bossac.exe | ||
|
||
tools.bossac.upload.params.verbose=-i -d | ||
tools.bossac.upload.params.quiet= | ||
tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -U {upload.native_usb} -i -e -w -v "{build.path}/{build.project_name}.bin" -R | ||
|
||
tools.bossac_remote.upload.pattern=/usr/bin/run-bossac {upload.verbose} --port=ttyATH0 -U {upload.native_usb} -e -w -v /tmp/sketch.bin -R | ||
|
||
# OpenOCD sketch upload | ||
|
||
tools.openocd.path={runtime.tools.openocd.path} | ||
tools.openocd.cmd=bin/openocd | ||
tools.openocd.cmd.windows=bin/openocd.exe | ||
|
||
tools.openocd.upload.params.verbose=-d2 | ||
tools.openocd.upload.params.quiet=-d0 | ||
tools.openocd.upload.pattern="{path}/{cmd}" {upload.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; program {{{build.path}/{build.project_name}.bin}} verify reset {bootloader.size}; shutdown" | ||
|
||
tools.openocd.program.params.verbose=-d2 | ||
tools.openocd.program.params.quiet=-d0 | ||
tools.openocd.program.pattern="{path}/{cmd}" {program.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; program {{{build.path}/{build.project_name}.elf}} verify reset; shutdown" | ||
|
||
tools.openocd.erase.params.verbose=-d3 | ||
tools.openocd.erase.params.quiet=-d0 | ||
tools.openocd.erase.pattern= | ||
|
||
tools.openocd.bootloader.params.verbose=-d2 | ||
tools.openocd.bootloader.params.quiet=-d0 | ||
tools.openocd.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; init; halt; at91samd bootloader 0; program {{{runtime.platform.path}/bootloaders/{bootloader.file}}} verify reset; shutdown" |
31 changes: 31 additions & 0 deletions
31
software/Arduino/hardware/watterott/samd/variants/wattuino_rc/debug_scripts/variant.gdb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# Arduino Zero OpenOCD script. | ||
# | ||
# 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 | ||
# | ||
|
||
# Define 'reset' command | ||
define reset | ||
|
||
info reg | ||
|
||
break main | ||
|
||
# End of 'reset' command | ||
end | ||
|
||
target remote | openocd -c "interface cmsis-dap" -c "set CHIPNAME at91samd21g18" -f target/at91samdXX.cfg -c "gdb_port pipe; log_output openocd.log" |
Oops, something went wrong.