git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4439 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2012-07-08 13:50:34 +00:00
parent 7f96cf83f5
commit 1a1058cda3
1 changed files with 3 additions and 3 deletions

View File

@ -165,11 +165,11 @@
[#if mode == "Input"]
[#assign out = "PIN_MODE_INPUT(" + port_name + "_" + name + ")" /]
[#elseif mode == "Output"]
[#assign out = "PIN_MODE_OUTPUT(" + port_name + "_" + pin_name + ")" /]
[#assign out = "PIN_MODE_OUTPUT(" + port_name + "_" + name + ")" /]
[#elseif mode == "Alternate"]
[#assign out = "PIN_MODE_ALTERNATE(" + port_name + "_" + pin_name + ")" /]
[#assign out = "PIN_MODE_ALTERNATE(" + port_name + "_" + name + ")" /]
[#else]
[#assign out = "PIN_MODE_ANALOG(" + port_name + "_" + pin_name + ")" /]
[#assign out = "PIN_MODE_ANALOG(" + port_name + "_" + name + ")" /]
[/#if]
[#if pinidx == 0]
[#assign line = "#define VAL_" + port_name + "_MODER (" + out /]