mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-31 19:33:04 +08:00
fixed ThreadX support issue
This commit is contained in:
parent
2a566561dd
commit
e133cc4419
@ -16,6 +16,9 @@
|
||||
<repository type="git">https://github.com/GorgonMeducer/perf_counter.git</repository>
|
||||
|
||||
<releases>
|
||||
<release date="2021-12-30" version="1.7.5" url="https://raw.githubusercontent.com/GorgonMeducer/perf_counter/CMSIS-Pack/cmsis-pack/GorgonMeducer.perf_counter.1.7.5.pack">
|
||||
- Fixed issue found in ThreadX patch.
|
||||
</release>
|
||||
<release date="2021-12-29" version="1.7.4" url="https://raw.githubusercontent.com/GorgonMeducer/perf_counter/CMSIS-Pack/cmsis-pack/GorgonMeducer.perf_counter.1.7.4.pack">
|
||||
- Add support for ThreadX
|
||||
- Other minor update
|
||||
@ -171,7 +174,7 @@
|
||||
-->
|
||||
|
||||
<components>
|
||||
<bundle Cbundle="Performance Counter" Cclass="Utilities" Cversion="1.7.4">
|
||||
<bundle Cbundle="Performance Counter" Cclass="Utilities" Cversion="1.7.5">
|
||||
<description>A dedicated performance counter for Cortex-M systick.</description>
|
||||
<doc></doc>
|
||||
<component Cgroup="perf_counter" Csub="Core" Cvariant="Library" isDefaultVariant="true">
|
||||
|
Binary file not shown.
BIN
cmsis-pack/GorgonMeducer.perf_counter.1.7.5.pack
Normal file
BIN
cmsis-pack/GorgonMeducer.perf_counter.1.7.5.pack
Normal file
Binary file not shown.
@ -16,6 +16,9 @@
|
||||
<repository type="git">https://github.com/GorgonMeducer/perf_counter.git</repository>
|
||||
|
||||
<releases>
|
||||
<release date="2021-12-30" version="1.7.5" url="https://raw.githubusercontent.com/GorgonMeducer/perf_counter/CMSIS-Pack/cmsis-pack/GorgonMeducer.perf_counter.1.7.5.pack">
|
||||
- Fixed issue found in ThreadX patch.
|
||||
</release>
|
||||
<release date="2021-12-29" version="1.7.4" url="https://raw.githubusercontent.com/GorgonMeducer/perf_counter/CMSIS-Pack/cmsis-pack/GorgonMeducer.perf_counter.1.7.4.pack">
|
||||
- Add support for ThreadX
|
||||
- Other minor update
|
||||
@ -171,7 +174,7 @@
|
||||
-->
|
||||
|
||||
<components>
|
||||
<bundle Cbundle="Performance Counter" Cclass="Utilities" Cversion="1.7.4">
|
||||
<bundle Cbundle="Performance Counter" Cclass="Utilities" Cversion="1.7.5">
|
||||
<description>A dedicated performance counter for Cortex-M systick.</description>
|
||||
<doc></doc>
|
||||
<component Cgroup="perf_counter" Csub="Core" Cvariant="Library" isDefaultVariant="true">
|
||||
|
@ -75,7 +75,7 @@ void _tx_execution_thread_enter (void)
|
||||
TX_THREAD * ptThread = NULL;
|
||||
TX_THREAD_GET_CURRENT(ptThread);
|
||||
|
||||
__on_context_switch_out(ptThread->tx_thread_stack_start);
|
||||
__on_context_switch_in(ptThread->tx_thread_stack_start);
|
||||
|
||||
#if defined(TX_EXECUTION_PROFILE_ENABLE)
|
||||
extern void ORIG_FUNC(_tx_execution_thread_enter)(void);
|
||||
@ -93,9 +93,9 @@ void _tx_execution_thread_exit(void)
|
||||
TX_THREAD * ptThread = NULL;
|
||||
TX_THREAD_GET_CURRENT(ptThread);
|
||||
|
||||
|
||||
__on_context_switch_in(ptThread->tx_thread_stack_start);
|
||||
|
||||
if (NULL != ptThread) {
|
||||
__on_context_switch_out(ptThread->tx_thread_stack_start);
|
||||
}
|
||||
#if defined(TX_EXECUTION_PROFILE_ENABLE)
|
||||
extern void ORIG_FUNC(_tx_execution_thread_exit)(void);
|
||||
|
||||
@ -103,6 +103,20 @@ void _tx_execution_thread_exit(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !defined(TX_EXECUTION_PROFILE_ENABLE)
|
||||
void _tx_execution_isr_exit(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void _tx_execution_isr_enter(void)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
task_cycle_info_t * get_rtos_task_cycle_info(void)
|
||||
{
|
||||
|
@ -75,7 +75,7 @@ void _tx_execution_thread_enter (void)
|
||||
TX_THREAD * ptThread = NULL;
|
||||
TX_THREAD_GET_CURRENT(ptThread);
|
||||
|
||||
__on_context_switch_out(ptThread->tx_thread_stack_start);
|
||||
__on_context_switch_in(ptThread->tx_thread_stack_start);
|
||||
|
||||
#if defined(TX_EXECUTION_PROFILE_ENABLE)
|
||||
extern void ORIG_FUNC(_tx_execution_thread_enter)(void);
|
||||
@ -93,9 +93,9 @@ void _tx_execution_thread_exit(void)
|
||||
TX_THREAD * ptThread = NULL;
|
||||
TX_THREAD_GET_CURRENT(ptThread);
|
||||
|
||||
|
||||
__on_context_switch_in(ptThread->tx_thread_stack_start);
|
||||
|
||||
if (NULL != ptThread) {
|
||||
__on_context_switch_out(ptThread->tx_thread_stack_start);
|
||||
}
|
||||
#if defined(TX_EXECUTION_PROFILE_ENABLE)
|
||||
extern void ORIG_FUNC(_tx_execution_thread_exit)(void);
|
||||
|
||||
@ -103,6 +103,20 @@ void _tx_execution_thread_exit(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !defined(TX_EXECUTION_PROFILE_ENABLE)
|
||||
void _tx_execution_isr_exit(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void _tx_execution_isr_enter(void)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
task_cycle_info_t * get_rtos_task_cycle_info(void)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user