pru: Move peripheral init from pru0 to pru1

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2017-07-12 20:02:23 -04:00
parent c105ff1c51
commit 3ac60b31a2
3 changed files with 37 additions and 45 deletions

View File

@@ -89,6 +89,8 @@ DECL_SHUTDOWN(timer_shutdown);
void
timer_init(void)
{
CT_IEP.TMR_CMP_CFG = 0x01 << 1;
CT_IEP.TMR_GLB_CFG = 0x11;
CT_IEP.TMR_CNT = 0;
timer_shutdown();
}