diff options
Diffstat (limited to 'openpicc/application/pll.c')
-rw-r--r-- | openpicc/application/pll.c | 5 |
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); |