fix before_cycle_counter_reconfiguration()

This commit is contained in:
Gabriel Wang 2023-06-12 15:35:40 +01:00
parent 0eb31ba258
commit 124e98b351
5 changed files with 2 additions and 2 deletions

View File

@ -9,12 +9,12 @@
<project>
<PathAndName>.\example.uvprojx</PathAndName>
<NodeIsActive>1</NodeIsActive>
<NodeIsExpanded>1</NodeIsExpanded>
</project>
<project>
<PathAndName>.\gcc_example.uvprojx</PathAndName>
<NodeIsActive>1</NodeIsActive>
</project>
</ProjectWorkspace>

Binary file not shown.

Binary file not shown.

View File

@ -311,7 +311,7 @@ void before_cycle_counter_reconfiguration(void)
user_code_insert_to_systick_handler(); /* manually handle exception */
}
s_lSystemClockCounts = check_systick(); /* get the final cycle counter value */
s_lSystemClockCounts = get_system_ticks(); /* get the final cycle counter value */
SysTick->LOAD = 0UL;
SysTick->VAL = 0UL; /* clear the Current Value Register */