diff options
author | isiora <none@example.com> | 2017-12-05 21:23:38 +0000 |
---|---|---|
committer | isiora <none@example.com> | 2017-12-05 21:23:38 +0000 |
commit | ed7cdc70182a43b85db8dd7bee8df8f8b25f75bc (patch) | |
tree | 94c696ab12e138189c9e957e5477a9846245c145 /os/hal/ports/SAMA | |
parent | 345779a579448b3a799d5a8c8978530cef1a807f (diff) | |
download | ChibiOS-ed7cdc70182a43b85db8dd7bee8df8f8b25f75bc.tar.gz ChibiOS-ed7cdc70182a43b85db8dd7bee8df8f8b25f75bc.tar.bz2 ChibiOS-ed7cdc70182a43b85db8dd7bee8df8f8b25f75bc.zip |
Fixed PIT PICNT counter reset in st_lld_init.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11120 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/SAMA')
-rw-r--r-- | os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c b/os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c index 67f54b3cc..21e7e8df2 100644 --- a/os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c +++ b/os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c @@ -92,6 +92,7 @@ void st_lld_init(void) { PIT->PIT_MR = PIT_MR_PIV((SAMA_PIT / OSAL_ST_FREQUENCY) - 1);
PIT->PIT_MR |= PIT_MR_PITEN | PIT_MR_PITIEN;
+ (void) PIT->PIT_PIVR; /* reset PIT PICNT counter */
/* IRQ enabled.*/
aicSetSourcePriority(ID_PIT, SAMA_ST_IRQ_PRIORITY);
|