Disabled PIT

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11331 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
edolomb 2018-01-18 20:29:53 +00:00
parent daa16c1ba6
commit e8c61e3d40
1 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,8 @@ void hal_lld_init(void) {
/* Disabling PMC write protection. */
pmcDisableWP();
PIT->PIT_MR &= ~(PIT_MR_PITEN | PIT_MR_PITIEN);
/* Configures peripherals as not-secure */
MATRIX0->MATRIX_SPSELR[0] = 0xFFFFFFFF;
MATRIX0->MATRIX_SPSELR[1] = 0xFFFFFFFF;
@ -85,8 +87,10 @@ void hal_lld_init(void) {
#if defined(SAMA_DMA_REQUIRED)
dmaInit();
#endif
/* Advanced interrupt controller init */
aicInit();
}
/**