forked from mcci-catena/ArduinoCore-samd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boards.template
113 lines (108 loc) · 4.78 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
#
# File: boards.template
#
# Purpose:
# Input to generate_boards.bri, produces Arduino IDE boards.txt.
#
# Copyright:
# Copyright (c) 2018 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 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
%%-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}
# {{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.au921=Australia 921 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_confic/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.au921.build.lorawan_flags=-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=
#### end of configuration info for {{name}}
%%-boards