匿名
未登录
登录
百问网嵌入式Linux wiki
搜索
查看“模板:MicroprocessorDevice”的源代码
来自百问网嵌入式Linux wiki
名字空间
模板
讨论
更多
更多
页面选项
Read
查看源代码
历史
←
模板:MicroprocessorDevice
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
<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 that specify the class, the Series, the lines or the line.The possible values are: ** '''Class''': STM32 Arm<sup>®</sup> Cortex<sup>®</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>®</sup> Cortex<sup>®</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}} |- | Check that there's no space before and after the text <pre style="white-space: pre-wrap;"> BEFORE{{MicroprocessorDevice | device=Class}}AFTER<br> BEFORE{{MicroprocessorDevice | device=1}}AFTER<br> BEFORE{{MicroprocessorDevice | device=15}}AFTER<br> BEFORE{{MicroprocessorDevice | device=157}}AFTER<br> BEFORE{{MicroprocessorDevice | device=15 | security=A}}AFTER </pre> | BEFORE{{MicroprocessorDevice | device=Class}}AFTER<br> BEFORE{{MicroprocessorDevice | device=1}}AFTER<br> BEFORE{{MicroprocessorDevice | device=15}}AFTER<br> BEFORE{{MicroprocessorDevice | device=157}}AFTER<br> BEFORE{{MicroprocessorDevice | device=15 | security=A}}AFTER |} ==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}} }}{{#switch:{{{device|}}} | Class = {{#vardefine:dev| Arm<sup>®</sup> Cortex<sup>®</sup> MPUs}}{{#vardefine:info| <sup>[[File:More_info.png|15px|link=Category:STM32 MPU microprocessor devices]]</sup>}} | 1 = {{#vardefine:dev|MP{{{device|}}} 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|}}} line}}{{#vardefine:info| <sup>[[File:More_info.png|15px|link=STM32MP{{#sub:{{{device}}}|0|2}} microprocessor]]</sup>}} | #default = {{#vardefine:dev|MP{{{device|}}}{{Highlight| unknown microprocessor device}}}} }}STM32{{#var:dev}}{{#var:info}}
该页面使用的模板:
模板:Highlight
(
查看源代码
)
模板:HighlightParam
(
查看源代码
)
模板:MicroprocessorDevice
(
查看源代码
)
模板:UpdateNeededForNewDevice
(
查看源代码
)
返回至
模板:MicroprocessorDevice
。
导航
导航
WIKI首页
官方店铺
资料下载
交流社区
所有页面
所有产品
MPU-Linux开发板
MCU-单片机开发板
Linux开发系列视频
单片机开发系列视频
所有模块配件
Wiki工具
Wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志