Skip to content

Commit

Permalink
Fix #145: added option Technology to Tools menu
Browse files Browse the repository at this point in the history
  • Loading branch information
dhineshkumarmcci committed May 13, 2021
1 parent dd12744 commit 882c882
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 54 deletions.
69 changes: 39 additions & 30 deletions boards.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,62 @@
# File: boards.template
#
# Purpose:
# Input to generate_boards.bri, produces Arduino IDE boards.txt.
# Input to generate_boards.bri, produces Arduino IDE boards.txt.
#
# Copyright:
# Copyright (c) 2018-2021 MCCI Corporation
# Copyright (c) 2018-2021 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 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.
# 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
# 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
# Terry Moore, MCCI Corporation
#
%%+prefix
#
# File: boards.txt
# File: boards.txt
#
# Purpose:
# Define all the boards for this board support package to the Arduino IDE
# Define all the boards for this board support package to the Arduino IDE
#
# Copyright:
# Copyright (c) 2018-2021 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 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.
# 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
# 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.
# Generated by generate_boards.bri.
#
# Notes:
# See: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
# See: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
#

# Additional menu items
menu.technology=Technology

menu.lorawan_region=LoRaWAN Region
menu.lorawan_network=LoRaWAN Network
menu.lorawan_subband=LoRaWAN Subband
Expand Down Expand Up @@ -90,7 +92,7 @@ $section usb
{{board}}.build.variant_extra_flags={{build_variant_extra_flags}}
{{board}}.build.cmsis_lib_gcc=arm_cortexM0l_math
{{board}}.build.ldscript=
{{board}}.build.extra_flags=-DARDUINO_STM32 -DARDUINO_{build.series} -DARDUINO_{build.product_line} {{build_board_old_flags}} -D{build.product_line} {build.sysclk_flags} {build.xSerial} -D__CORTEX_SC=0 -D{build.board} {build.lorawan_flags} {build.lorawan_network_flags} {build.lorawan_subband_flags} {build.variant_extra_flags}
{{board}}.build.extra_flags=-DARDUINO_STM32 -DARDUINO_{build.series} -DARDUINO_{build.product_line} {{build_board_old_flags}} -D{build.product_line} {build.sysclk_flags} {build.xSerial} -D__CORTEX_SC=0 -D{build.board} {build.technology_flags} {build.lorawan_flags} {build.lorawan_network_flags} {build.lorawan_subband_flags} {build.variant_extra_flags}
# {{board}}.build.c.Werror=
# {{board}}.build.cpp.Werror=
# {{board}}.build.S.Werror=
Expand Down Expand Up @@ -172,6 +174,13 @@ $section xserial
{{board}}.menu.opt.ogstd.build.flags.optimize=-Og -gdwarf-2
{{board}}.menu.opt.ogstd.build.flags.ldspecs=

#
# menu.technology
{{board}}.menu.technology.lorawan=LoRaWAN
{{board}}.menu.technology.sigfox=Sigfox
{{board}}.menu.technology.lorawan.build.technology_flags=-DARDUINO_LORAWAN
{{board}}.menu.technology.sigfox.build.technology_flags=-DARDUINO_SIGFOX

#
# menu.lorawan_region
{{board}}.menu.lorawan_region.us915=North America 915 MHz
Expand Down
Loading

0 comments on commit 882c882

Please sign in to comment.