scripts: Use PAD_CFG_GPO if there is no pull
This commit is contained in:
committed by
Jeremy Soller
parent
7fb3203a01
commit
971416091d
@ -71,10 +71,18 @@ do
|
|||||||
|
|
||||||
case "${parts[1]}" in
|
case "${parts[1]}" in
|
||||||
0x??000000 | 0x??000200)
|
0x??000000 | 0x??000200)
|
||||||
echo -e "\tPAD_CFG_TERM_GPO(${parts[0]}, 0, ${term}, ${reset}),"
|
if [ "${term}" = "NONE" ]; then
|
||||||
|
echo -e "\tPAD_CFG_GPO(${parts[0]}, 0, ${reset}),"
|
||||||
|
else
|
||||||
|
echo -e "\tPAD_CFG_TERM_GPO(${parts[0]}, 0, ${term}, ${reset}),"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
0x??000001 | 0x??000201)
|
0x??000001 | 0x??000201)
|
||||||
echo -e "\tPAD_CFG_TERM_GPO(${parts[0]}, 1, ${term}, ${reset}),"
|
if [ "${term}" = "NONE" ]; then
|
||||||
|
echo -e "\tPAD_CFG_GPO(${parts[0]}, 1, ${reset}),"
|
||||||
|
else
|
||||||
|
echo -e "\tPAD_CFG_TERM_GPO(${parts[0]}, 1, ${term}, ${reset}),"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
0x??000100)
|
0x??000100)
|
||||||
echo -e "\tPAD_CFG_GPI(${parts[0]}, ${term}, ${reset}),"
|
echo -e "\tPAD_CFG_GPI(${parts[0]}, ${term}, ${reset}),"
|
||||||
|
Reference in New Issue
Block a user