Skip to content

Commit

Permalink
send out some comments with the shell and also use hex not dec values
Browse files Browse the repository at this point in the history
  • Loading branch information
sameerparekh committed Nov 27, 2012
1 parent c0c6184 commit 58d589d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion template/shell.tmpl
Expand Up @@ -11,6 +11,13 @@ mux|=0x10 if pi[:pull]>0
mux|=0x08 if pi[:pen] ==0 mux|=0x08 if pi[:pen] ==0
mux|=pi[:mux_mode] & 0x7 mux|=pi[:mux_mode] & 0x7
%> %>
echo <%=mux%> > /sys/kernel/debug/omap_mux/<%=pi[:modes].find{|m| m[1]==0}[0]%> # <%=pi[:name]%>
# slew_rate: <%=pi[:slew_rate]%>
# rx: <%=pi[:rx]%>
# dir: <%=pi[:dir]%>
# pull: <%=pi[:pull]%>
# pen: <%=pi[:pen]%>
# mode: <%=pi[:mux_mode]%>
echo <%=mux.to_s(16)%> > /sys/kernel/debug/omap_mux/<%=pi[:modes].find{|m| m[1]==0}[0]%>
<%end;end%> <%end;end%>


0 comments on commit 58d589d

Please sign in to comment.