mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-31 19:33:04 +08:00
fix before_cycle_counter_reconfiguration()
This commit is contained in:
parent
0eb31ba258
commit
124e98b351
Binary file not shown.
@ -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.
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user