|
| 1 | +# Supported Targets |
| 2 | + |
| 3 | +modm supports a total of {{total}} targets by setting the `modm:target` |
| 4 | +repository option with the device identifier string. |
| 5 | + |
| 6 | +{{description}} |
| 7 | + |
| 8 | +%% for platform, families in targets.items() | sort |
| 9 | +## {{platform}} |
| 10 | +%# |
| 11 | +%% if "Hosted" in platform |
| 12 | +The hosted targets are for compiling modm on an operating system, usually to run |
| 13 | +our unit tests locally or in the CI. |
| 14 | + |
| 15 | +Identifier format example for `Hosted-Linux`: |
| 16 | + |
| 17 | +``` |
| 18 | + hosted linux |
| 19 | +{platform}-{family} |
| 20 | +``` |
| 21 | +%% elif "AVR" in platform |
| 22 | +Identifier format example for `ATmega328P-AU`: |
| 23 | +``` |
| 24 | + avr mega 328 p au |
| 25 | +{platform}{family}{name}{type}-{speed}{package} |
| 26 | +``` |
| 27 | +Note that the platform is mapped to `avr` not `at` and that some AVRs have an |
| 28 | +optional device speed. |
| 29 | + |
| 30 | +Identifier format example for `AT90CAN128-16AU`: |
| 31 | +``` |
| 32 | + avr 90 can 128 16 au |
| 33 | +{platform}{family}{type}{name}-{speed}{package} |
| 34 | +``` |
| 35 | +Note that the type and name are switched here to normalize the identifier |
| 36 | +schema. |
| 37 | +%% elif "STM32" in platform |
| 38 | +Identifier format example for `STM32G071GBU6N/revY`: |
| 39 | +``` |
| 40 | + stm32 g0 71 g b u 6 n y |
| 41 | +{platform}{family}{name}{pin}{size}{package}{temperature}{variant}{revision} |
| 42 | +``` |
| 43 | +The revision is optional, however, the device variant often means significant |
| 44 | +differences in pinout or peripherals, so check your device's identifier twice! |
| 45 | +%% elif "SAM" in platform |
| 46 | +Identifier format example for `SAMD21G18A-AU`: |
| 47 | +``` |
| 48 | + sam d 21 g 18 a a u |
| 49 | +{platform}{family}{series}{pin}{flash}{variant}-{package}{grade} |
| 50 | +``` |
| 51 | +%% elif "Raspberry" in platform |
| 52 | +Identifier format example for `RP2040`: |
| 53 | +``` |
| 54 | + rp 2 0 4 0 |
| 55 | +{platform}{cores}{type}{ram}{flash} |
| 56 | +``` |
| 57 | +%% endif |
| 58 | +%# |
| 59 | +%% for family, prefixes in families.items() | sort |
| 60 | +%% if family | length and prefixes | length > 1 |
| 61 | +### {{family}} |
| 62 | +%# |
| 63 | +%% endif |
| 64 | +%% for prefix, devices in prefixes.items() | sort |
| 65 | +%% if prefix | length |
| 66 | +#### {{prefix}} |
| 67 | +%# |
| 68 | +%% endif |
| 69 | +`{{ devices | sort | join("`, `") }}`. |
| 70 | +%# |
| 71 | +%# |
| 72 | +%% endfor |
| 73 | +%# |
| 74 | +%% endfor |
| 75 | +%# |
| 76 | +%% endfor |
0 commit comments