Compare commits
270 commits
samd51-rev
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d601f43c0 | ||
|
|
907ace489f | ||
|
|
bfe6eb363a | ||
|
|
97f6be6ab6 | ||
|
|
6651f9558c | ||
|
|
6785401969 | ||
|
|
87214f13bd | ||
|
|
66b69dd388 | ||
|
|
7ccb9f2bd6 | ||
|
|
646381978b | ||
|
|
62114694ce | ||
|
|
d00e77dba4 | ||
|
|
bb87d43ba1 | ||
|
|
c05ce500cb | ||
|
|
03e62e7f2d | ||
|
|
6947ffca8b | ||
|
|
b3e13dfbe0 | ||
|
|
acdf9fba4f | ||
|
|
291610433b | ||
|
|
a346c82e2d | ||
|
|
cff6957ca3 | ||
|
|
39d1033f4c | ||
|
|
96ff48dc9b | ||
|
|
a9a42f2af4 | ||
|
|
246e826e91 | ||
|
|
c78cd6f2dd | ||
|
|
32c4433628 | ||
|
|
70b7c881bb | ||
|
|
71dfe62ff6 | ||
|
|
5ebe947a43 | ||
|
|
70bcb3af4d | ||
|
|
d2bb4865ac | ||
|
|
3d1607e782 | ||
|
|
52b1656fa2 | ||
|
|
99b6683a6e | ||
|
|
e50b44a836 | ||
|
|
0ae9e5a7fa | ||
|
|
69afdc9270 | ||
|
|
feb8ed3c25 | ||
|
|
6997c56f2d | ||
|
|
445c3ada36 | ||
|
|
561596b4f0 | ||
|
|
9a019664e2 | ||
|
|
dd4c4ce33c | ||
|
|
aa52a8c29b | ||
|
|
ce8a3923e1 | ||
|
|
5ffa584702 | ||
|
|
82cd95d3c5 | ||
|
|
63b4c6f529 | ||
|
|
5f3168c4da | ||
|
|
06c6126f60 | ||
|
|
2a38099130 | ||
|
|
df1c6c838b | ||
|
|
c50bb52c01 | ||
|
|
c7949999ed | ||
|
|
e2938da1e2 | ||
|
|
2a71824446 | ||
|
|
7c8134edd5 | ||
|
|
af0416c8ec | ||
|
|
b6aa95c6a3 | ||
|
|
82694d12e9 | ||
|
|
c23e123618 | ||
|
|
5729d9c93f | ||
|
|
b7dffef38b | ||
|
|
56ce473c04 | ||
|
|
a0c198afe4 | ||
|
|
fc0acb0c50 | ||
|
|
164ac15919 | ||
|
|
c2bf7622b8 | ||
|
|
c4b557e226 | ||
|
|
a89ceb7f27 | ||
|
|
accf14e78d | ||
|
|
62e7c4b15b | ||
|
|
602b05ab04 | ||
|
|
2030810878 | ||
|
|
401ac6953e | ||
|
|
b3291f4500 | ||
|
|
4260c08e09 | ||
|
|
75c330ed49 | ||
|
|
52424257d9 | ||
|
|
cc71ede119 | ||
|
|
4f513fee2a | ||
|
|
23d5a57653 | ||
|
|
74cc3b30ab | ||
|
|
6a35639103 | ||
|
|
708dd9d5a0 | ||
|
|
1013bc682e | ||
|
|
6ef421ecc4 | ||
|
|
6c33d79e9d | ||
|
|
93da06e93d | ||
|
|
65b220d1dd | ||
|
|
fcae2760be | ||
|
|
96c7aaa40f | ||
|
|
8816ca26c6 | ||
|
|
28ef110f7d | ||
|
|
0358e3735a | ||
|
|
1f86cd3f60 | ||
|
|
a6c2ac3114 | ||
|
|
a796181a24 | ||
|
|
7186df5512 | ||
|
|
9517dd2a36 | ||
|
|
42c41a07c3 | ||
|
|
1eaee86a28 | ||
|
|
a7a454132f | ||
|
|
09c839bacc | ||
|
|
e88dd3a523 | ||
|
|
4fdf0fece2 | ||
|
|
926fb6e726 | ||
|
|
fc07de0ffd | ||
|
|
efdf9b63b1 | ||
|
|
49723b4a25 | ||
|
|
855dbb8f43 | ||
|
|
52bb46c379 | ||
|
|
572caca483 | ||
|
|
fe9b8b4088 | ||
|
|
94cb0fa441 | ||
|
|
1c026815b6 | ||
|
|
fa80209eaf | ||
|
|
e1d727f860 | ||
|
|
f5f7461a0c | ||
|
|
b8e5b80dae | ||
|
|
3e6e7c0ff4 | ||
|
|
545ddacc50 | ||
|
|
f435a9c016 | ||
|
|
6011ff06ed | ||
|
|
3b8f9b6313 | ||
|
|
3caf280e24 | ||
|
|
9d9a8a88e3 | ||
|
|
a4d8af3d4f | ||
|
|
a1bd1a8ba7 | ||
|
|
865da2fd31 | ||
|
|
586d4b3a25 | ||
|
|
885954dc8d | ||
|
|
f1504a316d | ||
|
|
93cbf96cd1 | ||
|
|
565042c513 | ||
|
|
c92c7d5987 | ||
|
|
6e768a4fe4 | ||
|
|
1aa63e6b4f | ||
|
|
44185f98c7 | ||
|
|
18a14fdc56 | ||
|
|
322ffca5cb | ||
|
|
1097814e5e | ||
|
|
fea6552608 | ||
|
|
dc9d022662 | ||
|
|
47b2b9af62 | ||
|
|
b1c616f103 | ||
|
|
c6e4a8e7bc | ||
|
|
6404a45b9e | ||
|
|
33f1e40553 | ||
|
|
edb6eb2a6c | ||
|
|
b7a130b618 | ||
|
|
d8dcad0f98 | ||
|
|
2e5ac4999a | ||
|
|
b9e9e70e98 | ||
|
|
a2fa250358 | ||
|
|
19656ba6a3 | ||
|
|
61b7505c0e | ||
|
|
4c2e73e7a0 | ||
|
|
1e9d3f6d14 | ||
|
|
d05db91def | ||
|
|
c0f3813d77 | ||
|
|
a698ed4ad7 | ||
|
|
34689e380f | ||
|
|
cca088cf06 | ||
|
|
5193a1ab12 | ||
|
|
84a17bf900 | ||
|
|
318ae09410 | ||
|
|
bc732dc087 | ||
|
|
3ebec6bf9c | ||
|
|
25deea9d30 | ||
|
|
17cf5763a9 | ||
|
|
d03ea2cf84 | ||
|
|
1b32e2512e | ||
|
|
aa533190e8 | ||
|
|
54521e1809 | ||
|
|
7678bf03b1 | ||
|
|
328e5da918 | ||
|
|
dec2fb702c | ||
|
|
1e0d5530ad | ||
|
|
84b2ba9aa9 | ||
|
|
fc4760b351 | ||
|
|
5cc2bd2f11 | ||
|
|
43d2e442b1 | ||
|
|
7f6f361e41 | ||
|
|
310e335e60 | ||
|
|
79065b96b0 | ||
|
|
cfdd5baeb1 | ||
|
|
b977d70c04 | ||
|
|
0d0115a644 | ||
|
|
f061870c84 | ||
|
|
5c7bf80cbb | ||
|
|
98c2743a9a | ||
|
|
6098ca498e | ||
|
|
4c9dfd1fd1 | ||
|
|
27f21856e0 | ||
|
|
889385d13d | ||
|
|
9b5d358a32 | ||
|
|
209d795792 | ||
|
|
797305f59b | ||
|
|
b444a0913a | ||
|
|
200da5b71e | ||
|
|
ac223d3852 | ||
|
|
c1df3a53e9 | ||
|
|
0d796e4c5b | ||
|
|
e0dfbe4877 | ||
|
|
201566000b | ||
|
|
4bf0d7b465 | ||
|
|
f65c3238fc | ||
|
|
c44317fb10 | ||
|
|
c9bad99f2c | ||
|
|
9c88421a1a | ||
|
|
f0258fe1fd | ||
|
|
e4478e316b | ||
|
|
cb6ce4a23a | ||
|
|
7d17cf4b9f | ||
|
|
7c2f33d3d1 | ||
|
|
f5fd25e9f7 | ||
|
|
ebe34f660b | ||
|
|
458205cc26 | ||
|
|
56abc28c58 | ||
|
|
ee5bd3c2cd | ||
|
|
32e8aae2be | ||
|
|
16f7be6940 | ||
|
|
4ce22c7c6a | ||
|
|
3f4c7c5d9d | ||
|
|
ebdadb0573 | ||
|
|
2d4ec73596 | ||
|
|
aa3e166332 | ||
|
|
887cc309fc | ||
|
|
f356c879e7 | ||
|
|
d6d3f14659 | ||
|
|
fa9ef5823d | ||
|
|
e9eda4a001 | ||
|
|
a26dd19b30 | ||
|
|
888044a5a7 | ||
|
|
0a2294c8a2 | ||
|
|
e24af36ec5 | ||
|
|
0aa0c6319a | ||
|
|
7429335756 | ||
|
|
3d28a31356 | ||
|
|
c92ac1db1a | ||
|
|
e915f77a18 | ||
|
|
db34342304 | ||
|
|
b29e00cd58 | ||
|
|
9a319c005d | ||
|
|
df9936d8e0 | ||
|
|
349664da9b | ||
|
|
a10516ec1e | ||
|
|
24c994647e | ||
|
|
3178c06507 | ||
|
|
da0c4c5997 | ||
|
|
f966246f38 | ||
|
|
a04c6632df | ||
|
|
c0214879d1 | ||
|
|
07f1c54a97 | ||
|
|
8a798db800 | ||
|
|
c91ce29a48 | ||
|
|
1933b8cf5c | ||
|
|
bdcd5b3f31 | ||
|
|
7e6819e218 | ||
|
|
509d60db6d | ||
|
|
bfc2ca5333 | ||
|
|
8a2bfea981 | ||
|
|
82bda093a6 | ||
|
|
8c98abd6b0 | ||
|
|
1f706a115c | ||
|
|
414d1eb6e5 | ||
|
|
5abc3553ef | ||
|
|
fd6b9027a4 |
303 changed files with 298722 additions and 246 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -7,3 +7,4 @@ Makefile.user
|
|||
node_modules
|
||||
scripts/clean-ifaces/*.plist
|
||||
.vscode/c_cpp_properties.json
|
||||
TAGS
|
||||
|
|
|
|||
10
.gitignore.bk
Normal file
10
.gitignore.bk
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
build/
|
||||
.vs/
|
||||
uf2-bootloader.elf
|
||||
tmp
|
||||
*.sw?
|
||||
Makefile.user
|
||||
node_modules
|
||||
scripts/clean-ifaces/*.plist
|
||||
.vscode/c_cpp_properties.json
|
||||
TAGS
|
||||
|
|
@ -15,12 +15,12 @@ node_js:
|
|||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/gcc-arm-none-eabi-6-2017-q1-update
|
||||
- $HOME/gcc-arm-none-eabi-9-2019-q4-major
|
||||
|
||||
install:
|
||||
- export GCC_DIR=$HOME/gcc-arm-none-eabi-6-2017-q1-update
|
||||
- export GCC_ARCHIVE=$HOME/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2
|
||||
- export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/6_1-2017q1/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2?product=GNU%20ARM%20Embedded%20Toolchain,64-bit,,Linux,6-2017-q1-update
|
||||
- export GCC_DIR=$HOME/gcc-arm-none-eabi-9-2019-q4-major
|
||||
- export GCC_ARCHIVE=$HOME/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
|
||||
- export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
|
||||
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-g++ ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME; fi
|
||||
- export PATH=$PATH:$GCC_DIR/bin
|
||||
|
||||
|
|
|
|||
58
Makefile
Normal file → Executable file
58
Makefile
Normal file → Executable file
|
|
@ -42,7 +42,7 @@ endif
|
|||
|
||||
LDFLAGS= $(COMMON_FLAGS) \
|
||||
-Wall -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common \
|
||||
-Wl,--warn-section-align -Wl,--warn-unresolved-symbols \
|
||||
-Wl,--warn-section-align \
|
||||
-save-temps -nostartfiles \
|
||||
--specs=nano.specs --specs=nosys.specs
|
||||
BUILD_PATH=build/$(BOARD)
|
||||
|
|
@ -56,14 +56,20 @@ INCLUDES += -Ilib/samd21/samd21a/include/
|
|||
endif
|
||||
|
||||
ifeq ($(CHIP_FAMILY), samd51)
|
||||
ifeq ($(findstring SAME54,$(CHIP_VARIANT)),SAME54)
|
||||
INCLUDES += -Ilib/same54/include/
|
||||
else
|
||||
INCLUDES += -Ilib/samd51/include/
|
||||
endif
|
||||
endif
|
||||
|
||||
COMMON_SRC = \
|
||||
src/flash_$(CHIP_FAMILY).c \
|
||||
src/init_$(CHIP_FAMILY).c \
|
||||
src/startup_$(CHIP_FAMILY).c \
|
||||
src/usart_sam_ba.c \
|
||||
src/screen.c \
|
||||
src/images.c \
|
||||
src/utils.c
|
||||
|
||||
SOURCES = $(COMMON_SRC) \
|
||||
|
|
@ -86,7 +92,9 @@ EXECUTABLE=$(BUILD_PATH)/$(NAME).bin
|
|||
SELF_EXECUTABLE=$(BUILD_PATH)/update-$(NAME).uf2
|
||||
SELF_EXECUTABLE_INO=$(BUILD_PATH)/update-$(NAME).ino
|
||||
|
||||
all: dirs $(EXECUTABLE) $(SELF_EXECUTABLE)
|
||||
SUBMODULES = lib/uf2/README.md
|
||||
|
||||
all: $(SUBMODULES) dirs $(EXECUTABLE) $(SELF_EXECUTABLE)
|
||||
|
||||
r: run
|
||||
b: burn
|
||||
|
|
@ -98,6 +106,40 @@ burn: all
|
|||
|
||||
run: burn wait logs
|
||||
|
||||
# This currently only works on macOS with a BMP debugger attached.
|
||||
# It's meant to flash the bootloader in a loop.
|
||||
BMP = $(shell ls -1 /dev/cu.usbmodem* | head -1)
|
||||
BMP_ARGS = --nx -ex "set mem inaccessible-by-default off" -ex "set confirm off" -ex "target extended-remote $(BMP)" -ex "mon tpwr enable" -ex "mon swdp_scan" -ex "attach 1"
|
||||
GDB = arm-none-eabi-gdb
|
||||
|
||||
bmp-flash: $(BUILD_PATH)/$(NAME).bin
|
||||
@test "X$(BMP)" != "X"
|
||||
$(GDB) $(BMP_ARGS) -ex "load" -ex "quit" $(BUILD_PATH)/$(NAME).elf | tee build/flash.log
|
||||
@grep -q "Transfer rate" build/flash.log
|
||||
|
||||
bmp-flashone:
|
||||
while : ; do $(MAKE) bmp-flash && exit 0 ; sleep 1 ; done
|
||||
afplay /System/Library/PrivateFrameworks/ScreenReader.framework/Versions/A/Resources/Sounds/Error.aiff
|
||||
|
||||
bmp-loop:
|
||||
while : ; do $(MAKE) bmp-flashone ; sleep 5 ; done
|
||||
|
||||
bmp-gdb: $(BUILD_PATH)/$(NAME).bin
|
||||
$(GDB) $(BMP_ARGS) $(BUILD_PATH)/$(NAME).elf
|
||||
|
||||
$(BUILD_PATH)/flash.jlink: $(BUILD_PATH)/$(NAME).bin
|
||||
echo " \n\
|
||||
r \n\
|
||||
h \n\
|
||||
loadbin \"$(BUILD_PATH)/$(NAME).bin\", 0x0 \n\
|
||||
verifybin \"$(BUILD_PATH)/$(NAME).bin\", 0x0 \n\
|
||||
r \n\
|
||||
qc \n\
|
||||
" > $(BUILD_PATH)/flash.jlink
|
||||
|
||||
jlink-flash: $(BUILD_PATH)/$(NAME).bin $(BUILD_PATH)/flash.jlink
|
||||
jlinkexe -if swd -device AT$(CHIP_VARIANT) -speed 4000 -CommanderScript $(BUILD_PATH)/flash.jlink
|
||||
|
||||
wait:
|
||||
sleep 5
|
||||
|
||||
|
|
@ -128,7 +170,7 @@ $(SELF_EXECUTABLE): $(SELF_OBJECTS)
|
|||
-T$(SELF_LINKER_SCRIPT) \
|
||||
-Wl,-Map,$(BUILD_PATH)/update-$(NAME).map -o $(BUILD_PATH)/update-$(NAME).elf $(SELF_OBJECTS)
|
||||
arm-none-eabi-objcopy -O binary $(BUILD_PATH)/update-$(NAME).elf $(BUILD_PATH)/update-$(NAME).bin
|
||||
python2 lib/uf2/utils/uf2conv.py -b $(BOOTLOADER_SIZE) -c -o $@ $(BUILD_PATH)/update-$(NAME).bin
|
||||
python3 lib/uf2/utils/uf2conv.py -b $(BOOTLOADER_SIZE) -c -o $@ $(BUILD_PATH)/update-$(NAME).bin
|
||||
|
||||
$(BUILD_PATH)/%.o: src/%.c $(wildcard inc/*.h boards/*/*.h) $(BUILD_PATH)/uf2_version.h
|
||||
echo "$<"
|
||||
|
|
@ -138,7 +180,7 @@ $(BUILD_PATH)/%.o: $(BUILD_PATH)/%.c
|
|||
$(CC) $(CFLAGS) $(BLD_EXTA_FLAGS) $(INCLUDES) $< -o $@
|
||||
|
||||
$(BUILD_PATH)/selfdata.c: $(EXECUTABLE) scripts/gendata.py src/sketch.cpp
|
||||
python2 scripts/gendata.py $(BOOTLOADER_SIZE) $(EXECUTABLE)
|
||||
python3 scripts/gendata.py $(BOOTLOADER_SIZE) $(EXECUTABLE)
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
|
@ -165,8 +207,11 @@ drop-board: all
|
|||
mkdir -p build/drop/$(BOARD)
|
||||
cp $(SELF_EXECUTABLE) build/drop/$(BOARD)/
|
||||
cp $(EXECUTABLE) build/drop/$(BOARD)/
|
||||
# .ino works only for SAMD21 right now; suppress for SAMD51
|
||||
ifeq ($(CHIP_FAMILY),samd21)
|
||||
cp $(SELF_EXECUTABLE_INO) build/drop/$(BOARD)/
|
||||
cp boards/$(BOARD)/board_config.h build/drop/$(BOARD)/
|
||||
endif
|
||||
|
||||
drop-pkg:
|
||||
mv build/drop build/uf2-samd21-$(UF2_VERSION_BASE)
|
||||
|
|
@ -175,6 +220,9 @@ drop-pkg:
|
|||
rm -rf build/uf2-samd21-$(UF2_VERSION_BASE)
|
||||
|
||||
all-boards:
|
||||
for f in `cd boards; ls` ; do "$(MAKE)" BOARD=$$f drop-board || break; done
|
||||
for f in `cd boards; ls` ; do "$(MAKE)" BOARD=$$f drop-board || break -1; done
|
||||
|
||||
drop: all-boards drop-pkg
|
||||
|
||||
$(SUBMODULES):
|
||||
git submodule update --init --recursive
|
||||
|
|
|
|||
10
README.md
10
README.md
|
|
@ -117,7 +117,7 @@ to temporarily turn off the protection. In gdb the command is:
|
|||
|
||||
* `make` and an Unix environment
|
||||
* `node`.js in path (optional)
|
||||
* `arm-none-eabi-gcc` in the path (the one coming with Yotta will do just fine)
|
||||
* `arm-none-eabi-gcc` in the path (the one coming with Yotta will do just fine). You can get the latest version from ARM: https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
|
||||
* `openocd` - you can use the one coming with Arduino (after your install the M0 board support)
|
||||
|
||||
Atmel Studio is not supported.
|
||||
|
|
@ -132,7 +132,7 @@ Otherwise, you can use other SAMD21 board and an external `openocd` compatible
|
|||
debugger. IBDAP is cheap and seems to work just fine. Another option is to use
|
||||
Raspberry Pi and native bit-banging.
|
||||
|
||||
`openocd` will flash 16k, meaning the beginning of user program (if any) will
|
||||
`openocd` will flash 16k, meaning that on SAMD21 the beginning of user program (if any) will
|
||||
be overwritten with `0xff`. This also means that after fresh flashing of bootloader
|
||||
no double-tap reset is necessary, as the bootloader will not try to start application
|
||||
at `0xffffffff`.
|
||||
|
|
@ -167,8 +167,8 @@ There is a number of configuration parameters at the top of `uf2.h` file.
|
|||
Adjust them to your liking.
|
||||
|
||||
By default, you cannot enable all the features, as the bootloader would exceed
|
||||
the 8k allocated to it by Arduino etc. It will assert on startup that it's not bigger
|
||||
than 8k. Also, the linker script will not allow it.
|
||||
the 8k(SAMD21)/16k(SAMD51) allocated to it by Arduino etc. It will assert on startup that it's not bigger
|
||||
than 8k(SAMD21)/16k(SAMD51). Also, the linker script will not allow it.
|
||||
|
||||
Three typical configurations are:
|
||||
|
||||
|
|
@ -186,7 +186,7 @@ then CDC might work and MSC will not work;
|
|||
otherwise, if you have no drivers, MSC will work, and CDC will work on Windows 10 only.
|
||||
Thus, it's best to set the USB ID to one for which there are no drivers.
|
||||
|
||||
The bootloader sits at 0x00000000, and the application starts at 0x00002000.
|
||||
The bootloader sits at 0x00000000, and the application starts at 0x00002000 (SAMD21) or 0x00004000 (SAMD51).
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
|
|
|
|||
2
boards/8086_commander/board.mk
Normal file
2
boards/8086_commander/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
17
boards/8086_commander/board_config.h
Normal file
17
boards/8086_commander/board_config.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "8086 Consultancy"
|
||||
#define PRODUCT_NAME "COMMANDER"
|
||||
#define VOLUME_LABEL "CMDBOOT"
|
||||
#define INDEX_URL "https://8086.net/p/commander"
|
||||
#define BOARD_ID "SAMD21G18A-Commander-v0"
|
||||
|
||||
#define USB_VID 0x3171
|
||||
#define USB_PID 0x0100
|
||||
|
||||
#define LED_PIN PIN_PA06
|
||||
|
||||
#endif
|
||||
2
boards/CC03/board.mk
Normal file
2
boards/CC03/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
16
boards/CC03/board_config.h
Normal file
16
boards/CC03/board_config.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "XinaBox Limited"
|
||||
#define PRODUCT_NAME "CC03"
|
||||
#define VOLUME_LABEL "CC03"
|
||||
#define INDEX_URL "https://xinabox.cc/products/cc03"
|
||||
|
||||
#define BOARD_ID "SAMD21G18A-CC03-v0"
|
||||
|
||||
//#define USB_VID 0x2341
|
||||
//#define USB_PID 0x024D
|
||||
|
||||
#define LED_PIN PIN_PA07
|
||||
|
||||
#endif
|
||||
2
boards/CS11/board.mk
Normal file
2
boards/CS11/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
16
boards/CS11/board_config.h
Normal file
16
boards/CS11/board_config.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "XinaBox Limited"
|
||||
#define PRODUCT_NAME "CS11"
|
||||
#define VOLUME_LABEL "CS11"
|
||||
#define INDEX_URL "https://xinabox.cc/products/cc11"
|
||||
|
||||
#define BOARD_ID "SAMD21G18A-CS11-v0"
|
||||
|
||||
//#define USB_VID 0x2341
|
||||
//#define USB_PID 0x024D
|
||||
|
||||
#define LED_PIN PIN_PA08
|
||||
|
||||
#endif
|
||||
2
boards/arcade_feather_m4/board.mk
Normal file
2
boards/arcade_feather_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
103
boards/arcade_feather_m4/board_config.h
Normal file
103
boards/arcade_feather_m4/board_config.h
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Feather Arcade D51"
|
||||
#define VOLUME_LABEL "ARCADE-D5"
|
||||
#define INDEX_URL "https://arcade.makecode.com/"
|
||||
#define BOARD_ID "SAMD51J19A-Feather-Arcade-D51"
|
||||
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0022
|
||||
|
||||
#define LED_PIN PIN_PA23
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PB03
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM0
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM0
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD3_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_PA07D_SERCOM0_PAD3
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD0 PINMUX_PA04D_SERCOM0_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM0_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM0_GCLK_ID_SLOW
|
||||
|
||||
#define HAS_CONFIG_DATA 1
|
||||
#define BOARD_SCREEN 1
|
||||
|
||||
|
||||
// This configuration data should be edited at https://microsoft.github.io/uf2/patcher/
|
||||
// Just drop this file there.
|
||||
// Alternatively, it can be also binary edited there after the bootloader is compiled.
|
||||
|
||||
#ifdef DEFINE_CONFIG_DATA
|
||||
const uint32_t config_data[] = {
|
||||
/* CF2 START */
|
||||
513675505, 539130489, // magic
|
||||
53, 100, // used entries, total entries
|
||||
4, 0xd, // PIN_BTN_A = PIN_SCL
|
||||
5, 0x12, // PIN_BTN_B = PIN_D6
|
||||
13, 0x17, // PIN_LED = PIN_D13
|
||||
18, 0x36, // PIN_MISO = PB22
|
||||
19, 0x37, // PIN_MOSI = PB23
|
||||
20, 0x23, // PIN_NEOPIXEL = PB03
|
||||
21, 0x31, // PIN_RX = PB17
|
||||
23, 0x11, // PIN_SCK = PA17
|
||||
24, 0xd, // PIN_SCL = PA13
|
||||
25, 0xc, // PIN_SDA = PA12
|
||||
26, 0xe, // PIN_SPEAKER_AMP = PIN_D4
|
||||
28, 0x30, // PIN_TX = PB16
|
||||
32, 0x11, // PIN_DISPLAY_SCK = PIN_SCK
|
||||
33, 0x36, // PIN_DISPLAY_MISO = PIN_MISO
|
||||
34, 0x37, // PIN_DISPLAY_MOSI = PIN_MOSI
|
||||
35, 0x28, // PIN_DISPLAY_CS = PIN_A2
|
||||
36, 0x29, // PIN_DISPLAY_DC = PIN_A3
|
||||
37, 0xa0, // DISPLAY_WIDTH = 160
|
||||
38, 0x80, // DISPLAY_HEIGHT = 128
|
||||
39, 0x90, // DISPLAY_CFG0 = 0x90
|
||||
40, 0xe14ff, // DISPLAY_CFG1 = 0xe14ff
|
||||
41, 0x18, // DISPLAY_CFG2 = 0x18
|
||||
43, 0x4, // PIN_DISPLAY_RST = PIN_A4
|
||||
44, 0x6, // PIN_DISPLAY_BL = PIN_A5
|
||||
47, 0x15, // PIN_BTN_LEFT = PIN_D11
|
||||
48, 0x13, // PIN_BTN_RIGHT = PIN_D9
|
||||
49, 0x14, // PIN_BTN_UP = PIN_D10
|
||||
50, 0x16, // PIN_BTN_DOWN = PIN_D12
|
||||
51, 0xc, // PIN_BTN_MENU = PIN_SDA
|
||||
59, 0x200, // SPEAKER_VOLUME = 512
|
||||
60, 0x30, // PIN_JACK_TX = PIN_D1
|
||||
100, 0x2, // PIN_A0 = PA02
|
||||
101, 0x5, // PIN_A1 = PA05
|
||||
102, 0x28, // PIN_A2 = PB08
|
||||
103, 0x29, // PIN_A3 = PB09
|
||||
104, 0x4, // PIN_A4 = PA04
|
||||
105, 0x6, // PIN_A5 = PA06
|
||||
150, 0x31, // PIN_D0 = PB17
|
||||
151, 0x30, // PIN_D1 = PB16
|
||||
154, 0xe, // PIN_D4 = PA14
|
||||
155, 0x10, // PIN_D5 = PA16
|
||||
156, 0x12, // PIN_D6 = PA18
|
||||
159, 0x13, // PIN_D9 = PA19
|
||||
160, 0x14, // PIN_D10 = PA20
|
||||
161, 0x15, // PIN_D11 = PA21
|
||||
162, 0x16, // PIN_D12 = PA22
|
||||
163, 0x17, // PIN_D13 = PA23
|
||||
200, 0x1, // NUM_NEOPIXELS = 1
|
||||
204, 0x80000, // FLASH_BYTES = 0x80000
|
||||
205, 0x30000, // RAM_BYTES = 0x30000
|
||||
208, 0x239a0022, // BOOTLOADER_BOARD_ID = 0x239a0022
|
||||
209, 0x55114460, // UF2_FAMILY = ATSAMD51
|
||||
210, 0x20, // PINS_PORT_SIZE = PA_32
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* CF2 END */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
7
boards/arcade_itsybitsy_m4/altkeys.cf2
Normal file
7
boards/arcade_itsybitsy_m4/altkeys.cf2
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
PIN_BTN_A = PIN_D10
|
||||
PIN_BTN_B = PIN_D11
|
||||
PIN_BTN_LEFT = PIN_SDA
|
||||
PIN_BTN_UP = PIN_D7
|
||||
PIN_BTN_RIGHT = PIN_SCL
|
||||
PIN_BTN_DOWN = PIN_D9
|
||||
PIN_BTN_MENU = PIN_D12
|
||||
2
boards/arcade_itsybitsy_m4/altscreen.cf2
Normal file
2
boards/arcade_itsybitsy_m4/altscreen.cf2
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DISPLAY_CFG0 = 0x01000080
|
||||
DISPLAY_CFG1 = 0x00000603
|
||||
2
boards/arcade_itsybitsy_m4/board.mk
Normal file
2
boards/arcade_itsybitsy_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51G19A
|
||||
108
boards/arcade_itsybitsy_m4/board_config.h
Normal file
108
boards/arcade_itsybitsy_m4/board_config.h
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Itsy Arcade D51"
|
||||
#define VOLUME_LABEL "ARCADE-D5"
|
||||
#define INDEX_URL "https://arcade.makecode.com/"
|
||||
#define BOARD_ID "SAMD51G19A-Itsy-Arcade-D51"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x002B
|
||||
|
||||
#define LED_PIN PIN_PA22
|
||||
|
||||
#define BOARD_RGBLED_CLOCK_PIN PIN_PB02
|
||||
#define BOARD_RGBLED_DATA_PIN PIN_PB03
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM3
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBBMASK_SERCOM3
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA22C_SERCOM3_PAD0
|
||||
#define BOOT_USART_PAD0 PINMUX_PA23C_SERCOM3_PAD1
|
||||
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW
|
||||
|
||||
#define HAS_CONFIG_DATA 1
|
||||
#define BOARD_SCREEN 1
|
||||
|
||||
// This configuration data should be edited at https://microsoft.github.io/uf2/patcher/
|
||||
// Just drop this file there.
|
||||
// Alternatively, it can be also binary edited there after the bootloader is compiled.
|
||||
|
||||
#ifdef DEFINE_CONFIG_DATA
|
||||
const uint32_t config_data[] = {
|
||||
/* CF2 START */
|
||||
513675505, 539130489, // magic
|
||||
60, 100, // used entries, total entries
|
||||
4, 0xd, // PIN_BTN_A = PIN_SCL
|
||||
5, 0x12, // PIN_BTN_B = PIN_D7
|
||||
7, 0x22, // PIN_DOTSTAR_CLOCK = PB02
|
||||
8, 0x23, // PIN_DOTSTAR_DATA = PB03
|
||||
9, 0x2b, // PIN_FLASH_CS = PB11
|
||||
10, 0x9, // PIN_FLASH_MISO = PA09
|
||||
11, 0x8, // PIN_FLASH_MOSI = PA08
|
||||
12, 0x2a, // PIN_FLASH_SCK = PB10
|
||||
13, 0x16, // PIN_LED = PIN_D13
|
||||
18, 0x37, // PIN_MISO = PB23
|
||||
19, 0x0, // PIN_MOSI = PA00
|
||||
21, 0x10, // PIN_RX = PA16
|
||||
23, 0x1, // PIN_SCK = PA01
|
||||
24, 0xd, // PIN_SCL = PA13
|
||||
25, 0xc, // PIN_SDA = PA12
|
||||
26, 0x7, // PIN_SPEAKER_AMP = PIN_D2
|
||||
28, 0x11, // PIN_TX = PA17
|
||||
32, 0x1, // PIN_DISPLAY_SCK = PIN_SCK
|
||||
33, 0x37, // PIN_DISPLAY_MISO = PIN_MISO
|
||||
34, 0x0, // PIN_DISPLAY_MOSI = PIN_MOSI
|
||||
35, 0x28, // PIN_DISPLAY_CS = PIN_A2
|
||||
36, 0x29, // PIN_DISPLAY_DC = PIN_A3
|
||||
37, 0xa0, // DISPLAY_WIDTH = 160
|
||||
38, 0x80, // DISPLAY_HEIGHT = 128
|
||||
39, 0x90, // DISPLAY_CFG0 = 0x90
|
||||
40, 0xe14ff, // DISPLAY_CFG1 = 0xe14ff
|
||||
41, 0x18, // DISPLAY_CFG2 = 0x18
|
||||
43, 0x4, // PIN_DISPLAY_RST = PIN_A4
|
||||
44, 0x6, // PIN_DISPLAY_BL = PIN_A5
|
||||
47, 0x15, // PIN_BTN_LEFT = PIN_D11
|
||||
48, 0x13, // PIN_BTN_RIGHT = PIN_D9
|
||||
49, 0x14, // PIN_BTN_UP = PIN_D10
|
||||
50, 0x17, // PIN_BTN_DOWN = PIN_D12
|
||||
51, 0xc, // PIN_BTN_MENU = PIN_SDA
|
||||
59, 0x200, // SPEAKER_VOLUME = 512
|
||||
60, 0x11, // PIN_JACK_TX = PIN_D1
|
||||
100, 0x2, // PIN_A0 = PA02
|
||||
101, 0x5, // PIN_A1 = PA05
|
||||
102, 0x28, // PIN_A2 = PB08
|
||||
103, 0x29, // PIN_A3 = PB09
|
||||
104, 0x4, // PIN_A4 = PA04
|
||||
105, 0x6, // PIN_A5 = PA06
|
||||
150, 0x10, // PIN_D0 = PA16
|
||||
151, 0x11, // PIN_D1 = PA17
|
||||
152, 0x7, // PIN_D2 = PA07
|
||||
153, 0x36, // PIN_D3 = PB22
|
||||
154, 0xe, // PIN_D4 = PA14
|
||||
155, 0xf, // PIN_D5 = PA15
|
||||
157, 0x12, // PIN_D7 = PA18
|
||||
159, 0x13, // PIN_D9 = PA19
|
||||
160, 0x14, // PIN_D10 = PA20
|
||||
161, 0x15, // PIN_D11 = PA21
|
||||
162, 0x17, // PIN_D12 = PA23
|
||||
163, 0x16, // PIN_D13 = PA22
|
||||
201, 0x1, // NUM_DOTSTARS = 1
|
||||
204, 0x80000, // FLASH_BYTES = 0x80000
|
||||
205, 0x30000, // RAM_BYTES = 0x30000
|
||||
208, 0x239a002b, // BOOTLOADER_BOARD_ID = 0x239a002b
|
||||
209, 0x55114460, // UF2_FAMILY = ATSAMD51
|
||||
210, 0x20, // PINS_PORT_SIZE = PA_32
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* CF2 END */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
2
boards/arcade_pybadge/board.mk
Normal file
2
boards/arcade_pybadge/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
112
boards/arcade_pybadge/board_config.h
Normal file
112
boards/arcade_pybadge/board_config.h
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "PyBadge"
|
||||
#define VOLUME_LABEL "PYBADGEBOOT"
|
||||
#define INDEX_URL "http://adafru.it/4200"
|
||||
#define BOARD_ID "SAMD51J19A-PyBadge-M4"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0033
|
||||
|
||||
#define LED_PIN PIN_PA23
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA15
|
||||
#define BOARD_NEOPIXEL_COUNT 5
|
||||
|
||||
#define BOARD_SCREEN 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM5
|
||||
#define BOOT_USART_MASK APBDMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBDMASK_SERCOM5
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PB17C_SERCOM5_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PB16C_SERCOM5_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM5_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM5_GCLK_ID_SLOW
|
||||
|
||||
|
||||
#define HAS_CONFIG_DATA 1
|
||||
|
||||
// This configuration data should be edited at https://microsoft.github.io/uf2/patcher/
|
||||
// Just drop this file there.
|
||||
// Alternatively, it can be also binary edited there after the bootloader is compiled.
|
||||
|
||||
#ifdef DEFINE_CONFIG_DATA
|
||||
const uint32_t config_data[] = {
|
||||
/* CF2 START */
|
||||
513675505, 539130489, // magic
|
||||
62, 100, // used entries, total entries
|
||||
1, 0x2e, // PIN_ACCELEROMETER_INT = PB14
|
||||
2, 0xd, // PIN_ACCELEROMETER_SCL = PIN_SCL (PA13)
|
||||
3, 0xc, // PIN_ACCELEROMETER_SDA = PIN_SDA (PA12)
|
||||
4, 0x3ee, // PIN_BTN_A = P_1006
|
||||
5, 0x3ef, // PIN_BTN_B = P_1007
|
||||
13, 0x17, // PIN_LED = PIN_D13 (PA23)
|
||||
14, 0x24, // PIN_LIGHT = PB04
|
||||
18, 0x36, // PIN_MISO = PB22
|
||||
19, 0x37, // PIN_MOSI = PB23
|
||||
20, 0xf, // PIN_NEOPIXEL = PA15
|
||||
21, 0x31, // PIN_RX = PB17
|
||||
23, 0x11, // PIN_SCK = PA17
|
||||
24, 0xd, // PIN_SCL = PA13
|
||||
25, 0xc, // PIN_SDA = PA12
|
||||
26, 0x1b, // PIN_SPEAKER_AMP = PA27
|
||||
28, 0x30, // PIN_TX = PB16
|
||||
32, 0x2d, // PIN_DISPLAY_SCK = PB13
|
||||
34, 0x2f, // PIN_DISPLAY_MOSI = PB15
|
||||
35, 0x27, // PIN_DISPLAY_CS = PB07
|
||||
36, 0x25, // PIN_DISPLAY_DC = PB05
|
||||
37, 0xa0, // DISPLAY_WIDTH = 160
|
||||
38, 0x80, // DISPLAY_HEIGHT = 128
|
||||
39, 0x80, // DISPLAY_CFG0 = 0x80
|
||||
40, 0x12c2d, // DISPLAY_CFG1 = 0x12c2d
|
||||
41, 0x18, // DISPLAY_CFG2 = 0x18
|
||||
43, 0x0, // PIN_DISPLAY_RST = PA00
|
||||
44, 0x1, // PIN_DISPLAY_BL = PA01
|
||||
47, 0x3e8, // PIN_BTN_LEFT = P_1000
|
||||
48, 0x3eb, // PIN_BTN_RIGHT = P_1003
|
||||
49, 0x3e9, // PIN_BTN_UP = P_1001
|
||||
50, 0x3ea, // PIN_BTN_DOWN = P_1002
|
||||
51, 0x3ec, // PIN_BTN_MENU = P_1004
|
||||
59, 0x40, // SPEAKER_VOLUME = 64
|
||||
60, 0x17, // PIN_JACK_TX = PIN_D13
|
||||
65, 0x2, // PIN_JACK_SND = PIN_A0
|
||||
69, 0x3ed, // PIN_BTN_SOFT_RESET = P_1005
|
||||
70, 0x30, // ACCELEROMETER_TYPE = 48
|
||||
71, 0x20, // PIN_BTNMX_LATCH = PB00
|
||||
72, 0x3f, // PIN_BTNMX_CLOCK = PB31
|
||||
73, 0x3e, // PIN_BTNMX_DATA = PB30
|
||||
100, 0x2, // PIN_A0 = PA02
|
||||
101, 0x5, // PIN_A1 = PA05
|
||||
102, 0x28, // PIN_A2 = PB08
|
||||
103, 0x29, // PIN_A3 = PB09
|
||||
104, 0x4, // PIN_A4 = PA04
|
||||
105, 0x6, // PIN_A5 = PA06
|
||||
152, 0x23, // PIN_D2 = PB03
|
||||
153, 0x22, // PIN_D3 = PB02
|
||||
154, 0xe, // PIN_D4 = PA14
|
||||
155, 0x10, // PIN_D5 = PA16
|
||||
156, 0x12, // PIN_D6 = PA18
|
||||
159, 0x13, // PIN_D9 = PA19
|
||||
160, 0x14, // PIN_D10 = PA20
|
||||
161, 0x15, // PIN_D11 = PA21
|
||||
162, 0x16, // PIN_D12 = PA22
|
||||
163, 0x17, // PIN_D13 = PA23
|
||||
200, 0x5, // NUM_NEOPIXELS = 5
|
||||
204, 0x80000, // FLASH_BYTES = 0x80000
|
||||
205, 0x30000, // RAM_BYTES = 0x30000
|
||||
208, 0x239a0033, // BOOTLOADER_BOARD_ID = 0x239a0033
|
||||
209, 0x55114460, // UF2_FAMILY = ATSAMD51
|
||||
210, 0x20, // PINS_PORT_SIZE = PA_32
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* CF2 END */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
2
boards/arcade_pybadge_lc/board.mk
Normal file
2
boards/arcade_pybadge_lc/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
108
boards/arcade_pybadge_lc/board_config.h
Normal file
108
boards/arcade_pybadge_lc/board_config.h
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "BadgeLC"
|
||||
#define VOLUME_LABEL "BADGELCBOOT"
|
||||
#define INDEX_URL "http://adafru.it/3939"
|
||||
#define BOARD_ID "SAMD51J19A-PyBadgeLC-M4"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0034
|
||||
|
||||
#define LED_PIN PIN_PA23
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA15
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOARD_SCREEN 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM5
|
||||
#define BOOT_USART_MASK APBDMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBDMASK_SERCOM5
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PB17C_SERCOM5_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PB16C_SERCOM5_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM5_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM5_GCLK_ID_SLOW
|
||||
|
||||
|
||||
#define HAS_CONFIG_DATA 1
|
||||
|
||||
// This configuration data should be edited at https://microsoft.github.io/uf2/patcher/
|
||||
// Just drop this file there.
|
||||
// Alternatively, it can be also binary edited there after the bootloader is compiled.
|
||||
|
||||
#ifdef DEFINE_CONFIG_DATA
|
||||
const uint32_t config_data[] = {
|
||||
/* CF2 START */
|
||||
513675505, 539130489, // magic
|
||||
58, 100, // used entries, total entries
|
||||
4, 0x3ee, // PIN_BTN_A = P_1006
|
||||
5, 0x3ef, // PIN_BTN_B = P_1007
|
||||
13, 0x17, // PIN_LED = PIN_D13 (PA23)
|
||||
14, 0x24, // PIN_LIGHT = PB04
|
||||
18, 0x36, // PIN_MISO = PB22
|
||||
19, 0x37, // PIN_MOSI = PB23
|
||||
20, 0xf, // PIN_NEOPIXEL = PA15
|
||||
21, 0x31, // PIN_RX = PB17
|
||||
23, 0x11, // PIN_SCK = PA17
|
||||
24, 0xd, // PIN_SCL = PA13
|
||||
25, 0xc, // PIN_SDA = PA12
|
||||
26, 0x1b, // PIN_SPEAKER_AMP = PA27
|
||||
28, 0x30, // PIN_TX = PB16
|
||||
32, 0x2d, // PIN_DISPLAY_SCK = PB13
|
||||
34, 0x2f, // PIN_DISPLAY_MOSI = PB15
|
||||
35, 0x27, // PIN_DISPLAY_CS = PB07
|
||||
36, 0x25, // PIN_DISPLAY_DC = PB05
|
||||
37, 0xa0, // DISPLAY_WIDTH = 160
|
||||
38, 0x80, // DISPLAY_HEIGHT = 128
|
||||
39, 0x80, // DISPLAY_CFG0 = 0x80
|
||||
40, 0x12c2d, // DISPLAY_CFG1 = 0x12c2d
|
||||
41, 0x18, // DISPLAY_CFG2 = 0x18
|
||||
43, 0x0, // PIN_DISPLAY_RST = PA00
|
||||
44, 0x1, // PIN_DISPLAY_BL = PA01
|
||||
47, 0x3e8, // PIN_BTN_LEFT = P_1000
|
||||
48, 0x3eb, // PIN_BTN_RIGHT = P_1003
|
||||
49, 0x3e9, // PIN_BTN_UP = P_1001
|
||||
50, 0x3ea, // PIN_BTN_DOWN = P_1002
|
||||
51, 0x3ec, // PIN_BTN_MENU = P_1004
|
||||
59, 0x40, // SPEAKER_VOLUME = 64
|
||||
60, 0x17, // PIN_JACK_TX = PIN_D13
|
||||
65, 0x2, // PIN_JACK_SND = PIN_A0
|
||||
69, 0x3ed, // PIN_BTN_SOFT_RESET = P_1005
|
||||
71, 0x20, // PIN_BTNMX_LATCH = PB00
|
||||
72, 0x3f, // PIN_BTNMX_CLOCK = PB31
|
||||
73, 0x3e, // PIN_BTNMX_DATA = PB30
|
||||
100, 0x2, // PIN_A0 = PA02
|
||||
101, 0x5, // PIN_A1 = PA05
|
||||
102, 0x28, // PIN_A2 = PB08
|
||||
103, 0x29, // PIN_A3 = PB09
|
||||
104, 0x4, // PIN_A4 = PA04
|
||||
105, 0x6, // PIN_A5 = PA06
|
||||
152, 0x23, // PIN_D2 = PB03
|
||||
153, 0x22, // PIN_D3 = PB02
|
||||
154, 0xe, // PIN_D4 = PA14
|
||||
155, 0x10, // PIN_D5 = PA16
|
||||
156, 0x12, // PIN_D6 = PA18
|
||||
159, 0x13, // PIN_D9 = PA19
|
||||
160, 0x14, // PIN_D10 = PA20
|
||||
161, 0x15, // PIN_D11 = PA21
|
||||
162, 0x16, // PIN_D12 = PA22
|
||||
163, 0x17, // PIN_D13 = PA23
|
||||
200, 0x1, // NUM_NEOPIXELS = 1
|
||||
204, 0x80000, // FLASH_BYTES = 0x80000
|
||||
205, 0x30000, // RAM_BYTES = 0x30000
|
||||
208, 0x239a0034, // BOOTLOADER_BOARD_ID = 0x239a0034
|
||||
209, 0x55114460, // UF2_FAMILY = ATSAMD51
|
||||
210, 0x20, // PINS_PORT_SIZE = PA_32
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* CF2 END */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
2
boards/arcade_pygamer/board.mk
Normal file
2
boards/arcade_pygamer/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
112
boards/arcade_pygamer/board_config.h
Normal file
112
boards/arcade_pygamer/board_config.h
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "PyGamer"
|
||||
#define VOLUME_LABEL "PYGAMERBOOT"
|
||||
#define INDEX_URL "http://adafru.it/4242"
|
||||
#define BOARD_ID "SAMD51J19A-PyGamer-M4"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x003D
|
||||
|
||||
#define LED_PIN PIN_PA23
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA15
|
||||
#define BOARD_NEOPIXEL_COUNT 5
|
||||
|
||||
#define BOARD_SCREEN 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM5
|
||||
#define BOOT_USART_MASK APBDMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBDMASK_SERCOM5
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PB17C_SERCOM5_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PB16C_SERCOM5_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM5_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM5_GCLK_ID_SLOW
|
||||
|
||||
|
||||
#define HAS_CONFIG_DATA 1
|
||||
|
||||
// This configuration data should be edited at https://microsoft.github.io/uf2/patcher/
|
||||
// Just drop this file there.
|
||||
// Alternatively, it can be also binary edited there after the bootloader is compiled.
|
||||
|
||||
#ifdef DEFINE_CONFIG_DATA
|
||||
const uint32_t config_data[] = {
|
||||
/* CF2 START */
|
||||
513675505, 539130489, // magic
|
||||
62, 100, // used entries, total entries
|
||||
1, 0x2e, // PIN_ACCELEROMETER_INT = PB14
|
||||
2, 0xd, // PIN_ACCELEROMETER_SCL = PIN_SCL (PA13)
|
||||
3, 0xc, // PIN_ACCELEROMETER_SDA = PIN_SDA (PA12)
|
||||
4, 0x3ee, // PIN_BTN_A = P_1006
|
||||
5, 0x3ef, // PIN_BTN_B = P_1007
|
||||
13, 0x17, // PIN_LED = PIN_D13 (PA23)
|
||||
14, 0x24, // PIN_LIGHT = PB04
|
||||
18, 0x36, // PIN_MISO = PB22
|
||||
19, 0x37, // PIN_MOSI = PB23
|
||||
20, 0xf, // PIN_NEOPIXEL = PA15
|
||||
21, 0x31, // PIN_RX = PB17
|
||||
23, 0x11, // PIN_SCK = PA17
|
||||
24, 0xd, // PIN_SCL = PA13
|
||||
25, 0xc, // PIN_SDA = PA12
|
||||
26, 0x1b, // PIN_SPEAKER_AMP = PA27
|
||||
28, 0x30, // PIN_TX = PB16
|
||||
32, 0x2d, // PIN_DISPLAY_SCK = PB13
|
||||
34, 0x2f, // PIN_DISPLAY_MOSI = PB15
|
||||
35, 0x2c, // PIN_DISPLAY_CS = PB12
|
||||
36, 0x25, // PIN_DISPLAY_DC = PB05
|
||||
37, 0xa0, // DISPLAY_WIDTH = 160
|
||||
38, 0x80, // DISPLAY_HEIGHT = 128
|
||||
39, 0x80, // DISPLAY_CFG0 = 0x80
|
||||
40, 0x12c2d, // DISPLAY_CFG1 = 0x12c2d
|
||||
41, 0x18, // DISPLAY_CFG2 = 0x18
|
||||
43, 0x0, // PIN_DISPLAY_RST = PA00
|
||||
44, 0x1, // PIN_DISPLAY_BL = PA01
|
||||
47, 0x4d7, // PIN_BTN_LEFT = P_1239
|
||||
48, 0x473, // PIN_BTN_RIGHT = P_1139
|
||||
49, 0x4d6, // PIN_BTN_UP = P_1238
|
||||
50, 0x472, // PIN_BTN_DOWN = P_1138
|
||||
51, 0x3ec, // PIN_BTN_MENU = P_1004
|
||||
59, 0x40, // SPEAKER_VOLUME = 64
|
||||
60, 0x17, // PIN_JACK_TX = PIN_D13
|
||||
65, 0x2, // PIN_JACK_SND = PIN_A0
|
||||
69, 0x3ed, // PIN_BTN_SOFT_RESET = P_1005
|
||||
70, 0x32, // ACCELEROMETER_TYPE = LIS3DH
|
||||
71, 0x20, // PIN_BTNMX_LATCH = PB00
|
||||
72, 0x3f, // PIN_BTNMX_CLOCK = PB31
|
||||
73, 0x3e, // PIN_BTNMX_DATA = PB30
|
||||
100, 0x2, // PIN_A0 = PA02
|
||||
101, 0x5, // PIN_A1 = PA05
|
||||
102, 0x28, // PIN_A2 = PB08
|
||||
103, 0x29, // PIN_A3 = PB09
|
||||
104, 0x4, // PIN_A4 = PA04
|
||||
105, 0x6, // PIN_A5 = PA06
|
||||
152, 0x23, // PIN_D2 = PB03
|
||||
153, 0x22, // PIN_D3 = PB02
|
||||
154, 0xe, // PIN_D4 = PA14
|
||||
155, 0x10, // PIN_D5 = PA16
|
||||
156, 0x12, // PIN_D6 = PA18
|
||||
159, 0x13, // PIN_D9 = PA19
|
||||
160, 0x14, // PIN_D10 = PA20
|
||||
161, 0x15, // PIN_D11 = PA21
|
||||
162, 0x16, // PIN_D12 = PA22
|
||||
163, 0x17, // PIN_D13 = PA23
|
||||
200, 0x5, // NUM_NEOPIXELS = 5
|
||||
204, 0x80000, // FLASH_BYTES = 0x80000
|
||||
205, 0x30000, // RAM_BYTES = 0x30000
|
||||
208, 0x239a003d, // BOOTLOADER_BOARD_ID = 0x239a003d
|
||||
209, 0x55114460, // UF2_FAMILY = ATSAMD51
|
||||
210, 0x20, // PINS_PORT_SIZE = PA_32
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* CF2 END */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
2
boards/capablerobot_usbhub/board.mk
Normal file
2
boards/capablerobot_usbhub/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51G19A
|
||||
29
boards/capablerobot_usbhub/board_config.h
Normal file
29
boards/capablerobot_usbhub/board_config.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Capable Robot Components"
|
||||
#define PRODUCT_NAME "Programmable USB Hub"
|
||||
#define VOLUME_LABEL "USBHUBBOOT"
|
||||
#define INDEX_URL "http://capablerobot.com"
|
||||
#define BOARD_ID "SAMD51G19A-USBHub-v0"
|
||||
|
||||
// VID & PID obtained from Microchip
|
||||
#define USB_VID 0x04D8
|
||||
#define USB_PID 0xEDB3
|
||||
|
||||
#define LED_PIN PIN_PA19
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM1
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM1
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA17C_SERCOM1_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PA16C_SERCOM1_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/circuitbrains_basic_m0/board.mk
Executable file
2
boards/circuitbrains_basic_m0/board.mk
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21E18A
|
||||
17
boards/circuitbrains_basic_m0/board_config.h
Executable file
17
boards/circuitbrains_basic_m0/board_config.h
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Kevin Neubauer"
|
||||
#define PRODUCT_NAME "CircuitBrains Basic"
|
||||
#define VOLUME_LABEL "BOOT"
|
||||
#define INDEX_URL "https://kevinneubauer.com/portfolio/circuitbrains-basic/"
|
||||
#define BOARD_ID "SAMD21E18A-SOM-v1"
|
||||
|
||||
#define LED_PIN PIN_PA14
|
||||
|
||||
#define USB_VID 0x04D8
|
||||
#define USB_PID 0xEC63
|
||||
|
||||
#endif
|
||||
2
boards/circuitbrains_deluxe_m4/board.mk
Executable file
2
boards/circuitbrains_deluxe_m4/board.mk
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
26
boards/circuitbrains_deluxe_m4/board_config.h
Executable file
26
boards/circuitbrains_deluxe_m4/board_config.h
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Kevin Neubauer"
|
||||
#define PRODUCT_NAME "CircuitBrains Deluxe"
|
||||
#define VOLUME_LABEL "BOOT"
|
||||
#define INDEX_URL "https://kevinneubauer.com/portfolio/circuitbrains-deluxe/"
|
||||
#define BOARD_ID "SAMD51J19A-SOM-v1.3"
|
||||
|
||||
#define LED_PIN PIN_PB13
|
||||
|
||||
#define USB_VID 0x04D8
|
||||
#define USB_PID 0xEC64
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM3
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBBMASK_SERCOM3
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA22C_SERCOM3_PAD0
|
||||
#define BOOT_USART_PAD0 PINMUX_PA23C_SERCOM3_PAD1
|
||||
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/crickit/board.mk
Normal file
2
boards/crickit/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
19
boards/crickit/board_config.h
Normal file
19
boards/crickit/board_config.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "crickit"
|
||||
#define VOLUME_LABEL "CRICKITBOOT"
|
||||
#define INDEX_URL "http://adafru.it/"
|
||||
#define BOARD_ID "SAMD21G18A-crickit-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x002D
|
||||
|
||||
#define LED_PIN PIN_PB22
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA27
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
|
||||
#endif
|
||||
2
boards/dadamachines-automat/board.mk
Normal file
2
boards/dadamachines-automat/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
20
boards/dadamachines-automat/board_config.h
Normal file
20
boards/dadamachines-automat/board_config.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define __SAMD21G18A__ 1
|
||||
|
||||
#define VENDOR_NAME "dadamachines"
|
||||
#define PRODUCT_NAME "automat"
|
||||
#define VOLUME_LABEL "AUTOMAT"
|
||||
#define INDEX_URL "http://dadamachines.com/"
|
||||
#define BOARD_ID "SAMD21G18A-dadamachines-automat-v0"
|
||||
|
||||
#define USB_VID 0x16D0
|
||||
#define USB_PID 0x0CDA
|
||||
#define USB_POWER_MA 20
|
||||
|
||||
#define LED_PIN PIN_PA17
|
||||
//#define LED_TX_PIN PIN_PA27
|
||||
//#define LED_RX_PIN PIN_PB03
|
||||
|
||||
#endif
|
||||
2
boards/eitech-robotics/board.mk
Normal file
2
boards/eitech-robotics/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
17
boards/eitech-robotics/board_config.h
Normal file
17
boards/eitech-robotics/board_config.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define __SAMD21G18A__ 1
|
||||
|
||||
#define VENDOR_NAME "Eitech"
|
||||
#define PRODUCT_NAME "Robotics"
|
||||
#define VOLUME_LABEL "ROBOTICS"
|
||||
#define INDEX_URL "http://www.eitech.de/"
|
||||
#define BOARD_ID "SAMD21G18A-Eitech-Robotics-v0"
|
||||
|
||||
#define USB_VID 0x1D50
|
||||
#define USB_PID 0x6110 // PID from Openmoko Project
|
||||
|
||||
#define LED_PIN PIN_PA30
|
||||
|
||||
#endif
|
||||
|
|
@ -4,16 +4,12 @@
|
|||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Feather M0"
|
||||
#define VOLUME_LABEL "FEATHERBOOT"
|
||||
#define INDEX_URL "http://adafru.it/3403"
|
||||
#define INDEX_URL "http://adafru.it/"
|
||||
#define BOARD_ID "SAMD21G18A-Feather-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x001B
|
||||
#define USB_PID 0x0015
|
||||
|
||||
#define LED_PIN PIN_PA17
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA06
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
2
boards/feather_m0_express/board.mk
Normal file
2
boards/feather_m0_express/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
19
boards/feather_m0_express/board_config.h
Normal file
19
boards/feather_m0_express/board_config.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Feather M0 Express"
|
||||
#define VOLUME_LABEL "FEATHERBOOT"
|
||||
#define INDEX_URL "http://adafru.it/3403"
|
||||
#define BOARD_ID "SAMD21G18A-Feather-M0-Express-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x001B
|
||||
|
||||
#define LED_PIN PIN_PA17
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA06
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
|
||||
#endif
|
||||
2
boards/feather_m4/board.mk
Normal file
2
boards/feather_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
29
boards/feather_m4/board_config.h
Normal file
29
boards/feather_m4/board_config.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Feather M4 Express"
|
||||
#define VOLUME_LABEL "FEATHERBOOT"
|
||||
#define INDEX_URL "http://adafru.it/3857"
|
||||
#define BOARD_ID "SAMD51J19A-FeatherM4-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0022
|
||||
|
||||
#define LED_PIN PIN_PA23
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PB03
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM0
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM0
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD3_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_PA07D_SERCOM0_PAD3
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD0 PINMUX_PA04D_SERCOM0_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM0_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM0_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/fluff_m0/board.mk
Normal file
2
boards/fluff_m0/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21E18A
|
||||
15
boards/fluff_m0/board_config.h
Normal file
15
boards/fluff_m0/board_config.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Radomir Dopieralski"
|
||||
#define PRODUCT_NAME "Fluff M0"
|
||||
#define VOLUME_LABEL "FLUFFBOOT"
|
||||
#define INDEX_URL "https://hackaday.io/project/171381"
|
||||
#define BOARD_ID "SAMD21E18A-Fluff-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x00AF
|
||||
|
||||
#endif
|
||||
2
boards/generic-atsame54/board.mk
Executable file
2
boards/generic-atsame54/board.mk
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAME54N20A
|
||||
26
boards/generic-atsame54/board_config.h
Executable file
26
boards/generic-atsame54/board_config.h
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Generic Corp."
|
||||
#define PRODUCT_NAME "SAME54 Board"
|
||||
#define VOLUME_LABEL "SAME54"
|
||||
|
||||
#define USB_VID 0x03EB // Atmel
|
||||
#define USB_PID 0x2402 // Generic HID device
|
||||
|
||||
#define BOARD_ID "SAME54N20A-Generic"
|
||||
|
||||
#define LED_PIN PIN_PB31
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM4
|
||||
#define BOOT_USART_MASK APBDMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBDMASK_SERCOM4
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PB09D_SERCOM4_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PB08D_SERCOM4_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM4_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM4_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/grandcentral_m4/board.mk
Normal file
2
boards/grandcentral_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51P20A
|
||||
31
boards/grandcentral_m4/board_config.h
Normal file
31
boards/grandcentral_m4/board_config.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Grand Central M4 Express"
|
||||
#define VOLUME_LABEL "GCM4BOOT"
|
||||
#define INDEX_URL "http://adafru.it/4064"
|
||||
#define BOARD_ID "SAMD51P20A-GrandCentral-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0031
|
||||
|
||||
#define LED_PIN PIN_PB01
|
||||
#define LED_TX_PIN PIN_PC30
|
||||
#define LED_RX_PIN PIN_PC31
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PC24
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM0
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM0
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PB25C_SERCOM0_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PB24C_SERCOM0_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM0_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM0_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/hallowing_m0/board.mk
Normal file
2
boards/hallowing_m0/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
19
boards/hallowing_m0/board_config.h
Normal file
19
boards/hallowing_m0/board_config.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Hallowing M0"
|
||||
#define VOLUME_LABEL "HALLOWBOOT"
|
||||
#define INDEX_URL "http://adafru.it/3900"
|
||||
#define BOARD_ID "SAMD21G18A-Hallowing-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0xB000
|
||||
|
||||
#define LED_PIN PIN_PA23
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA12
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
|
||||
#endif
|
||||
2
boards/hallowing_m4/board.mk
Normal file
2
boards/hallowing_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
31
boards/hallowing_m4/board_config.h
Normal file
31
boards/hallowing_m4/board_config.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "HalloWing M4"
|
||||
#define VOLUME_LABEL "HALLOM4BOOT"
|
||||
#define INDEX_URL "http://adafru.it/"
|
||||
#define BOARD_ID "SAMD51J19A-HalloM4-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0049
|
||||
|
||||
#define LED_PIN PIN_PA23
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PB16
|
||||
#define BOARD_NEOPIXEL_COUNT 4
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM4
|
||||
#define BOOT_USART_MASK APBDMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBDMASK_SERCOM4
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PB13C_SERCOM4_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PB12C_SERCOM4_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM4_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM4_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/hallowing_mask/board.mk
Normal file
2
boards/hallowing_mask/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51G19A
|
||||
29
boards/hallowing_mask/board_config.h
Normal file
29
boards/hallowing_mask/board_config.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Hallowing Mask M4"
|
||||
#define VOLUME_LABEL "MASKM4BOOT"
|
||||
#define INDEX_URL "http://adafru.it/"
|
||||
#define BOARD_ID "SAMD51G19A-Mask-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0047
|
||||
|
||||
#define LED_PIN PIN_PA27
|
||||
|
||||
// There isnt a clear UART but we can make one on the D2/D3 ports
|
||||
#define BOOT_USART_MODULE SERCOM4
|
||||
#define BOOT_USART_MASK APBDMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBDMASK_SERCOM4
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PB09D_SERCOM4_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PB08D_SERCOM4_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM4_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM4_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/itsybitsy_m4/board.mk
Normal file
2
boards/itsybitsy_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51G19A
|
||||
31
boards/itsybitsy_m4/board_config.h
Normal file
31
boards/itsybitsy_m4/board_config.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "ItsyBitsy M4 Express"
|
||||
#define VOLUME_LABEL "ITSYM4BOOT"
|
||||
#define INDEX_URL "http://adafru.it/"
|
||||
#define BOARD_ID "SAMD51G19A-Itsy-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x002B
|
||||
|
||||
#define LED_PIN PIN_PA22
|
||||
|
||||
#define BOARD_RGBLED_CLOCK_PIN PIN_PB02
|
||||
#define BOARD_RGBLED_DATA_PIN PIN_PB03
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM3
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBBMASK_SERCOM3
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA22C_SERCOM3_PAD0
|
||||
#define BOOT_USART_PAD0 PINMUX_PA23C_SERCOM3_PAD1
|
||||
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
|
|
@ -2,30 +2,30 @@
|
|||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Metro M4"
|
||||
#define PRODUCT_NAME "Metro M4 Express"
|
||||
#define VOLUME_LABEL "METROM4BOOT"
|
||||
#define INDEX_URL "http://adafru.it/3505"
|
||||
#define INDEX_URL "http://adafru.it/3382"
|
||||
#define BOARD_ID "SAMD51J19A-Metro-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0021
|
||||
|
||||
#define LED_PIN PIN_PA21
|
||||
#define LED_PIN PIN_PA16
|
||||
#define LED_TX_PIN PIN_PA27
|
||||
#define LED_RX_PIN PIN_PB06
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PB17
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PB22
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM0
|
||||
#define BOOT_USART_MODULE SERCOM3
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM0
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD3_TX_PAD2
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBBMASK_SERCOM3
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA10C_SERCOM0_PAD2
|
||||
#define BOOT_USART_PAD0 PINMUX_PA11C_SERCOM0_PAD3
|
||||
#define BOOT_GCLK_ID_CORE SERCOM0_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM0_GCLK_ID_SLOW
|
||||
#define BOOT_USART_PAD1 PINMUX_PA22C_SERCOM3_PAD0
|
||||
#define BOOT_USART_PAD0 PINMUX_PA23C_SERCOM3_PAD1
|
||||
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
|
|
|
|||
2
boards/metro_m4_airlift/board.mk
Normal file
2
boards/metro_m4_airlift/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
31
boards/metro_m4_airlift/board_config.h
Normal file
31
boards/metro_m4_airlift/board_config.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Metro M4 AirLift"
|
||||
#define VOLUME_LABEL "METROM4BOOT"
|
||||
#define INDEX_URL "http://adafru.it/"
|
||||
#define BOARD_ID "SAMD51J19A-Metro-AirLift-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0037
|
||||
|
||||
#define LED_PIN PIN_PA16
|
||||
#define LED_TX_PIN PIN_PB07
|
||||
#define LED_RX_PIN PIN_PB06
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PB22
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM3
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBBMASK_SERCOM3
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA22C_SERCOM3_PAD0
|
||||
#define BOOT_USART_PAD0 PINMUX_PA23C_SERCOM3_PAD1
|
||||
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/metro_m4_revb/board.mk
Normal file
2
boards/metro_m4_revb/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
31
boards/metro_m4_revb/board_config.h
Normal file
31
boards/metro_m4_revb/board_config.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Metro M4 Rev B"
|
||||
#define VOLUME_LABEL "METROM4BOOT"
|
||||
#define INDEX_URL "http://adafru.it/3505"
|
||||
#define BOARD_ID "SAMD51J19A-Metro-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0021
|
||||
|
||||
#define LED_PIN PIN_PA21
|
||||
#define LED_TX_PIN PIN_PA27
|
||||
#define LED_RX_PIN PIN_PB06
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PB17
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM0
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM0
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD3_TX_PAD2
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA10C_SERCOM0_PAD2
|
||||
#define BOOT_USART_PAD0 PINMUX_PA11C_SERCOM0_PAD3
|
||||
#define BOOT_GCLK_ID_CORE SERCOM0_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM0_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/mini_sam_m0/board.mk
Normal file
2
boards/mini_sam_m0/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
20
boards/mini_sam_m0/board_config.h
Normal file
20
boards/mini_sam_m0/board_config.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Benjamin Shockley"
|
||||
#define PRODUCT_NAME "Mini SAM M0"
|
||||
#define VOLUME_LABEL "MINISAMBOOT"
|
||||
#define INDEX_URL "httpw://www.minifigboards.com"
|
||||
#define BOARD_ID "SAMD21G18A-MiniSAMM0-v0"
|
||||
|
||||
#define USB_VID 0x1209
|
||||
#define USB_PID 0x7102
|
||||
|
||||
#define LED_PIN PIN_PA15
|
||||
|
||||
#define BOARD_RGBLED_CLOCK_PIN PIN_PB02
|
||||
#define BOARD_RGBLED_DATA_PIN PIN_PA00
|
||||
|
||||
#endif
|
||||
2
boards/mini_sam_m4/board.mk
Normal file
2
boards/mini_sam_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51G19A
|
||||
29
boards/mini_sam_m4/board_config.h
Normal file
29
boards/mini_sam_m4/board_config.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Benjamin Shockley"
|
||||
#define PRODUCT_NAME "Mini SAM M4"
|
||||
#define VOLUME_LABEL "MINISAMBOOT"
|
||||
#define INDEX_URL "https://minisam.cc"
|
||||
#define BOARD_ID "SAMD51G19A-MiniSamM4-v0"
|
||||
|
||||
#define USB_VID 0x1209
|
||||
#define USB_PID 0x2017
|
||||
|
||||
#define LED_PIN PIN_PA15
|
||||
|
||||
#define BOARD_RGBLED_CLOCK_PIN PIN_PB02
|
||||
#define BOARD_RGBLED_DATA_PIN PIN_PB03
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM3
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBBMASK_SERCOM3
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA22C_SERCOM3_PAD0
|
||||
#define BOOT_USART_PAD0 PINMUX_PA23C_SERCOM3_PAD1
|
||||
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/mkr1300/board.mk
Normal file
2
boards/mkr1300/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
15
boards/mkr1300/board_config.h
Normal file
15
boards/mkr1300/board_config.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Arduino LLC"
|
||||
#define PRODUCT_NAME "Arduino MKR1300"
|
||||
#define VOLUME_LABEL "MKR1300"
|
||||
|
||||
#define BOARD_ID "SAMD21G18A-MKR1300-v0"
|
||||
|
||||
#define USB_VID 0x2341
|
||||
#define USB_PID 0x8053
|
||||
|
||||
#define LED_PIN PIN_PA20
|
||||
|
||||
#endif
|
||||
2
boards/mkrzero/board.mk
Normal file
2
boards/mkrzero/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
16
boards/mkrzero/board_config.h
Normal file
16
boards/mkrzero/board_config.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Arduino LLC"
|
||||
#define PRODUCT_NAME "Arduino MKRZero"
|
||||
#define VOLUME_LABEL "MKRZEROBOOT"
|
||||
|
||||
#define BOARD_ID "SAMD21G18A-MKRZero-v0"
|
||||
|
||||
// Adafruit VID/PID assigned to MKRZero for hobby use
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0035
|
||||
|
||||
#define LED_PIN PIN_PB08
|
||||
|
||||
#endif
|
||||
2
boards/nano33iot/board.mk
Normal file
2
boards/nano33iot/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
17
boards/nano33iot/board_config.h
Normal file
17
boards/nano33iot/board_config.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Arduino SA"
|
||||
#define PRODUCT_NAME "Arduino NANO 33 IoT"
|
||||
#define VOLUME_LABEL "NANOBOOT"
|
||||
#define INDEX_URL "https://store.arduino.cc/usa/nano-33-iot"
|
||||
#define BOARD_ID "SAMD21G18A-NANO-33"
|
||||
|
||||
#define USB_VID 0x2341
|
||||
#define USB_PID 0x0057
|
||||
|
||||
#define LED_PIN PIN_PA17
|
||||
|
||||
#endif
|
||||
2
boards/ndbit6/board.mk
Normal file
2
boards/ndbit6/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21E18A
|
||||
17
boards/ndbit6/board_config.h
Normal file
17
boards/ndbit6/board_config.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "ndGarage"
|
||||
#define PRODUCT_NAME "ndBit6"
|
||||
#define VOLUME_LABEL "ND6BOOT"
|
||||
#define INDEX_URL "https://ndgarage.github.io/"
|
||||
#define BOARD_ID "SAMD21E18A-ND6"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0065
|
||||
|
||||
#define LED_PIN PIN_PA23
|
||||
|
||||
#endif
|
||||
2
boards/openbook_m4/board.mk
Normal file
2
boards/openbook_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
31
boards/openbook_m4/board_config.h
Normal file
31
boards/openbook_m4/board_config.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Oddly Specific Objects"
|
||||
#define PRODUCT_NAME "The Open Book Feather"
|
||||
#define VOLUME_LABEL "BOOKBOOT"
|
||||
#define INDEX_URL "https://github.com/joeycastillo/The-Open-Book"
|
||||
#define BOARD_ID "OSO-BOOK-A1-04"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x007D
|
||||
|
||||
#define LED_PIN PIN_PA23
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA15
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM5
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBDMASK_SERCOM5
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PB17C_SERCOM5_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PB16C_SERCOM5_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM5_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM5_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/pewpew_m4/board.mk
Normal file
2
boards/pewpew_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
74
boards/pewpew_m4/board_config.h
Normal file
74
boards/pewpew_m4/board_config.h
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Radomir Dopieralski"
|
||||
#define PRODUCT_NAME "PewPew"
|
||||
#define VOLUME_LABEL "PEWBOOT"
|
||||
#define INDEX_URL "http://pewpew.rtfd.io"
|
||||
#define BOARD_ID "SAMD51J19A-PewPew-M4"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0034
|
||||
|
||||
#define BOARD_NEOPIXEL_COUNT 0
|
||||
|
||||
#define BOARD_SCREEN 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM3
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBBMASK_SERCOM3
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA22C_SERCOM3_PAD0
|
||||
#define BOOT_USART_PAD0 PINMUX_PA23C_SERCOM3_PAD1
|
||||
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW
|
||||
|
||||
#define HAS_CONFIG_DATA 1
|
||||
|
||||
// This configuration data should be edited at https://microsoft.github.io/uf2/patcher/
|
||||
// Just drop this file there.
|
||||
// Alternatively, it can be also binary edited there after the bootloader is compiled.
|
||||
|
||||
#ifdef DEFINE_CONFIG_DATA
|
||||
const uint32_t config_data[] = {
|
||||
/* CF2 START */
|
||||
513675505, 539130489, // magic
|
||||
23, 100, // used entries, total entries
|
||||
4, 0xa, // PIN_BTN_A = PA10
|
||||
5, 0x9, // PIN_BTN_B = PA09
|
||||
26, 0x2, // PIN_SPEAKER_AMP = PA02
|
||||
32, 0xd, // PIN_DISPLAY_SCK = PA13
|
||||
34, 0xf, // PIN_DISPLAY_MOSI = PA15
|
||||
35, 0xb, // PIN_DISPLAY_CS = PA11
|
||||
36, 0x10, // PIN_DISPLAY_DC = PA16
|
||||
37, 0xa0, // DISPLAY_WIDTH = 160
|
||||
38, 0x80, // DISPLAY_HEIGHT = 128
|
||||
39, 0x20180, // DISPLAY_CFG0 = 0x20180
|
||||
40, 0x12c2d, // DISPLAY_CFG1 = 0x12c2d
|
||||
41, 0x18, // DISPLAY_CFG2 = 0x18
|
||||
43, 0x11, // PIN_DISPLAY_RST = PA17
|
||||
47, 0x37, // PIN_BTN_LEFT = PB23
|
||||
48, 0x36, // PIN_BTN_RIGHT = PB22
|
||||
49, 0x17, // PIN_BTN_UP = PA23
|
||||
50, 0x1b, // PIN_BTN_DOWN = PA27
|
||||
51, 0x16, // PIN_BTN_MENU = PA22
|
||||
204, 0x80000, // FLASH_BYTES = 0x80000
|
||||
205, 0x30000, // RAM_BYTES = 0x30000
|
||||
208, 0x470c08e2, // BOOTLOADER_BOARD_ID = 0x470c08e2
|
||||
209, 0x55114460, // UF2_FAMILY = ATSAMD51
|
||||
210, 0x20, // PINS_PORT_SIZE = PA_32
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* CF2 END */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
|
@ -4,9 +4,9 @@
|
|||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "pIRKey"
|
||||
#define PRODUCT_NAME "pIRKey M0"
|
||||
#define VOLUME_LABEL "PIRKEYBOOT"
|
||||
#define INDEX_URL "http://adafru.it/"
|
||||
#define INDEX_URL "http://adafru.it/3364"
|
||||
#define BOARD_ID "SAMD21E18A-pIRKey-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
|
|
|
|||
2
boards/pycubed/board.mk
Normal file
2
boards/pycubed/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J19A
|
||||
28
boards/pycubed/board_config.h
Normal file
28
boards/pycubed/board_config.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "maholli"
|
||||
#define PRODUCT_NAME "PyCubedv04"
|
||||
#define VOLUME_LABEL "PYCUBEDBOOT"
|
||||
#define INDEX_URL "http://pycubed.org"
|
||||
#define BOARD_ID "PYCUBED"
|
||||
|
||||
#define USB_VID 0x04D8
|
||||
#define USB_PID 0xEC44 // PID sublicensed from Microchip
|
||||
|
||||
#define LED_PIN PIN_PA16 // not actually used, but build fails without it?
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA21
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM0
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM0
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD3_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_PA07D_SERCOM0_PAD3
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD0 PINMUX_PA04D_SERCOM0_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM0_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM0_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/pyportal_m4/board.mk
Normal file
2
boards/pyportal_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J20A
|
||||
31
boards/pyportal_m4/board_config.h
Normal file
31
boards/pyportal_m4/board_config.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "PyPortal M4 Express"
|
||||
#define VOLUME_LABEL "PORTALBOOT"
|
||||
#define INDEX_URL "http://adafru.it/4116"
|
||||
#define BOARD_ID "SAMD51J20A-PyPortal-v0"
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0035
|
||||
|
||||
#define LED_PIN PIN_PB23
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PB22
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM5
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBDMASK_SERCOM5
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PB03D_SERCOM5_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PB02D_SERCOM5_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM0_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM0_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/radiofruit_m0/board.mk
Normal file
2
boards/radiofruit_m0/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
19
boards/radiofruit_m0/board_config.h
Normal file
19
boards/radiofruit_m0/board_config.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Radiofruit M0"
|
||||
#define VOLUME_LABEL "RADIOBOOT"
|
||||
#define INDEX_URL "http://adafru.it/3403"
|
||||
#define BOARD_ID "SAMR21G18A-Radiofruit-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0024
|
||||
|
||||
#define LED_PIN PIN_PA27
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA22
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
|
||||
#endif
|
||||
2
boards/robohatmm1_m0/board.mk
Normal file
2
boards/robohatmm1_m0/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
17
boards/robohatmm1_m0/board_config.h
Normal file
17
boards/robohatmm1_m0/board_config.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Robotics Masters"
|
||||
#define PRODUCT_NAME "Robo HAT MM1"
|
||||
#define VOLUME_LABEL "ROBOM0BOOT"
|
||||
#define INDEX_URL "https://roboticsmasters.co"
|
||||
#define BOARD_ID "SAMD21G18A-robohat-v8"
|
||||
|
||||
#define USB_VID 0x1209
|
||||
#define USB_PID 0x4D44
|
||||
|
||||
#define LED_PIN PIN_PB22
|
||||
|
||||
#endif
|
||||
2
boards/robohatmm1_m4/board.mk
Normal file
2
boards/robohatmm1_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51G19A
|
||||
28
boards/robohatmm1_m4/board_config.h
Normal file
28
boards/robohatmm1_m4/board_config.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "Robotics Masters"
|
||||
#define PRODUCT_NAME "Robo HAT MM1 M4"
|
||||
#define VOLUME_LABEL "ROBOM4BOOT"
|
||||
#define INDEX_URL "https://roboticsmasters.co"
|
||||
#define BOARD_ID "SAMD51G19A-RoboHATMM1-v24"
|
||||
|
||||
#define USB_VID 0x1209
|
||||
#define USB_PID 0x4D44
|
||||
|
||||
#define LED_PIN PIN_PB22
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM1
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBAMASK_SERCOM1
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA17C_SERCOM1_PAD1
|
||||
#define BOOT_USART_PAD0 PINMUX_PA16C_SERCOM1_PAD0
|
||||
#define BOOT_GCLK_ID_CORE SERCOM1_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM1_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/sam32/board.mk
Normal file
2
boards/sam32/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51J20A
|
||||
29
boards/sam32/board_config.h
Normal file
29
boards/sam32/board_config.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "maholli"
|
||||
#define PRODUCT_NAME "SAM32"
|
||||
#define VOLUME_LABEL "SAM32BOOT"
|
||||
#define INDEX_URL "https://github.com/maholli"
|
||||
#define BOARD_ID "SAM32"
|
||||
|
||||
#define USB_VID 0x04D8
|
||||
#define USB_PID 0xEDBE // PID sublicensed from Microchip
|
||||
|
||||
#define LED_PIN PIN_PA27
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PA15
|
||||
#define BOARD_NEOPIXEL_COUNT 1
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM3
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBBMASK_SERCOM3
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA22C_SERCOM3_PAD0
|
||||
#define BOOT_USART_PAD0 PINMUX_PA23C_SERCOM3_PAD1
|
||||
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
2
boards/sensebox-mcu/board.mk
Normal file
2
boards/sensebox-mcu/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
18
boards/sensebox-mcu/board_config.h
Normal file
18
boards/sensebox-mcu/board_config.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define __SAMD21G18A__ 1
|
||||
|
||||
#define VENDOR_NAME "eduSense"
|
||||
#define PRODUCT_NAME "senseBox MCU"
|
||||
#define VOLUME_LABEL "SENSEBOX"
|
||||
#define INDEX_URL "http://www.sensebox.de"
|
||||
#define BOARD_ID "SAMD21G18A-senseBox-MCU-v0"
|
||||
|
||||
#define USB_VID 0x04D8
|
||||
#define USB_PID 0xEF66 // PID sublicensed from Microchip
|
||||
#define USB_POWER_MA 20
|
||||
|
||||
#define LED_PIN PIN_PA27 // red LED
|
||||
|
||||
#endif
|
||||
2
boards/serpente/board.mk
Normal file
2
boards/serpente/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21E18A
|
||||
17
boards/serpente/board_config.h
Normal file
17
boards/serpente/board_config.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "arturo182"
|
||||
#define PRODUCT_NAME "Serpente"
|
||||
#define VOLUME_LABEL "SERPENTBOOT"
|
||||
#define INDEX_URL "https://serpente.solder.party/"
|
||||
#define BOARD_ID "SAMD21E18A-Serpente"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x0057
|
||||
|
||||
#define LED_PIN PIN_PA23
|
||||
|
||||
#endif
|
||||
2
boards/shirtty/board.mk
Normal file
2
boards/shirtty/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21E18A
|
||||
17
boards/shirtty/board_config.h
Normal file
17
boards/shirtty/board_config.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define CRYSTALLESS 1
|
||||
|
||||
#define VENDOR_NAME "@sarfata"
|
||||
#define PRODUCT_NAME "shIRtty"
|
||||
#define VOLUME_LABEL "shIRtty"
|
||||
#define INDEX_URL "https://github.com/sarfata/shirtty-addon"
|
||||
#define BOARD_ID "shIRtty"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x006B
|
||||
|
||||
#define LED_PIN PIN_PA14
|
||||
|
||||
#endif
|
||||
2
boards/snekboard/board.mk
Normal file
2
boards/snekboard/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd21
|
||||
CHIP_VARIANT = SAMD21G18A
|
||||
18
boards/snekboard/board_config.h
Normal file
18
boards/snekboard/board_config.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "keithp.com"
|
||||
#define PRODUCT_NAME "snekboard"
|
||||
#define VOLUME_LABEL "SNEKBOOT"
|
||||
#define INDEX_URL "https://keithp.com/snek"
|
||||
#define BOARD_ID "SAMD21G18A-snekboard"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x004D
|
||||
|
||||
#define LED_PIN PIN_PA02
|
||||
|
||||
#define BOARD_NEOPIXEL_PIN PIN_PB11
|
||||
#define BOARD_NEOPIXEL_COUNT 2
|
||||
|
||||
#endif
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
#define BOARD_ID "SAMD21G18A-Dev-Sparkfun-v0"
|
||||
|
||||
#define USB_VID 0x1B4F
|
||||
#define USB_PID 0x0D21
|
||||
#define USB_PID 0x0D23
|
||||
|
||||
#define LED_PIN PIN_PA17
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#define BOARD_ID "SAMD21G18A-Mini-Sparkfun-v0"
|
||||
|
||||
#define USB_VID 0x1B4F
|
||||
#define USB_PID 0x0D21
|
||||
#define USB_PID 0x0D22
|
||||
|
||||
#define LED_PIN PIN_PA17
|
||||
|
||||
|
|
|
|||
2
boards/trellis_m4/board.mk
Normal file
2
boards/trellis_m4/board.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CHIP_FAMILY = samd51
|
||||
CHIP_VARIANT = SAMD51G19A
|
||||
29
boards/trellis_m4/board_config.h
Normal file
29
boards/trellis_m4/board_config.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef BOARD_CONFIG_H
|
||||
#define BOARD_CONFIG_H
|
||||
|
||||
#define VENDOR_NAME "Adafruit Industries"
|
||||
#define PRODUCT_NAME "Trellis M4 Express"
|
||||
#define VOLUME_LABEL "TRELM4BOOT"
|
||||
#define INDEX_URL "http://adafru.it/3938"
|
||||
#define BOARD_ID "SAMD51G19A-Trellis-v0"
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x002F
|
||||
|
||||
#define LED_PIN PIN_PA31
|
||||
|
||||
#define BOARD_RGBLED_CLOCK_PIN PIN_PB02
|
||||
#define BOARD_RGBLED_DATA_PIN PIN_PB03
|
||||
|
||||
#define BOOT_USART_MODULE SERCOM3
|
||||
#define BOOT_USART_MASK APBAMASK
|
||||
#define BOOT_USART_BUS_CLOCK_INDEX MCLK_APBBMASK_SERCOM3
|
||||
#define BOOT_USART_PAD_SETTINGS UART_RX_PAD1_TX_PAD0
|
||||
#define BOOT_USART_PAD3 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD2 PINMUX_UNUSED
|
||||
#define BOOT_USART_PAD1 PINMUX_PA22C_SERCOM3_PAD0
|
||||
#define BOOT_USART_PAD0 PINMUX_PA23C_SERCOM3_PAD1
|
||||
#define BOOT_GCLK_ID_CORE SERCOM3_GCLK_ID_CORE
|
||||
#define BOOT_GCLK_ID_SLOW SERCOM3_GCLK_ID_SLOW
|
||||
|
||||
#endif
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue