diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-11-20 13:47:17 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-11-20 13:52:16 -0500 |
commit | bb08dc7ae91488a6e9e1e88de28bd43be9fa5651 (patch) | |
tree | 0f8255ecf3f5d4bd4a9b66db302795071533ba64 /src/atsam/internal.h | |
parent | 92ca1119868abbd859c8f7a3f88143cf53561eb3 (diff) | |
download | kutter-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.h | 1 |
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 |