aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsamd/internal.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-01-18 18:52:44 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-01-28 20:02:16 -0500
commitc5fc264a075b5458cb68ffff5bced2a9d5ba8385 (patch)
treed6a94c88d47f7eeecc3211f13771b27af31d9f87 /src/atsamd/internal.h
parent8f763d80b7c46d467050a5c7696749a23beaf0b0 (diff)
downloadkutter-c5fc264a075b5458cb68ffff5bced2a9d5ba8385.tar.gz
kutter-c5fc264a075b5458cb68ffff5bced2a9d5ba8385.tar.xz
kutter-c5fc264a075b5458cb68ffff5bced2a9d5ba8385.zip
atsamd: Add a get_pclock_frequency() helper function
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/atsamd/internal.h')
-rw-r--r--src/atsamd/internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/atsamd/internal.h b/src/atsamd/internal.h
index 5606a4ce..2674acc7 100644
--- a/src/atsamd/internal.h
+++ b/src/atsamd/internal.h
@@ -9,6 +9,7 @@
#define GPIO2BIT(PIN) (1<<((PIN) % 32))
void enable_pclock(uint32_t pclk_id, uint32_t pm_id);
+uint32_t get_pclock_frequency(uint32_t pclk_id);
void gpio_peripheral(uint32_t gpio, char ptype, int32_t pull_up);
#endif // internal.h