atsamd: Add a get_pclock_frequency() helper function

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-01-18 18:52:44 -05:00
parent 8f763d80b7
commit c5fc264a07
5 changed files with 13 additions and 7 deletions

View File

@@ -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