Refs #1261. Improved timer reset.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@847 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2021-05-07 09:47:33 +00:00
parent 35676b739a
commit d09bd5559a
7 changed files with 21 additions and 7 deletions

View File

@ -70,8 +70,10 @@ void TimerInit(void)
****************************************************************************************/ ****************************************************************************************/
void TimerReset(void) void TimerReset(void)
{ {
/* Set the systick's status and control register back into the default reset value. */ /* Set the systick's registers back into the default reset value. */
S32_SysTick->CSR = 0; S32_SysTick->CSR = 0;
S32_SysTick->RVR = 0;
S32_SysTick->CVR = 0;
} /* end of TimerReset */ } /* end of TimerReset */

View File

@ -99,8 +99,10 @@ void TimerInit(void)
****************************************************************************************/ ****************************************************************************************/
void TimerReset(void) void TimerReset(void)
{ {
/* set the systick's status and control register back into the default reset value */ /* set the systick's registers back into the default reset value */
SYSTICK->CTRL = 0; SYSTICK->CTRL = 0;
SYSTICK->LOAD = 0;
SYSTICK->VAL = 0;
} /* end of TimerReset */ } /* end of TimerReset */

View File

@ -99,8 +99,10 @@ void TimerInit(void)
****************************************************************************************/ ****************************************************************************************/
void TimerReset(void) void TimerReset(void)
{ {
/* set the systick's status and control register back into the default reset value */ /* set the systick's registers back into the default reset value */
SYSTICK->CTRL = 0; SYSTICK->CTRL = 0;
SYSTICK->LOAD = 0;
SYSTICK->VAL = 0;
} /* end of TimerReset */ } /* end of TimerReset */

View File

@ -99,8 +99,10 @@ void TimerInit(void)
****************************************************************************************/ ****************************************************************************************/
void TimerReset(void) void TimerReset(void)
{ {
/* set the systick's status and control register back into the default reset value */ /* set the systick's registers back into the default reset value */
SYSTICK->CTRL = 0; SYSTICK->CTRL = 0;
SYSTICK->LOAD = 0;
SYSTICK->VAL = 0;
} /* end of TimerReset */ } /* end of TimerReset */

View File

@ -70,8 +70,10 @@ void TimerInit(void)
****************************************************************************************/ ****************************************************************************************/
void TimerReset(void) void TimerReset(void)
{ {
/* Set the systick's status and control register back into the default reset value. */ /* Set the systick's registers back into the default reset value. */
S32_SysTick->CSR = 0; S32_SysTick->CSR = 0;
S32_SysTick->RVR = 0;
S32_SysTick->CVR = 0;
} /* end of TimerReset */ } /* end of TimerReset */

View File

@ -99,8 +99,10 @@ void TimerInit(void)
****************************************************************************************/ ****************************************************************************************/
void TimerReset(void) void TimerReset(void)
{ {
/* set the systick's status and control register back into the default reset value */ /* set the systick's registers back into the default reset value */
SYSTICK->CTRL = 0; SYSTICK->CTRL = 0;
SYSTICK->LOAD = 0;
SYSTICK->VAL = 0;
} /* end of TimerReset */ } /* end of TimerReset */

View File

@ -99,8 +99,10 @@ void TimerInit(void)
****************************************************************************************/ ****************************************************************************************/
void TimerReset(void) void TimerReset(void)
{ {
/* set the systick's status and control register back into the default reset value */ /* set the systick's registers back into the default reset value */
SYSTICK->CTRL = 0; SYSTICK->CTRL = 0;
SYSTICK->LOAD = 0;
SYSTICK->VAL = 0;
} /* end of TimerReset */ } /* end of TimerReset */