aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports')
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/hal_lld.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/hal_lld.c b/os/hal/ports/SAMA/SAMA5D2x/hal_lld.c
index f598bf856..afa9062a5 100644
--- a/os/hal/ports/SAMA/SAMA5D2x/hal_lld.c
+++ b/os/hal/ports/SAMA/SAMA5D2x/hal_lld.c
@@ -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();
+
}
/**