aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsam/internal.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-11-20 13:47:17 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-11-20 13:52:16 -0500
commitbb08dc7ae91488a6e9e1e88de28bd43be9fa5651 (patch)
tree0f8255ecf3f5d4bd4a9b66db302795071533ba64 /src/atsam/internal.h
parent92ca1119868abbd859c8f7a3f88143cf53561eb3 (diff)
downloadkutter-bb08dc7ae91488a6e9e1e88de28bd43be9fa5651.tar.gz
kutter-bb08dc7ae91488a6e9e1e88de28bd43be9fa5651.tar.xz
kutter-bb08dc7ae91488a6e9e1e88de28bd43be9fa5651.zip
atsam: Add get_pclock_frequency() helper function
Add get_pclock_frequency() and use it to calculate peripheral clocks. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/atsam/internal.h')
-rw-r--r--src/atsam/internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/atsam/internal.h b/src/atsam/internal.h
index fec265c4..798b4a04 100644
--- a/src/atsam/internal.h
+++ b/src/atsam/internal.h
@@ -20,5 +20,6 @@
void gpio_peripheral(uint32_t gpio, char ptype, int32_t pull_up);
int is_enabled_pclock(uint32_t id);
void enable_pclock(uint32_t id);
+uint32_t get_pclock_frequency(uint32_t id);
#endif // internal.h