aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/TIVA/LLD/st_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/TIVA/LLD/st_lld.c')
-rw-r--r--os/hal/ports/TIVA/LLD/st_lld.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/os/hal/ports/TIVA/LLD/st_lld.c b/os/hal/ports/TIVA/LLD/st_lld.c
index 6b47503..1a9fbe6 100644
--- a/os/hal/ports/TIVA/LLD/st_lld.c
+++ b/os/hal/ports/TIVA/LLD/st_lld.c
@@ -248,14 +248,13 @@ void st_lld_init(void)
TIVA_ST_TIM->CTL = 0;
TIVA_ST_TIM->CFG = GPTM_CFG_CFG_SPLIT; /* Timer split mode */
TIVA_ST_TIM->TAMR = (GPTM_TAMR_TAMR_PERIODIC | /* Periodic mode */
- GPTM_TAMR_TACDIR | /* Count up */
+ /*GPTM_TAMR_TACDIR |*/ /* Count up */
GPTM_TAMR_TAMIE | /* Match interrupt enable */
GPTM_TAMR_TASNAPS); /* Snapshot mode */
- //TIVA_ST_TIM->TAPR = (ST_CLOCK_SRC / OSAL_ST_FREQUENCY) - 1;
+ TIVA_ST_TIM->TAPR = (ST_CLOCK_SRC / OSAL_ST_FREQUENCY) - 1;
/* in up mode (used by tickless mode) the prescaler register extends the TAV
* and TAR registers. How to solve this? In down mode it is working better
* because the prescaler really works as prescaler. */
- //TIVA_ST_TIM->CTL = (GPTM_CTL_TAEN | GPTM_CTL_TASTALL);
TIVA_ST_TIM->CTL = (GPTM_CTL_TAEN | /* Timer A enable */
GPTM_CTL_TASTALL); /* Timer A stall when paused */