aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-01-18 20:29:53 +0000
committeredolomb <none@example.com>2018-01-18 20:29:53 +0000
commite8c61e3d4070ae94d623b0c9f9f02aedbae94727 (patch)
treeb10f320526a2262b1f1b6c5e502f35abfe92c72f
parentdaa16c1ba6a54fe1b86640a9e44d06c83ef583ea (diff)
downloadChibiOS-e8c61e3d4070ae94d623b0c9f9f02aedbae94727.tar.gz
ChibiOS-e8c61e3d4070ae94d623b0c9f9f02aedbae94727.tar.bz2
ChibiOS-e8c61e3d4070ae94d623b0c9f9f02aedbae94727.zip
Disabled PIT
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11331 35acf78f-673a-0410-8e92-d51de3d6d3f4
-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();
+
}
/**