Difference between revisions of "Template:MicroprocessorDevice"

m
m
 

1 Usage[edit]

The MicroprocessorDevice template is used to indicate for which microprocessor device(s), an article part (chapter, paragraph, table...) is valid. Per default (i.e. if this template is not used), any part of an article is valid for all microprocessor devices for which the entire article is valid.

It outputs a "standardized" string that might be used to name an article part.

Usage: {{MicroprocessorDevice | device=<device> | security=<security>}}
Where:
  • <device> is the mandatory identifier (one to three digits) that specify the class, the Series, the lines or the line.The possible values are:
    • Class: STM32 Arm® Cortex® MPUs
    • 1: STM32MP1 Series
      • 15: STM32MP15x lines
        • 151: STM32MP151 access line
        • 153: STM32MP153 foundation line
        • 157: STM32MP157 advanced line
  • <security> is the optional identifier (one letter) that specifies the security. The possible values are:
    • A: Basic
    • C: Secure boot and cryptography

Clicking on the More info.png icon displays the article about the microprocessor device lines (e.g. STM32MP15 microprocessor).

2 Basic examples[edit]

You type You get
STM32 Arm® Cortex® MPUs

{{MicroprocessorDevice | device=Class}}

STM32 Arm® Cortex® MPUs More info.png

STM32MP1 Series
{{MicroprocessorDevice | device=1}}

STM32MP1 Series

STM32MP15x lines
{{MicroprocessorDevice | device=15}}

STM32MP15x lines More info.png

STM32MP157 line
{{MicroprocessorDevice | device=157}}

STM32MP157 line More info.png

STM32MP15x lines with basic security
{{MicroprocessorDevice | device=15 | security=A}}

STM32MP15xA lines More info.png

STM32MP157 line with secure boot and cryptography
{{MicroprocessorDevice | device=157 | security=C}}

STM32MP157C line More info.png

3 More examples[edit]

You type You get
Unspecified microprocessor device
{{MicroprocessorDevice}}

STM32MP unknown microprocessor device

Security ignored for class

{{MicroprocessorDevice | device=Class | security=A}}

STM32 Arm® Cortex® MPUs More info.png

Security ignored for Series

{{MicroprocessorDevice | device=1 | security=A}}

STM32MP1 Series

Unknown Series
{{MicroprocessorDevice | device=0}}

STM32MP0 unknown microprocessor device

Unknown lines
{{MicroprocessorDevice | device=11}}

STM32MP11 unknown microprocessor device

Unknown line
{{MicroprocessorDevice | device=154}}

STM32MP154 unknown microprocessor device

Unknown line
{{MicroprocessorDevice | device=1531}}

STM32MP1531 unknown microprocessor device

Unknown security
{{MicroprocessorDevice | device=15 | security=Z}}

unknown security STM32MP15xZ lines More info.png

Unknown line and security
{{MicroprocessorDevice | device=152 | security=Z}}

unknown security STM32MP152 unknown microprocessor device

4 Code[edit]

STM32MP unknown microprocessor device

<noinclude>

==Usage==
The [[Template:MicroprocessorDevice|MicroprocessorDevice]] template is used '''to indicate for which microprocessor device(s), an article part (chapter, paragraph, table...) is valid'''. Per default (i.e. if this template is not used), any part of an article is valid for all microprocessor devices for which the entire article is valid.

It outputs a "standardized" string that might be used to name an article part.

 Usage: <nowiki>{{</nowiki>MicroprocessorDevice | device={{HighlightParam|<device>}} | security={{HighlightParam|<security>}}}}
:Where:
* {{HighlightParam|<device>}} is the '''mandatory''' identifier (one to three digits) that specify the class, the Series, the lines or the line.The possible values are:
** '''Class''': STM32 Arm<sup>&reg;</sup> Cortex<sup>&reg;</sup> MPUs
** '''1''': STM32MP1 Series
*** '''15''': STM32MP15x lines
**** '''151''': STM32MP151 access line
**** '''153''': STM32MP153 foundation line
**** '''157''': STM32MP157 advanced line
* {{HighlightParam|<security>}} is the '''optional''' identifier (one letter) that specifies the security. The possible values are:
** '''A''': Basic
** '''C''': Secure boot and cryptography

Clicking on the <sup>[[File:More_info.png|15px|link=]]</sup> icon displays '''the article about the microprocessor device lines''' (e.g. [[STM32MP15 microprocessor]]).

==Basic examples==
{| class="st-table"
! style="width: 50%;" | You type !! You get
|-
| STM32 Arm<sup>&reg;</sup> Cortex<sup>&reg;</sup> MPUs<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=Class}}</pre>

|
{{MicroprocessorDevice | device=Class}}
|-
| STM32MP1 Series<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=1}}</pre>

|
{{MicroprocessorDevice | device=1}}
|-
| STM32MP15x lines<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=15}}</pre>

|
{{MicroprocessorDevice | device=15}}
|-
| STM32MP157 line<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=157}}</pre>

|
{{MicroprocessorDevice | device=157}}
|-
| STM32MP15x lines with basic security<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=15 | security=A}}</pre>

|
{{MicroprocessorDevice | device=15 |security=A}}
|-
| STM32MP157 line with secure boot and cryptography<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=157 | security=C}}</pre>

|
{{MicroprocessorDevice | device=157 | security=C}}
|}

==More examples==
{| class="st-table"
! style="width: 50%;" | You type !! You get
|-
| Unspecified microprocessor device<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice}}</pre>

|
{{MicroprocessorDevice}}
|-
| Security ignored for class<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=Class | security=A}}</pre>

|
{{MicroprocessorDevice | device=Class | security=A}}
|-
| Security ignored for Series<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=1 | security=A}}</pre>

|
{{MicroprocessorDevice | device=1 | security=A}}
|-
| Unknown Series<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=0}}</pre>

|
{{MicroprocessorDevice | device=0}}
|-
| Unknown lines<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=11}}</pre>

|
{{MicroprocessorDevice | device=11}}
|-
| Unknown line<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=154}}</pre>

|
{{MicroprocessorDevice | device=154}}
|-
| Unknown line<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=1531}}</pre>

|
{{MicroprocessorDevice | device=1531}}
|-
| Unknown security<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=15 | security=Z}}</pre>

|
{{MicroprocessorDevice | device=15 | security=Z}}
|-
| Unknown line and security<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=152 | security=Z}}</pre>

|
{{MicroprocessorDevice | device=152 | security=Z}}
|}

==Code==
{{UpdateNeededForNewDevice|Add the new microprocessor device in the code below and in the list of the possible values above}}</noinclude>{{#vardefine:info|}}{{#switch:{{{security|none}}}
| A | C |  none =
| #default = {{Highlight|unknown security}}&nbsp;
}}{{#switch:{{{device|}}}
| 1 = {{#vardefine:dev|Class = {{#vardefine:dev|&nbsp;Arm<sup>&reg;</sup> Cortex<sup>&reg;</sup> MPUs}}{{#vardefine:info|<sup>[[File:More_info.png|15px|link=Category:STM32 MPU microprocessor devices]]</sup>}}
| 1 = {{#vardefine:dev|MP{{{device|}}}&nbsp;Series}}
| 15 = {{#vardefine:dev|MP{{{device|}}}x{{{security|}}} lines}}{{#vardefine:info|<sup>[[File:More_info.png|15px|link=STM32MP{{{device}}} microprocessor]]</sup>}} 
| 151 | 153 | 157 = {{#vardefine:dev|{{{MP{{{device|}}}{{{security|}}}&nbsp;line}}{{#vardefine:info|<sup>[[File:More_info.png|15px|link=STM32MP{{#sub:{{{device}}}|0|2}} microprocessor]]</sup>}} 
| #default = {{#vardefine:dev|{{MP{{{device|}}}{{Highlight|&nbsp;unknown microprocessor device}}}}
}}STM32MP{{{device|}}}{{STM32{{#var:dev}} {{#var:info}}
Line 7: Line 7:
 
  Usage: <nowiki>{{</nowiki>MicroprocessorDevice | device={{HighlightParam|<device>}} | security={{HighlightParam|<security>}}}}
 
  Usage: <nowiki>{{</nowiki>MicroprocessorDevice | device={{HighlightParam|<device>}} | security={{HighlightParam|<security>}}}}
 
:Where:
 
:Where:
* {{HighlightParam|<device>}} is the '''mandatory''' identifier (one to three digits) that specify the Series, the lines or the line.The possible values are:
+
* {{HighlightParam|<device>}} is the '''mandatory''' identifier that specify the class, the Series, the lines or the line.The possible values are:
  +
** '''Class''': STM32 Arm<sup>&reg;</sup> Cortex<sup>&reg;</sup> MPUs
 
** '''1''': STM32MP1 Series
 
** '''1''': STM32MP1 Series
 
*** '''15''': STM32MP15x lines
 
*** '''15''': STM32MP15x lines
Line 22: Line 23:
 
{| class="st-table"
 
{| class="st-table"
 
! style="width: 50%;" | You type !! You get
 
! style="width: 50%;" | You type !! You get
  +
|-
  +
| STM32 Arm<sup>&reg;</sup> Cortex<sup>&reg;</sup> MPUs
  +
<pre style="white-space: pre-wrap;">
  +
{{MicroprocessorDevice | device=Class}}
  +
</pre>
  +
|
  +
{{MicroprocessorDevice | device=Class}}
 
|-
 
|-
 
| STM32MP1 Series
 
| STM32MP1 Series
Line 69: Line 77:
 
|
 
|
 
{{MicroprocessorDevice}}
 
{{MicroprocessorDevice}}
  +
|-
  +
| Security ignored for class
  +
<pre style="white-space: pre-wrap;">
  +
{{MicroprocessorDevice | device=Class | security=A}}
  +
</pre>
  +
|
  +
{{MicroprocessorDevice | device=Class | security=A}}
  +
|-
  +
| Security ignored for Series
  +
<pre style="white-space: pre-wrap;">
  +
{{MicroprocessorDevice | device=1 | security=A}}
  +
</pre>
  +
|
  +
{{MicroprocessorDevice | device=1 | security=A}}
 
|-
 
|-
 
| Unknown Series
 
| Unknown Series
Line 119: Line 141:
 
| #default = {{Highlight|unknown security}}&nbsp;
 
| #default = {{Highlight|unknown security}}&nbsp;
 
}}{{#switch:{{{device|}}}
 
}}{{#switch:{{{device|}}}
| 1 = {{#vardefine:dev|&nbsp;Series}}
+
| Class = {{#vardefine:dev|&nbsp;Arm<sup>&reg;</sup> Cortex<sup>&reg;</sup> MPUs}}{{#vardefine:info|<sup>[[File:More_info.png|15px|link=Category:STM32 MPU microprocessor devices]]</sup>}}
| 15 = {{#vardefine:dev|x{{{security|}}} lines}}{{#vardefine:info|<sup>[[File:More_info.png|15px|link=STM32MP{{{device}}} microprocessor]]</sup>}}  
+
| 1 = {{#vardefine:dev|MP{{{device|}}}&nbsp;Series}}
| 151 | 153 | 157 = {{#vardefine:dev|{{{security|}}}&nbsp;line}}{{#vardefine:info|<sup>[[File:More_info.png|15px|link=STM32MP{{#sub:{{{device}}}|0|2}} microprocessor]]</sup>}}  
+
| 15 = {{#vardefine:dev|MP{{{device|}}}x{{{security|}}} lines}}{{#vardefine:info|<sup>[[File:More_info.png|15px|link=STM32MP{{{device}}} microprocessor]]</sup>}}  
| #default = {{#vardefine:dev|{{Highlight|&nbsp;unknown microprocessor device}}}}
+
| 151 | 153 | 157 = {{#vardefine:dev|MP{{{device|}}}{{{security|}}}&nbsp;line}}{{#vardefine:info|<sup>[[File:More_info.png|15px|link=STM32MP{{#sub:{{{device}}}|0|2}} microprocessor]]</sup>}}  
}}STM32MP{{{device|}}}{{#var:dev}} {{#var:info}}
+
| #default = {{#vardefine:dev|MP{{{device|}}}{{Highlight|&nbsp;unknown microprocessor device}}}}
  +
}}STM32{{#var:dev}} {{#var:info}}

Attachments

Discussions