summaryrefslogtreecommitdiff
path: root/openpicc/application/pll.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-02-11 11:38:02 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-02-11 11:38:02 +0000
commitf0c0bc64efe337d28955bf0f0cc05871606e9ea6 (patch)
tree8ee8e667eed6bc47d700453b0b904c2608f4a94b /openpicc/application/pll.c
parent50a134ace94344d1ff083778f1a91fe0851731e4 (diff)
Add command to toggle PLL inhibition
git-svn-id: https://svn.openpcd.org:2342/trunk@410 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/pll.c')
-rw-r--r--openpicc/application/pll.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openpicc/application/pll.c b/openpicc/application/pll.c
index 62236ae..c40718a 100644
--- a/openpicc/application/pll.c
+++ b/openpicc/application/pll.c
@@ -33,6 +33,11 @@ void pll_inhibit(int inhibit)
AT91F_PIO_ClearOutput(AT91C_BASE_PIOA, OPENPICC_PIO_PLL_INHIBIT);
}
+int pll_is_inhibited(void)
+{
+ return AT91F_PIO_IsInputSet(AT91C_BASE_PIOA, OPENPICC_PIO_PLL_INHIBIT);
+}
+
int pll_is_locked(void)
{
return AT91F_PIO_IsInputSet(AT91C_BASE_PIOA, OPENPICC_PIO_PLL_LOCK);
personal git repositories of Harald Welte. Your mileage may vary