git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4439 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
7f96cf83f5
commit
1a1058cda3
|
@ -165,11 +165,11 @@
|
||||||
[#if mode == "Input"]
|
[#if mode == "Input"]
|
||||||
[#assign out = "PIN_MODE_INPUT(" + port_name + "_" + name + ")" /]
|
[#assign out = "PIN_MODE_INPUT(" + port_name + "_" + name + ")" /]
|
||||||
[#elseif mode == "Output"]
|
[#elseif mode == "Output"]
|
||||||
[#assign out = "PIN_MODE_OUTPUT(" + port_name + "_" + pin_name + ")" /]
|
[#assign out = "PIN_MODE_OUTPUT(" + port_name + "_" + name + ")" /]
|
||||||
[#elseif mode == "Alternate"]
|
[#elseif mode == "Alternate"]
|
||||||
[#assign out = "PIN_MODE_ALTERNATE(" + port_name + "_" + pin_name + ")" /]
|
[#assign out = "PIN_MODE_ALTERNATE(" + port_name + "_" + name + ")" /]
|
||||||
[#else]
|
[#else]
|
||||||
[#assign out = "PIN_MODE_ANALOG(" + port_name + "_" + pin_name + ")" /]
|
[#assign out = "PIN_MODE_ANALOG(" + port_name + "_" + name + ")" /]
|
||||||
[/#if]
|
[/#if]
|
||||||
[#if pinidx == 0]
|
[#if pinidx == 0]
|
||||||
[#assign line = "#define VAL_" + port_name + "_MODER (" + out /]
|
[#assign line = "#define VAL_" + port_name + "_MODER (" + out /]
|
||||||
|
|
Loading…
Reference in New Issue