forked from adafruit/ArduinoCore-samd
-
Notifications
You must be signed in to change notification settings - Fork 2
/
boards.template
167 lines (160 loc) · 8.46 KB
/
boards.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
#
# File: boards.template
#
# Purpose:
# Input to generate_boards.bri, produces Arduino IDE boards.txt.
#
# Copyright:
# Copyright (c) 2018-2020 MCCI Corporation
#
# 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
#
# Author:
# Terry Moore, MCCI Corporation
#
%%+prefix
#
# File: boards.txt
#
# Purpose:
# Define all the boards for this board support package to the Arduino IDE
#
# Copyright:
# Copyright (c) 2018-2020 MCCI Corporation
#
# 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
#
# Author:
# Generated by generate_boards.bri.
#
# Notes:
# See: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
#
# Additional menu items
menu.lorawan_region=LoRaWAN Region
menu.lorawan_network=LoRaWAN Network
menu.lorawan_subband=LoRaWAN Subband
%%-prefix
%%+boards
#
# Configuration information for {{name}} boards
#
{{board}}.name={{name}}
{{board}}.upload.tool=bossac
{{board}}.upload.protocol=sam-ba
{{board}}.upload.maximum_size=262144
{{board}}.upload.use_1200bps_touch=true
{{board}}.upload.wait_for_upload_port=true
{{board}}.upload.native_usb=true
{{board}}.build.mcu=cortex-m0plus
{{board}}.build.f_cpu=48000000L
{{board}}.build.usb_product="{{name}}"
{{board}}.build.usb_manufacturer="MCCI Corporation"
{{board}}.build.board={{build_board}}
{{board}}.build.core=arduino
{{board}}.build.extra_flags=-DARDUINO_SAMD_ZERO -DARDUINO_SAMD_FEATHER_M0 -DMCCI_CATENA_{{modelnumber}} -D__SAMD21G18A__ {build.usb_flags} {build.lorawan_flags} {build.lorawan_network_flags} {build.lorawan_subband_flags}
# {{board}}.build.c.Werror=
# {{board}}.build.cpp.Werror=
# {{board}}.build.S.Werror=
{{board}}.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
{{board}}.build.openocdscript=openocd_scripts/arduino_zero.cfg
{{board}}.build.variant={{build_variant}}
{{board}}.build.variant_system_lib=
{{board}}.build.vid=0x{{vid}}
{{board}}.build.pid=0x{{pid}}
{{board}}.bootloader.tool=openocd
{{board}}.bootloader.file=feather/samd21_sam_ba.bin
#
# menu.lorawan_region
{{board}}.menu.lorawan_region.us915=North America 915 MHz
{{board}}.menu.lorawan_region.eu868=Europe 868 MHz
{{board}}.menu.lorawan_region.au915=Australia 915 MHz
{{board}}.menu.lorawan_region.as923=Asia 923 MHz
{{board}}.menu.lorawan_region.as923jp=Japan 923 MHz
{{board}}.menu.lorawan_region.kr920=Korea 920 MHz
{{board}}.menu.lorawan_region.in866=India 866 MHz
{{board}}.menu.lorawan_region.projcfg=Use arduino-lmic/project_config/lmic_project_lmic_config_preconditions.h
{{board}}.menu.lorawan_region.us915.build.lorawan_flags=-DCFG_us915=1 -DCFG_sx1276_radio=1 -DARDUINO_LMIC_PROJECT_CONFIG_H=lmic_config_preconditions.h
{{board}}.menu.lorawan_region.eu868.build.lorawan_flags=-DCFG_eu868=1 -DCFG_sx1276_radio=1 -DARDUINO_LMIC_PROJECT_CONFIG_H=lmic_config_preconditions.h
{{board}}.menu.lorawan_region.au915.build.lorawan_flags=-DCFG_au915=1 -DCFG_au921=1 -DCFG_sx1276_radio=1 -DARDUINO_LMIC_PROJECT_CONFIG_H=lmic_config_preconditions.h
{{board}}.menu.lorawan_region.as923.build.lorawan_flags=-DCFG_as923=1 -DCFG_sx1276_radio=1 -DARDUINO_LMIC_PROJECT_CONFIG_H=lmic_config_preconditions.h
{{board}}.menu.lorawan_region.as923jp.build.lorawan_flags=-DCFG_as923=1 -DLMIC_COUNTRY_CODE=LMIC_COUNTRY_CODE_JP -DCFG_sx1276_radio=1 -DARDUINO_LMIC_PROJECT_CONFIG_H=lmic_config_preconditions.h
{{board}}.menu.lorawan_region.kr920.build.lorawan_flags=-DCFG_kr920=1 -DCFG_sx1276_radio=1 -DARDUINO_LMIC_PROJECT_CONFIG_H=lmic_config_preconditions.h
{{board}}.menu.lorawan_region.in866.build.lorawan_flags=-DCFG_in866=1 -DCFG_sx1276_radio=1 -DARDUINO_LMIC_PROJECT_CONFIG_H=lmic_config_preconditions.h
{{board}}.menu.lorawan_region.projcfg.build.lorawan_flags=
#
# menu.lorawan_network
{{board}}.menu.lorawan_network.ttn=The Things Network
{{board}}.menu.lorawan_network.ttn.build.lorawan_network_flags=-DARDUINO_LMIC_CFG_NETWORK_TTN=1
{{board}}.menu.lorawan_network.actility=Actility ThingsPark
{{board}}.menu.lorawan_network.actility.build.lorawan_network_flags=-DARDUINO_LMIC_CFG_NETWORK_ACTILITY=1
{{board}}.menu.lorawan_network.helium=Helium
{{board}}.menu.lorawan_network.helium.build.lorawan_network_flags=-DARDUINO_LMIC_CFG_NETWORK_HELIUM=1
{{board}}.menu.lorawan_network.machineq=machineQ
{{board}}.menu.lorawan_network.machineq.build.lorawan_network_flags=-DARDUINO_LMIC_CFG_NETWORK_MACHINEQ=1
{{board}}.menu.lorawan_network.senet=Senet
{{board}}.menu.lorawan_network.senet.build.lorawan_network_flags=-DARDUINO_LMIC_CFG_NETWORK_SENET=1
{{board}}.menu.lorawan_network.senra=Senra
{{board}}.menu.lorawan_network.senra.build.lorawan_network_flags=-DARDUINO_LMIC_CFG_NETWORK_SENRA=1
{{board}}.menu.lorawan_network.swisscom=Swisscom
{{board}}.menu.lorawan_network.swisscom.build.lorawan_network_flags=-DARDUINO_LMIC_CFG_NETWORK_SWISSCOM=1
{{board}}.menu.lorawan_network.chirpstack=ChirpStack
{{board}}.menu.lorawan_network.chirpstack.build.lorawan_network_flags=-DARDUINO_LMIC_CFG_NETWORK_CHIRPSTACK=1
{{board}}.menu.lorawan_network.generic=Generic
{{board}}.menu.lorawan_network.generic.build.lorawan_network_flags=-DARDUINO_LMIC_CFG_NETWORK_GENERIC=1
{{board}}.menu.lorawan_network.projcfg=Use arduino-lmic/project_config/lmic_project_lmic_config_preconditions.h
{{board}}.menu.lorawan_network.projcfg.build.lorawan_network_flags=
#
# menul.lorawan_subband
{{board}}.menu.lorawan_subband.default=Default, works everywhere
{{board}}.menu.lorawan_subband.default.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=-1
{{board}}.menu.lorawan_subband.sb0=sb0, ch 0~7 (US/AU/CN470)
{{board}}.menu.lorawan_subband.sb0.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=0
{{board}}.menu.lorawan_subband.sb1=sb1, ch 8~15 (US/AU/CN470)
{{board}}.menu.lorawan_subband.sb1.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=1
{{board}}.menu.lorawan_subband.sb2=sb2, ch 16~23 (US/AU/CN470)
{{board}}.menu.lorawan_subband.sb2.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=2
{{board}}.menu.lorawan_subband.sb3=sb3, ch 24~31 (US/AU/CN470)
{{board}}.menu.lorawan_subband.sb3.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=3
{{board}}.menu.lorawan_subband.sb4=sb4, ch 32~39 (US/AU/CN470)
{{board}}.menu.lorawan_subband.sb4.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=4
{{board}}.menu.lorawan_subband.sb5=sb5, ch 40~47 (US/AU/CN470)
{{board}}.menu.lorawan_subband.sb5.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=5
{{board}}.menu.lorawan_subband.sb6=sb6, ch 48~55 (US/AU/CN470)
{{board}}.menu.lorawan_subband.sb6.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=6
{{board}}.menu.lorawan_subband.sb7=sb7, ch 56~63 (US/AU/CN470)
{{board}}.menu.lorawan_subband.sb7.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=7
{{board}}.menu.lorawan_subband.sb8=sb8, ch 64~71 (CN470)
{{board}}.menu.lorawan_subband.sb8.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=8
{{board}}.menu.lorawan_subband.sb9=sb9, ch 72~79 (CN470)
{{board}}.menu.lorawan_subband.sb9.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=9
{{board}}.menu.lorawan_subband.sb10=sb10, ch 80~87 (CN470)
{{board}}.menu.lorawan_subband.sb10.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=10
{{board}}.menu.lorawan_subband.sb11=sb11, ch 88~95 (CN470)
{{board}}.menu.lorawan_subband.sb11.build.lorawan_subband_flags=-DARDUINO_LMIC_CFG_SUBBAND=11
#### end of configuration info for {{name}}
%%-boards