Skip to content

Commit

Permalink
[ext] Update modm-devices with extended identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Oct 20, 2019
1 parent 4d41c63 commit 05c6274
Show file tree
Hide file tree
Showing 109 changed files with 172 additions and 127 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ git clone --recurse-submodules https://github.com/modm-io/modm.git

## Targets

modm can generate code for <!--avrcount-->78<!--/avrcount--> AVR and <!--stmcount-->1158<!--/stmcount-->
modm can generate code for <!--avrcount-->530<!--/avrcount--> AVR and <!--stmcount-->1857<!--/stmcount-->
STM32 devices, however, there are different levels of support and testing.

<center>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/1-wire/ds18b20/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/1-wire/ds18b20</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/adc/basic/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/adc/basic</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/adc/oversample/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/adc/oversample</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/app_can2usb/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">at90can128</option>
<option name="modm:target">at90can128-16au</option>
<option name="modm:platform:clock:f_cpu">16000000</option>
<option name="modm:build:build.path">../../../build/avr/app_can2usb</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/block_device_mirror/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../build/avr/block_device_mirror</option>
<option name="modm:io:with_printf">True</option>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/can/mcp2515/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/can/mcp2515</option>
<option name="modm:io:with_printf">True</option>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/can/mcp2515_uart/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/can/mcp2515_uart</option>
<option name="modm:io:with_printf">True</option>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/display/dogm128/benchmark/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../../build/avr/display/dogm128/benchmark</option>
<option name="modm:build:scons:image.source">images</option>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/display/dogm128/caged_ball/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../../build/avr/display/dogm128/caged_ball</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/display/dogm128/draw/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../../build/avr/display/dogm128/draw</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/display/dogm128/image/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../../build/avr/display/dogm128/image</option>
<option name="modm:build:scons:image.source">images</option>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/display/dogm128/text/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../../build/avr/display/dogm128/text</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/display/dogm128/touch/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../../build/avr/display/dogm128/touch</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/display/dogm132/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/display/dogm132</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/display/dogm163/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">16000000</option>
<option name="modm:build:build.path">../../../../build/avr/display/dogm163</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/display/hd44780/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/display/hd44780</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/display/siemens_s65/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">16000000</option>
<option name="modm:build:build.path">../../../../build/avr/display/siemens_s65</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/flash/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega328p</option>
<option name="modm:target">atmega328p-au</option>
<option name="modm:platform:clock:f_cpu">1000000</option>
<option name="modm:build:build.path">../../../build/avr/flash</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/gpio/basic/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">attiny85</option>
<option name="modm:target">attiny85v-10mu</option>
<option name="modm:platform:clock:f_cpu">8000000</option>
<option name="modm:build:build.path">../../../../build/avr/gpio/basic</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/gpio/blinking/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega328p</option>
<option name="modm:target">atmega328p-au</option>
<option name="modm:platform:clock:f_cpu">1000000</option>
<option name="modm:build:build.path">../../../../build/avr/gpio/blinking</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/gpio/button_group/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/gpio/button_group</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/logger/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../build/avr/logger</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/protothread/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../build/avr/protothread</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/pwm/pca9685/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega168p</option>
<option name="modm:target">atmega168p-20au</option>
<option name="modm:platform:clock:f_cpu">8000000</option>
<option name="modm:build:build.path">../../../../build/avr/pwm/pca9685</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/sab/master/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/sab/master</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/sab/slave/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/sab/slave</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/timeout/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../build/avr/timeout</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/uart/basic/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644pa</option>
<option name="modm:target">atmega644pa-au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/uart/basic</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/uart/basic_mega8/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega8</option>
<option name="modm:target">atmega8-16au</option>
<option name="modm:platform:clock:f_cpu">1000000</option>
<option name="modm:build:build.path">../../../../build/avr/uart/basic_mega8</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/uart/extended/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/uart/extended</option>
</options>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/xpcc/receiver/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/xpcc/receiver</option>
<option name="modm::xpcc:generator:source">../../../xpcc/xml/communication.xml</option>
Expand Down
2 changes: 1 addition & 1 deletion examples/avr/xpcc/sender/project.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<library>
<options>
<option name="modm:target">atmega644</option>
<option name="modm:target">atmega644-20au</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/xpcc/sender</option>
<option name="modm::xpcc:generator:source">../../../xpcc/xml/communication.xml</option>
Expand Down
4 changes: 2 additions & 2 deletions examples/generic/i2c_multiplex/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<library>
<extends>../../../src/modm/board/nucleo_f303k8/board.xml</extends>
<options>
<option name=":target">stm32f303k8t</option>
<!-- <option name=":target">stm32f103c8t</option> -->
<option name=":target">stm32f303k8t6</option>
<!-- <option name=":target">stm32f103c8t6</option> -->
<option name=":platform:uart:2:buffer.tx">2048</option>
<option name=":platform:uart:2:buffer.rx">2048</option>
<option name=":build:build.path">../../../build/generic/i2c_multiplex</option>
Expand Down
1 change: 1 addition & 0 deletions examples/nucleo_f103rb/undefined_irq/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ MODM_ISR(EXTI3)
// MODM_ISR(EXTI4)
// { MODM_LOG_DEBUG << "EXTI4 called!" << modm::endl; }

[[maybe_unused]]
static modm::Abandonment
core_assertion_handler(const char * module,
const char * /*location*/,
Expand Down
2 changes: 1 addition & 1 deletion ext/modm-devices
Submodule modm-devices updated 143 files
2 changes: 1 addition & 1 deletion src/modm/board/al_avreb_can/board.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</repositories>

<options>
<option name="modm:target">at90can128</option>
<option name="modm:target">at90can128-16au</option>
<option name="modm:platform:clock:f_cpu">16000000</option>
</options>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/al_avreb_can/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://www.alvidi.de/products/DE/AVR_Entwicklungsboards/avr_modul_avreb_can.php
"""

def prepare(module, options):
if options[":target"].partname != "at90can128":
if not options[":target"].partname.startswith("at90can128"):
return False

module.depends(
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/arduino_nano/board.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</repositories>

<options>
<option name="modm:target">atmega328p</option>
<option name="modm:target">atmega328p-au</option>
<option name="modm:platform:clock:f_cpu">16000000</option>
</options>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/arduino_nano/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def init(module):
module.description = "Arduino NANO"

def prepare(module, options):
if options[":target"].partname != "atmega328p":
if not options[":target"].partname.startswith("atmega328p"):
return False

module.depends(
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/arduino_uno/board.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</repositories>

<options>
<option name="modm:target">atmega328p</option>
<option name="modm:target">atmega328p-au</option>
<option name="modm:platform:clock:f_cpu">16000000</option>
</options>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/arduino_uno/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def init(module):
module.description = "Arduino UNO"

def prepare(module, options):
if options[":target"].partname != "atmega328p":
if not options[":target"].partname.startswith("atmega328p"):
return False

module.depends(
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/black_pill/board.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</repositories>

<options>
<option name="modm:target">stm32f103c8t</option>
<option name="modm:target">stm32f103c8t6</option>
</options>
<modules>
<module>modm:board:black-pill</module>
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/black_pill/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Then include this file in your build options like so:
"""

def prepare(module, options):
if options[":target"].partname != "stm32f103c8t":
if not options[":target"].partname.startswith("stm32f103c8t"):
return False

module.depends(
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/blue_pill/board.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</repositories>

<options>
<option name="modm:target">stm32f103c8t</option>
<option name="modm:target">stm32f103c8t6</option>
</options>
<modules>
<module>modm:board:blue-pill</module>
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/blue_pill/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Then include this file in your build options like so:
"""

def prepare(module, options):
if options[":target"].partname != "stm32f103c8t":
if not options[":target"].partname.startswith("stm32f103c8t"):
return False

module.depends(
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/disco_f051r8/board.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</repositories>

<options>
<option name="modm:target">stm32f051r8t</option>
<option name="modm:target">stm32f051r8t6</option>
</options>
<modules>
<module>modm:board:disco-f051r8</module>
Expand Down
2 changes: 1 addition & 1 deletion src/modm/board/disco_f051r8/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def init(module):
"""

def prepare(module, options):
if options[":target"].partname != "stm32f051r8t":
if not options[":target"].partname.startswith("stm32f051r8t"):
return False

module.depends(
Expand Down
Loading

0 comments on commit 05c6274

Please sign in to comment.