summaryrefslogtreecommitdiff
path: root/ports/cortex_r4
diff options
context:
space:
mode:
authorTiejun Zhou <[email protected]>2023-03-08 08:26:22 +0000
committerTiejun Zhou <[email protected]>2023-03-08 08:26:22 +0000
commit2aa19f3de0b6cf09bb9dca78c8a53fe337b8f0f7 (patch)
tree8ec91a64e0831e3100a6ad9a5dec41d9fd7fc74f /ports/cortex_r4
parent745395d6a2f931c85c4428425db21eb7d03b4324 (diff)
Release 6.2.1 on 08 Mar 2023. Expand to see details.v6.2.1_rel
cee19603d Include tx_user.h conditionally. e40e08007 Update owners d69641273 Update release date and version 394aee52f Add tx_user.h to GNU port assembly files 5cca2ddd0 RISC-V 64 bit port for Microchip e0f2c373c Link Winmm.lib that required by the high-resolution timer. 6af472a68 Update Win32 port with high resolution timer. aea7b556a Add DMB ISH barrier inst in ARMv8-A SMP scheduler 19091a262 Add .section .preamble to m3 m4 m7 module ports ced60e1b7 Add missing parenthesis in ports assembly file 309dc77ca Modules Cortex-A7 IAR new port c752a4063 Modules Cortex-A7 GNU new port dc224b90f Fix race condition in tx_thread_wait_abort and update regression test 6e261f5b7 create threadx cmsis-pack
Diffstat (limited to 'ports/cortex_r4')
-rw-r--r--ports/cortex_r4/ac5/inc/tx_port.h2
-rw-r--r--ports/cortex_r4/ac5/src/tx_thread_context_restore.s2
-rw-r--r--ports/cortex_r4/ac5/src/tx_thread_fiq_context_restore.s2
-rw-r--r--ports/cortex_r4/ac6/inc/tx_port.h2
-rw-r--r--ports/cortex_r4/ac6/src/tx_thread_fiq_context_restore.S2
-rw-r--r--ports/cortex_r4/ghs/inc/tx_port.h2
-rw-r--r--ports/cortex_r4/gnu/inc/tx_port.h2
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_context_restore.S17
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_context_save.S16
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_fiq_context_restore.S18
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_fiq_context_save.S15
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_fiq_nesting_end.S15
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_fiq_nesting_start.S15
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_interrupt_control.S12
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_interrupt_disable.S14
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_interrupt_restore.S14
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_irq_nesting_end.S15
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_irq_nesting_start.S15
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_schedule.S16
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_stack_build.S14
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_system_return.S14
-rw-r--r--ports/cortex_r4/gnu/src/tx_thread_vectored_context_save.S15
-rw-r--r--ports/cortex_r4/gnu/src/tx_timer_interrupt.S15
-rw-r--r--ports/cortex_r4/iar/inc/tx_port.h2
-rw-r--r--ports/cortex_r4/iar/src/tx_thread_context_restore.s2
25 files changed, 74 insertions, 184 deletions
diff --git a/ports/cortex_r4/ac5/inc/tx_port.h b/ports/cortex_r4/ac5/inc/tx_port.h
index 51a8f375..dcd6b609 100644
--- a/ports/cortex_r4/ac5/inc/tx_port.h
+++ b/ports/cortex_r4/ac5/inc/tx_port.h
@@ -327,7 +327,7 @@ void tx_thread_vfp_disable(void);
#ifdef TX_THREAD_INIT
CHAR _tx_version_id[] =
- "Copyright (c) Microsoft Corporation. All rights reserved. * ThreadX Cortex-R4/AC5 Version 6.1.9 *";
+ "Copyright (c) Microsoft Corporation. All rights reserved. * ThreadX Cortex-R4/AC5 Version 6.2.1 *";
#else
extern CHAR _tx_version_id[];
#endif
diff --git a/ports/cortex_r4/ac5/src/tx_thread_context_restore.s b/ports/cortex_r4/ac5/src/tx_thread_context_restore.s
index 5b42a7d3..2071c5d6 100644
--- a/ports/cortex_r4/ac5/src/tx_thread_context_restore.s
+++ b/ports/cortex_r4/ac5/src/tx_thread_context_restore.s
@@ -140,7 +140,7 @@ _tx_thread_context_restore
__tx_thread_not_nested_restore
;
; /* Determine if a thread was interrupted and no preemption is required. */
-; else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr)
+; else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr))
; || (_tx_thread_preempt_disable))
; {
;
diff --git a/ports/cortex_r4/ac5/src/tx_thread_fiq_context_restore.s b/ports/cortex_r4/ac5/src/tx_thread_fiq_context_restore.s
index ed350323..03896acf 100644
--- a/ports/cortex_r4/ac5/src/tx_thread_fiq_context_restore.s
+++ b/ports/cortex_r4/ac5/src/tx_thread_fiq_context_restore.s
@@ -132,7 +132,7 @@ _tx_thread_fiq_context_restore
__tx_thread_fiq_not_nested_restore
;
; /* Determine if a thread was interrupted and no preemption is required. */
-; else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr)
+; else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr))
; || (_tx_thread_preempt_disable))
; {
;
diff --git a/ports/cortex_r4/ac6/inc/tx_port.h b/ports/cortex_r4/ac6/inc/tx_port.h
index 4b8334ce..67a8b1b1 100644
--- a/ports/cortex_r4/ac6/inc/tx_port.h
+++ b/ports/cortex_r4/ac6/inc/tx_port.h
@@ -330,7 +330,7 @@ void tx_thread_vfp_disable(void);
#ifdef TX_THREAD_INIT
CHAR _tx_version_id[] =
- "Copyright (c) Microsoft Corporation. All rights reserved. * ThreadX Cortex-R4/AC6 Version 6.1.9 *";
+ "Copyright (c) Microsoft Corporation. All rights reserved. * ThreadX Cortex-R4/AC6 Version 6.2.1 *";
#else
extern CHAR _tx_version_id[];
#endif
diff --git a/ports/cortex_r4/ac6/src/tx_thread_fiq_context_restore.S b/ports/cortex_r4/ac6/src/tx_thread_fiq_context_restore.S
index c480e844..5d21f062 100644
--- a/ports/cortex_r4/ac6/src/tx_thread_fiq_context_restore.S
+++ b/ports/cortex_r4/ac6/src/tx_thread_fiq_context_restore.S
@@ -139,7 +139,7 @@ _tx_thread_fiq_context_restore:
__tx_thread_fiq_not_nested_restore:
/* Determine if a thread was interrupted and no preemption is required. */
- /* else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr) */
+ /* else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr))*/
/* (_tx_thread_preempt_disable)) */
/* { */
diff --git a/ports/cortex_r4/ghs/inc/tx_port.h b/ports/cortex_r4/ghs/inc/tx_port.h
index ab32b974..9f12a354 100644
--- a/ports/cortex_r4/ghs/inc/tx_port.h
+++ b/ports/cortex_r4/ghs/inc/tx_port.h
@@ -385,7 +385,7 @@ asm void restore_ints(int a)
#ifdef TX_THREAD_INIT
CHAR _tx_version_id[] =
- "Copyright (c) Microsoft Corporation. All rights reserved. * ThreadX Cortex-R4/Green Hills Version 6.1.10 *";
+ "Copyright (c) Microsoft Corporation. All rights reserved. * ThreadX Cortex-R4/Green Hills Version 6.2.1 *";
#else
extern CHAR _tx_version_id[];
#endif
diff --git a/ports/cortex_r4/gnu/inc/tx_port.h b/ports/cortex_r4/gnu/inc/tx_port.h
index c69fa298..be947b26 100644
--- a/ports/cortex_r4/gnu/inc/tx_port.h
+++ b/ports/cortex_r4/gnu/inc/tx_port.h
@@ -312,7 +312,7 @@ unsigned int _tx_thread_interrupt_restore(UINT old_posture);
#ifdef TX_THREAD_INIT
CHAR _tx_version_id[] =
- "Copyright (c) Microsoft Corporation. All rights reserved. * ThreadX Cortex-R4/GNU Version 6.1.9 *";
+ "Copyright (c) Microsoft Corporation. All rights reserved. * ThreadX Cortex-R4/GNU Version 6.2.1 *";
#else
extern CHAR _tx_version_id[];
#endif
diff --git a/ports/cortex_r4/gnu/src/tx_thread_context_restore.S b/ports/cortex_r4/gnu/src/tx_thread_context_restore.S
index 1eb935e4..65bd7965 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_context_restore.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_context_restore.S
@@ -19,17 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@#include "tx_timer.h"
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
.arm
#ifdef TX_ENABLE_FIQ_SUPPORT
@@ -141,7 +134,7 @@ _tx_thread_context_restore:
__tx_thread_not_nested_restore:
@
@ /* Determine if a thread was interrupted and no preemption is required. */
-@ else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr)
+@ else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr))
@ || (_tx_thread_preempt_disable))
@ {
@
diff --git a/ports/cortex_r4/gnu/src/tx_thread_context_save.S b/ports/cortex_r4/gnu/src/tx_thread_context_save.S
index 5b358301..fe020f93 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_context_save.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_context_save.S
@@ -19,18 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@#include "tx_timer.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
.global _tx_thread_system_state
.global _tx_thread_current_ptr
.global _tx_irq_processing_return
diff --git a/ports/cortex_r4/gnu/src/tx_thread_fiq_context_restore.S b/ports/cortex_r4/gnu/src/tx_thread_fiq_context_restore.S
index 74ffa84d..67ddeb4f 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_fiq_context_restore.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_fiq_context_restore.S
@@ -19,18 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@#include "tx_timer.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
SVC_MODE = 0xD3 @ SVC mode
FIQ_MODE = 0xD1 @ FIQ mode
MODE_MASK = 0x1F @ Mode mask
@@ -136,7 +128,7 @@ _tx_thread_fiq_context_restore:
__tx_thread_fiq_not_nested_restore:
@
@ /* Determine if a thread was interrupted and no preemption is required. */
-@ else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr)
+@ else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr))
@ || (_tx_thread_preempt_disable))
@ {
@
diff --git a/ports/cortex_r4/gnu/src/tx_thread_fiq_context_save.S b/ports/cortex_r4/gnu/src/tx_thread_fiq_context_save.S
index c3775b36..07eae7c4 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_fiq_context_save.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_fiq_context_save.S
@@ -19,17 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
.global _tx_thread_system_state
.global _tx_thread_current_ptr
.global __tx_fiq_processing_return
diff --git a/ports/cortex_r4/gnu/src/tx_thread_fiq_nesting_end.S b/ports/cortex_r4/gnu/src/tx_thread_fiq_nesting_end.S
index a4b9b893..8aea2a66 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_fiq_nesting_end.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_fiq_nesting_end.S
@@ -19,17 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
#ifdef TX_ENABLE_FIQ_SUPPORT
DISABLE_INTS = 0xC0 @ Disable IRQ/FIQ interrupts
#else
diff --git a/ports/cortex_r4/gnu/src/tx_thread_fiq_nesting_start.S b/ports/cortex_r4/gnu/src/tx_thread_fiq_nesting_start.S
index da5b3930..b5a48e77 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_fiq_nesting_start.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_fiq_nesting_start.S
@@ -19,17 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
FIQ_DISABLE = 0x40 @ FIQ disable bit
MODE_MASK = 0x1F @ Mode mask
SYS_MODE_BITS = 0x1F @ System mode bits
diff --git a/ports/cortex_r4/gnu/src/tx_thread_interrupt_control.S b/ports/cortex_r4/gnu/src/tx_thread_interrupt_control.S
index 84ca0823..d7d19c27 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_interrupt_control.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_interrupt_control.S
@@ -19,15 +19,9 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h" */
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
INT_MASK = 0x03F
diff --git a/ports/cortex_r4/gnu/src/tx_thread_interrupt_disable.S b/ports/cortex_r4/gnu/src/tx_thread_interrupt_disable.S
index 8b160fe5..17ad5fff 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_interrupt_disable.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_interrupt_disable.S
@@ -19,16 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
@/* Define the 16-bit Thumb mode veneer for _tx_thread_interrupt_disable for
@ applications calling this function from to 16-bit Thumb mode. */
@
diff --git a/ports/cortex_r4/gnu/src/tx_thread_interrupt_restore.S b/ports/cortex_r4/gnu/src/tx_thread_interrupt_restore.S
index d963c5d9..6c788d2e 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_interrupt_restore.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_interrupt_restore.S
@@ -19,16 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
@/* Define the 16-bit Thumb mode veneer for _tx_thread_interrupt_restore for
@ applications calling this function from to 16-bit Thumb mode. */
@
diff --git a/ports/cortex_r4/gnu/src/tx_thread_irq_nesting_end.S b/ports/cortex_r4/gnu/src/tx_thread_irq_nesting_end.S
index ffe7384d..a0f50356 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_irq_nesting_end.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_irq_nesting_end.S
@@ -19,17 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
#ifdef TX_ENABLE_FIQ_SUPPORT
DISABLE_INTS = 0xC0 @ Disable IRQ/FIQ interrupts
#else
diff --git a/ports/cortex_r4/gnu/src/tx_thread_irq_nesting_start.S b/ports/cortex_r4/gnu/src/tx_thread_irq_nesting_start.S
index ff5c4c64..91098b0e 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_irq_nesting_start.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_irq_nesting_start.S
@@ -19,17 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
IRQ_DISABLE = 0x80 @ IRQ disable bit
MODE_MASK = 0x1F @ Mode mask
SYS_MODE_BITS = 0x1F @ System mode bits
diff --git a/ports/cortex_r4/gnu/src/tx_thread_schedule.S b/ports/cortex_r4/gnu/src/tx_thread_schedule.S
index 8691fa87..63f8dfc7 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_schedule.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_schedule.S
@@ -19,18 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@#include "tx_timer.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
.global _tx_thread_execute_ptr
.global _tx_thread_current_ptr
.global _tx_timer_time_slice
diff --git a/ports/cortex_r4/gnu/src/tx_thread_stack_build.S b/ports/cortex_r4/gnu/src/tx_thread_stack_build.S
index 0f36b5f3..25698fe0 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_stack_build.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_stack_build.S
@@ -19,16 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
.arm
SVC_MODE = 0x13 @ SVC mode
diff --git a/ports/cortex_r4/gnu/src/tx_thread_system_return.S b/ports/cortex_r4/gnu/src/tx_thread_system_return.S
index e4d2612a..371ac45f 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_system_return.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_system_return.S
@@ -19,16 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@#include "tx_timer.h"
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
.arm
@
@
diff --git a/ports/cortex_r4/gnu/src/tx_thread_vectored_context_save.S b/ports/cortex_r4/gnu/src/tx_thread_vectored_context_save.S
index 37a1ef93..9b4914fe 100644
--- a/ports/cortex_r4/gnu/src/tx_thread_vectored_context_save.S
+++ b/ports/cortex_r4/gnu/src/tx_thread_vectored_context_save.S
@@ -19,17 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_thread.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
.global _tx_thread_system_state
.global _tx_thread_current_ptr
.global _tx_execution_isr_enter
diff --git a/ports/cortex_r4/gnu/src/tx_timer_interrupt.S b/ports/cortex_r4/gnu/src/tx_timer_interrupt.S
index 53cd6b4e..43ed057d 100644
--- a/ports/cortex_r4/gnu/src/tx_timer_interrupt.S
+++ b/ports/cortex_r4/gnu/src/tx_timer_interrupt.S
@@ -19,17 +19,10 @@
@/** */
@/**************************************************************************/
@/**************************************************************************/
-@
-@#define TX_SOURCE_CODE
-@
-@
-@/* Include necessary system files. */
-@
-@#include "tx_api.h"
-@#include "tx_timer.h"
-@#include "tx_thread.h"
-@
-@
+#ifdef TX_INCLUDE_USER_DEFINE_FILE
+#include "tx_user.h"
+#endif
+
.arm
@
diff --git a/ports/cortex_r4/iar/inc/tx_port.h b/ports/cortex_r4/iar/inc/tx_port.h
index bf627f70..165baee6 100644
--- a/ports/cortex_r4/iar/inc/tx_port.h
+++ b/ports/cortex_r4/iar/inc/tx_port.h
@@ -367,7 +367,7 @@ void tx_thread_vfp_disable(void);
#ifdef TX_THREAD_INIT
CHAR _tx_version_id[] =
- "Copyright (c) Microsoft Corporation. All rights reserved. * ThreadX Cortex-R4/IAR Version 6.1.9 *";
+ "Copyright (c) Microsoft Corporation. All rights reserved. * ThreadX Cortex-R4/IAR Version 6.2.1 *";
#else
#ifdef TX_MISRA_ENABLE
extern CHAR _tx_version_id[100];
diff --git a/ports/cortex_r4/iar/src/tx_thread_context_restore.s b/ports/cortex_r4/iar/src/tx_thread_context_restore.s
index f5dfdbfc..b9fd8dc5 100644
--- a/ports/cortex_r4/iar/src/tx_thread_context_restore.s
+++ b/ports/cortex_r4/iar/src/tx_thread_context_restore.s
@@ -131,7 +131,7 @@ _tx_thread_context_restore
__tx_thread_not_nested_restore
;
; /* Determine if a thread was interrupted and no preemption is required. */
-; else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr)
+; else if (((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr))
; || (_tx_thread_preempt_disable))
; {
;