summaryrefslogtreecommitdiff
path: root/openpicc/application/pll.c
diff options
context:
space:
mode:
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