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

@@ -43,6 +43,13 @@ enable_pclock(uint32_t pclk_id, uint32_t pm_id)
(&PM->APBAMASK.reg)[pm_port] |= pm_bit;
}
// Return the frequency of the given peripheral clock
uint32_t
get_pclock_frequency(uint32_t pclk_id)
{
return FREQ_MAIN;
}
void
SystemInit(void)
{