apply 6.0.2 patch

This commit is contained in:
Scott Larson
2020-08-14 09:10:48 -07:00
parent 6a018a4cfd
commit 40a402b827
227 changed files with 2232 additions and 3212 deletions

View File

@@ -26,7 +26,7 @@
/* APPLICATION INTERFACE DEFINITION RELEASE */ /* APPLICATION INTERFACE DEFINITION RELEASE */
/* */ /* */
/* tx_api.h PORTABLE C */ /* tx_api.h PORTABLE C */
/* 6.0.1 */ /* 6.0.2 */
/* AUTHOR */ /* AUTHOR */
/* */ /* */
/* William E. Lamie, Microsoft Corporation */ /* William E. Lamie, Microsoft Corporation */
@@ -47,6 +47,9 @@
/* 06-30-2020 William E. Lamie Modified comment(s), and */ /* 06-30-2020 William E. Lamie Modified comment(s), and */
/* updated product constants, */ /* updated product constants, */
/* resulting in version 6.0.1 */ /* resulting in version 6.0.1 */
/* 08-14-2020 Scott Larson Modified comment(s), and */
/* updated product constants, */
/* resulting in version 6.0.2 */
/* */ /* */
/**************************************************************************/ /**************************************************************************/
@@ -79,7 +82,7 @@ extern "C" {
#define AZURE_RTOS_THREADX #define AZURE_RTOS_THREADX
#define THREADX_MAJOR_VERSION 6 #define THREADX_MAJOR_VERSION 6
#define THREADX_MINOR_VERSION 0 #define THREADX_MINOR_VERSION 0
#define THREADX_PATCH_VERSION 1 #define THREADX_PATCH_VERSION 2
/* Define the following symbol for backward compatibility */ /* Define the following symbol for backward compatibility */
#define EL_PRODUCT_THREADX #define EL_PRODUCT_THREADX

View File

@@ -26,7 +26,7 @@
/* APPLICATION INTERFACE DEFINITION RELEASE */ /* APPLICATION INTERFACE DEFINITION RELEASE */
/* */ /* */
/* tx_api.h PORTABLE SMP */ /* tx_api.h PORTABLE SMP */
/* 6.0.1 */ /* 6.0.2 */
/* AUTHOR */ /* AUTHOR */
/* */ /* */
/* William E. Lamie, Microsoft Corporation */ /* William E. Lamie, Microsoft Corporation */
@@ -44,6 +44,9 @@
/* DATE NAME DESCRIPTION */ /* DATE NAME DESCRIPTION */
/* */ /* */
/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ /* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
/* 08-14-2020 William E. Lamie Modified comment(s), and */
/* updated product constants, */
/* resulting in version 6.0.2 */
/* */ /* */
/**************************************************************************/ /**************************************************************************/
@@ -80,9 +83,13 @@ extern "C" {
/* Define the major/minor version information that can be used by the application /* Define the major/minor version information that can be used by the application
and the ThreadX source as well. */ and the ThreadX source as well. */
#define AZURE_RTOS_THREADX
#define THREADX_MAJOR_VERSION 6
#define THREADX_MINOR_VERSION 0
#define THREADX_PATCH_VERSION 2
/* Define the following symbol for backward compatibility */
#define EL_PRODUCT_THREADX #define EL_PRODUCT_THREADX
#define THREADX_MAJOR_VERSION 5
#define THREADX_MINOR_VERSION 9
/* API input parameters and general constants. */ /* API input parameters and general constants. */

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_initialize.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IMPORT _tx_thread_system_stack_ptr IMPORT _tx_thread_system_stack_ptr
IMPORT _tx_initialize_unused_memory IMPORT _tx_initialize_unused_memory
@@ -102,7 +92,7 @@ Reset_Handler
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_initialize_low_level Cortex-M0/AC5 */ ;/* _tx_initialize_low_level Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -136,6 +126,9 @@ Reset_Handler
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_initialize_low_level(VOID) ;VOID _tx_initialize_low_level(VOID)
@@ -280,5 +273,3 @@ __tx_DBGHandler
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -133,6 +133,11 @@ For generic code revision information, please refer to the readme_threadx_generi
file, which is included in your distribution. The following details the revision file, which is included in your distribution. The following details the revision
information associated with this specific port of ThreadX: information associated with this specific port of ThreadX:
08-14-2020 ThreadX update of Cortex-M0/AC5 port. The following files were
changed/added for port specific version 6.0.2:
*.s Modified comments and whitespace.
06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M0 using AC5 tools. 06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M0 using AC5 tools.

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IMPORT _tx_execution_isr_exit IMPORT _tx_execution_isr_exit
@@ -42,13 +32,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_restore Cortex-M0/AC5 */ ;/* _tx_thread_context_restore Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function restores the interrupt context if it is processing a */ ;/* This function restores the interrupt context if it is processing a */
;/* nested interrupt. If not, it returns to the interrupt thread if no */ ;/* nested interrupt. If not, it returns to the interrupt thread if no */
;/* preemption is necessary. Otherwise, if preemption is necessary or */ ;/* preemption is necessary. Otherwise, if preemption is necessary or */
@@ -75,6 +67,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_restore(VOID) ;VOID _tx_thread_context_restore(VOID)
@@ -98,4 +93,3 @@ _tx_thread_context_restore
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IMPORT _tx_execution_isr_enter IMPORT _tx_execution_isr_enter
@@ -43,13 +33,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_save Cortex-M0/AC5 */ ;/* _tx_thread_context_save Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function saves the context of an executing thread in the */ ;/* This function saves the context of an executing thread in the */
;/* beginning of interrupt processing. The function also ensures that */ ;/* beginning of interrupt processing. The function also ensures that */
;/* the system stack is used upon return to the calling ISR. */ ;/* the system stack is used upon return to the calling ISR. */
@@ -75,6 +67,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_save(VOID) ;VOID _tx_thread_context_save(VOID)
@@ -98,4 +93,3 @@ _tx_thread_context_save
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -35,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_control Cortex-M0/AC5 */ ;/* _tx_thread_interrupt_control Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -66,6 +58,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_control(UINT new_posture) ;UINT _tx_thread_interrupt_control(UINT new_posture)
@@ -84,4 +79,3 @@ _tx_thread_interrupt_control
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -35,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_disable Cortex-M0/AC5 */ ;/* _tx_thread_interrupt_disable Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -66,6 +58,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_disable(UINT new_posture) ;UINT _tx_thread_interrupt_disable(UINT new_posture)

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -35,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_restore Cortex-M0/AC5 */ ;/* _tx_thread_interrupt_restore Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -66,6 +58,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_interrupt_restore(UINT new_posture) ;VOID _tx_thread_interrupt_restore(UINT new_posture)

View File

@@ -20,15 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
; ;
IMPORT _tx_thread_current_ptr IMPORT _tx_thread_current_ptr
IMPORT _tx_thread_execute_ptr IMPORT _tx_thread_execute_ptr
@@ -48,7 +39,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_schedule Cortex-M0/AC5 */ ;/* _tx_thread_schedule Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -82,6 +73,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_schedule(VOID) ;VOID _tx_thread_schedule(VOID)
@@ -183,7 +177,6 @@ __tx_ts_handler
MOVS r5, #0 ; Build clear value MOVS r5, #0 ; Build clear value
STR r5, [r4] ; Clear time-slice STR r5, [r4] ; Clear time-slice
; ;
;
; /* Executing thread is now completely preserved!!! */ ; /* Executing thread is now completely preserved!!! */
; ;
__tx_ts_new __tx_ts_new
@@ -275,4 +268,3 @@ __tx_ts_ready
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -20,15 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -36,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_stack_build Cortex-M0/AC5 */ ;/* _tx_thread_stack_build Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -69,6 +60,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) ;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
@@ -143,4 +137,3 @@ _tx_thread_stack_build
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -37,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_system_return Cortex-M0/AC5 */ ;/* _tx_thread_system_return Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -70,6 +60,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_system_return(VOID) ;VOID _tx_thread_system_return(VOID)
@@ -94,4 +87,3 @@ _isr_context
NOP NOP
;} ;}
END END

View File

@@ -20,17 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_timer.h"
;#include "tx_thread.h"
;
;
;Define Assembly language external references...
; ;
IMPORT _tx_timer_time_slice IMPORT _tx_timer_time_slice
IMPORT _tx_timer_system_clock IMPORT _tx_timer_system_clock
@@ -53,7 +42,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_timer_interrupt Cortex-M0/AC5 */ ;/* _tx_timer_interrupt Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -88,6 +77,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_timer_interrupt(VOID) ;VOID _tx_timer_interrupt(VOID)
@@ -271,4 +263,3 @@ __tx_timer_nothing_expired
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_initialize.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_stack_ptr .global _tx_thread_system_stack_ptr
.global _tx_initialize_unused_memory .global _tx_initialize_unused_memory
@@ -48,8 +38,8 @@ SYSTICK_CYCLES = ((SYSTEM_CLOCK / 100) -1)
@/* */ @/* */
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_initialize_low_level Cortex-M0/GNU */ @/* _tx_initialize_low_level Cortex-M0/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -83,6 +73,10 @@ SYSTICK_CYCLES = ((SYSTEM_CLOCK / 100) -1)
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), and */
@/* commented out code for */
@/* enabling DWT, */
@/* resulting in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_initialize_low_level(VOID) @VOID _tx_initialize_low_level(VOID)
@@ -103,12 +97,12 @@ _tx_initialize_low_level:
STR r1, [r0] @ Setup first unused memory pointer STR r1, [r0] @ Setup first unused memory pointer
@ @
@ /* Enable the cycle count register. */ @ /* Enable the cycle count register. */
@ @ /* Not all M0 have DWT, uncomment if you have a DWT and want to use it. */
LDR r0, =0xE0001000 @ Build address of DWT register @ LDR r0, =0xE0001000 @ Build address of DWT register
LDR r1, [r0] @ Pickup the current value @ LDR r1, [r0] @ Pickup the current value
MOVS r2, #1 @ MOVS r2, #1
ORRS r1, r1, r2 @ Set the CYCCNTENA bit @ ORRS r1, r1, r2 @ Set the CYCCNTENA bit
STR r1, [r0] @ Enable the cycle count register @ STR r1, [r0] @ Enable the cycle count register
@ @
@ /* Setup Vector Table Offset Register. */ @ /* Setup Vector Table Offset Register. */
@ @
@@ -152,7 +146,6 @@ _tx_initialize_low_level:
ADD r0, r0, r2 @ ADD r0, r0, r2 @
STR r1, [r0] @ Setup System Handlers 12-15 Priority Registers STR r1, [r0] @ Setup System Handlers 12-15 Priority Registers
@ Note: PnSV must be lowest priority, which is 0xFF @ Note: PnSV must be lowest priority, which is 0xFF
@ @
@ /* Return to caller. */ @ /* Return to caller. */
@ @

View File

@@ -148,6 +148,12 @@ For generic code revision information, please refer to the readme_threadx_generi
file, which is included in your distribution. The following details the revision file, which is included in your distribution. The following details the revision
information associated with this specific port of ThreadX: information associated with this specific port of ThreadX:
08-14-2020 ThreadX update of Cortex-M0/AC6 port. The following files were
changed/added for port specific version 6.0.2:
tx_initialize_low_level.S Comment out DWT code.
*.S Modified comments and whitespace.
06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M0 using AC6 tools. 06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M0 using AC6 tools.

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_state .global _tx_thread_system_state
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
@@ -48,13 +38,15 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_context_restore Cortex-M0/AC6 */ @/* _tx_thread_context_restore Cortex-M0/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@/* */ @/* */
@/* DESCRIPTION */ @/* DESCRIPTION */
@/* */ @/* */
@/* This function is only needed for legacy applications and it should */
@/* not be called in any new development on a Cortex-M. */
@/* This function restores the interrupt context if it is processing a */ @/* This function restores the interrupt context if it is processing a */
@/* nested interrupt. If not, it returns to the interrupt thread if no */ @/* nested interrupt. If not, it returns to the interrupt thread if no */
@/* preemption is necessary. Otherwise, if preemption is necessary or */ @/* preemption is necessary. Otherwise, if preemption is necessary or */
@@ -81,6 +73,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_context_restore(VOID) @VOID _tx_thread_context_restore(VOID)
@@ -92,4 +87,3 @@ _tx_thread_context_restore:
@ /* Not needed for this port - just return! */ @ /* Not needed for this port - just return! */
BX lr BX lr
@} @}

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_state .global _tx_thread_system_state
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
@@ -43,13 +33,15 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_context_save Cortex-M0/AC6 */ @/* _tx_thread_context_save Cortex-M0/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@/* */ @/* */
@/* DESCRIPTION */ @/* DESCRIPTION */
@/* */ @/* */
@/* This function is only needed for legacy applications and it should */
@/* not be called in any new development on a Cortex-M. */
@/* This function saves the context of an executing thread in the */ @/* This function saves the context of an executing thread in the */
@/* beginning of interrupt processing. The function also ensures that */ @/* beginning of interrupt processing. The function also ensures that */
@/* the system stack is used upon return to the calling ISR. */ @/* the system stack is used upon return to the calling ISR. */
@@ -75,6 +67,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_context_save(VOID) @VOID _tx_thread_context_save(VOID)
@@ -86,4 +81,3 @@ _tx_thread_context_save:
@ /* Not needed for this port - just return! */ @ /* Not needed for this port - just return! */
BX lr BX lr
@} @}

View File

@@ -20,14 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@/* #define TX_SOURCE_CODE */
@/* Include necessary system files. */
@/* #include "tx_api.h"
#include "tx_thread.h" */
.text 32 .text 32
.align 4 .align 4
@@ -38,7 +30,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_interrupt_control Cortex-M0/AC6 */ @/* _tx_thread_interrupt_control Cortex-M0/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -69,6 +61,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* UINT _tx_thread_interrupt_control(UINT new_posture) @/* UINT _tx_thread_interrupt_control(UINT new_posture)
@@ -89,6 +84,3 @@ _tx_thread_interrupt_control:
BX lr @ Return to caller BX lr @ Return to caller
@/* } */ @/* } */

View File

@@ -20,14 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@/* #define TX_SOURCE_CODE */
@/* Include necessary system files. */
@/* #include "tx_api.h"
#include "tx_thread.h" */
.text 32 .text 32
.align 4 .align 4
@@ -38,7 +30,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_interrupt_disable Cortex-M0/AC6 */ @/* _tx_thread_interrupt_disable Cortex-M0/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -68,6 +60,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* UINT _tx_thread_interrupt_disable(VOID) @/* UINT _tx_thread_interrupt_disable(VOID)
@@ -83,6 +78,3 @@ _tx_thread_interrupt_disable:
BX lr BX lr
@/* } */ @/* } */

View File

@@ -20,14 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@/* #define TX_SOURCE_CODE */
@/* Include necessary system files. */
@/* #include "tx_api.h"
#include "tx_thread.h" */
.text 32 .text 32
.align 4 .align 4
@@ -38,7 +30,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_interrupt_restore Cortex-M0/AC6 */ @/* _tx_thread_interrupt_restore Cortex-M0/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -69,6 +61,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* VOID _tx_thread_interrupt_restore(UINT old_posture) @/* VOID _tx_thread_interrupt_restore(UINT old_posture)
@@ -81,6 +76,3 @@ _tx_thread_interrupt_restore:
BX lr BX lr
@/* } */ @/* } */

View File

@@ -20,15 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@ @
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
.global _tx_thread_execute_ptr .global _tx_thread_execute_ptr
@@ -44,7 +35,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_schedule Cortex-M0/AC6 */ @/* _tx_thread_schedule Cortex-M0/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -78,6 +69,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_schedule(VOID) @VOID _tx_thread_schedule(VOID)
@@ -273,4 +267,3 @@ __tx_ts_ready:
@ @
CPSIE i @ Enable interrupts CPSIE i @ Enable interrupts
B __tx_ts_restore @ Restore the thread B __tx_ts_restore @ Restore the thread

View File

@@ -20,15 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@
@ @
.text .text
.align 4 .align 4
@@ -38,7 +29,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_stack_build Cortex-M0/AC6 */ @/* _tx_thread_stack_build Cortex-M0/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -71,6 +62,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) @VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
@@ -143,5 +137,3 @@ _tx_thread_stack_build:
@ control block @ control block
BX lr @ Return to caller BX lr @ Return to caller
@} @}

View File

@@ -11,7 +11,7 @@
@ @
@ @
@/**************************************************************************/ @/**************************************************************************/
@@/**************************************************************************/ @/**************************************************************************/
@/** */ @/** */
@/** ThreadX Component */ @/** ThreadX Component */
@/** */ @/** */
@@ -19,15 +19,6 @@
@/** */ @/** */
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@
@/* #define TX_SOURCE_CODE */
@
@
@/* Include necessary system files. */
@
@/* #include "tx_api.h"
@ #include "tx_thread.h"
@ #include "tx_timer.h" */
.text .text
@@ -38,7 +29,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_system_return Cortex-M0/AC6 */ @/* _tx_thread_system_return Cortex-M0/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -71,6 +62,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* VOID _tx_thread_system_return(VOID) @/* VOID _tx_thread_system_return(VOID)
@@ -94,4 +88,3 @@ _tx_thread_system_return:
_isr_context: _isr_context:
BX lr @ Return to caller BX lr @ Return to caller
@/* } */ @/* } */

View File

@@ -20,17 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_timer.h"
@#include "tx_thread.h"
@
@
@Define Assembly language external references...
@ @
.global _tx_timer_time_slice .global _tx_timer_time_slice
.global _tx_timer_system_clock .global _tx_timer_system_clock
@@ -51,7 +40,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_timer_interrupt Cortex-M0/AC6 */ @/* _tx_timer_interrupt Cortex-M0/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -86,6 +75,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_timer_interrupt(VOID) @VOID _tx_timer_interrupt(VOID)
@@ -267,5 +259,3 @@ __tx_timer_nothing_expired:
BX lr @ Return to caller BX lr @ Return to caller
@ @
@} @}

View File

@@ -51,7 +51,7 @@ SYSTICK_CYCLES = ((SYSTEM_CLOCK / 100) -1)
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_initialize_low_level Cortex-M0/GNU */ @/* _tx_initialize_low_level Cortex-M0/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -85,6 +85,10 @@ SYSTICK_CYCLES = ((SYSTEM_CLOCK / 100) -1)
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), and */
@/* commented out code for */
@/* enabling DWT, */
@/* resulting in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_initialize_low_level(VOID) @VOID _tx_initialize_low_level(VOID)
@@ -105,12 +109,12 @@ _tx_initialize_low_level:
STR r1, [r0] @ Setup first unused memory pointer STR r1, [r0] @ Setup first unused memory pointer
@ @
@ /* Enable the cycle count register. */ @ /* Enable the cycle count register. */
@ @ /* Not all M0 have DWT, uncomment if you have a DWT and want to use it. */
LDR r0, =0xE0001000 @ Build address of DWT register @ LDR r0, =0xE0001000 @ Build address of DWT register
LDR r1, [r0] @ Pickup the current value @ LDR r1, [r0] @ Pickup the current value
MOVS r2, #1 @ MOVS r2, #1
ORRS r1, r1, r2 @ Set the CYCCNTENA bit @ ORRS r1, r1, r2 @ Set the CYCCNTENA bit
STR r1, [r0] @ Enable the cycle count register @ STR r1, [r0] @ Enable the cycle count register
@ @
@ /* Setup Vector Table Offset Register. */ @ /* Setup Vector Table Offset Register. */
@ @

View File

@@ -145,6 +145,12 @@ For generic code revision information, please refer to the readme_threadx_generi
file, which is included in your distribution. The following details the revision file, which is included in your distribution. The following details the revision
information associated with this specific port of ThreadX: information associated with this specific port of ThreadX:
08-14-2020 ThreadX update of Cortex-M0/GNU port. The following files were
changed/added for port specific version 6.0.2:
tx_initialize_low_level.S Comment out DWT code.
*.S Modified comments and whitespace.
05/19/2020 Initial ThreadX 6.0 version for Cortex-M0 using GNU tools. 05/19/2020 Initial ThreadX 6.0 version for Cortex-M0 using GNU tools.

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_state .global _tx_thread_system_state
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
@@ -49,13 +39,15 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_context_restore Cortex-M0/GNU */ @/* _tx_thread_context_restore Cortex-M0/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@/* */ @/* */
@/* DESCRIPTION */ @/* DESCRIPTION */
@/* */ @/* */
@/* This function is only needed for legacy applications and it should */
@/* not be called in any new development on a Cortex-M. */
@/* This function restores the interrupt context if it is processing a */ @/* This function restores the interrupt context if it is processing a */
@/* nested interrupt. If not, it returns to the interrupt thread if no */ @/* nested interrupt. If not, it returns to the interrupt thread if no */
@/* preemption is necessary. Otherwise, if preemption is necessary or */ @/* preemption is necessary. Otherwise, if preemption is necessary or */
@@ -82,6 +74,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_context_restore(VOID) @VOID _tx_thread_context_restore(VOID)
@@ -93,4 +88,3 @@ _tx_thread_context_restore:
@ /* Not needed for this port - just return! */ @ /* Not needed for this port - just return! */
BX lr BX lr
@} @}

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_state .global _tx_thread_system_state
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
@@ -44,13 +34,15 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_context_save Cortex-M0/GNU */ @/* _tx_thread_context_save Cortex-M0/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@/* */ @/* */
@/* DESCRIPTION */ @/* DESCRIPTION */
@/* */ @/* */
@/* This function is only needed for legacy applications and it should */
@/* not be called in any new development on a Cortex-M. */
@/* This function saves the context of an executing thread in the */ @/* This function saves the context of an executing thread in the */
@/* beginning of interrupt processing. The function also ensures that */ @/* beginning of interrupt processing. The function also ensures that */
@/* the system stack is used upon return to the calling ISR. */ @/* the system stack is used upon return to the calling ISR. */
@@ -76,6 +68,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_context_save(VOID) @VOID _tx_thread_context_save(VOID)
@@ -87,4 +82,3 @@ _tx_thread_context_save:
@ /* Not needed for this port - just return! */ @ /* Not needed for this port - just return! */
BX lr BX lr
@} @}

View File

@@ -20,14 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@/* #define TX_SOURCE_CODE */
@/* Include necessary system files. */
@/* #include "tx_api.h"
#include "tx_thread.h" */
.text 32 .text 32
.align 4 .align 4
@@ -38,7 +30,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_interrupt_control Cortex-M0/GNU */ @/* _tx_thread_interrupt_control Cortex-M0/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -69,6 +61,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* UINT _tx_thread_interrupt_control(UINT new_posture) @/* UINT _tx_thread_interrupt_control(UINT new_posture)
@@ -89,6 +84,3 @@ _tx_thread_interrupt_control:
BX lr @ Return to caller BX lr @ Return to caller
@/* } */ @/* } */

View File

@@ -20,14 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@/* #define TX_SOURCE_CODE */
@/* Include necessary system files. */
@/* #include "tx_api.h"
#include "tx_thread.h" */
.text 32 .text 32
.align 4 .align 4
@@ -38,7 +30,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_interrupt_disable Cortex-M0/GNU */ @/* _tx_thread_interrupt_disable Cortex-M0/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -68,6 +60,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* UINT _tx_thread_interrupt_disable(VOID) @/* UINT _tx_thread_interrupt_disable(VOID)
@@ -83,6 +78,3 @@ _tx_thread_interrupt_disable:
BX lr BX lr
@/* } */ @/* } */

View File

@@ -20,14 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@/* #define TX_SOURCE_CODE */
@/* Include necessary system files. */
@/* #include "tx_api.h"
#include "tx_thread.h" */
.text 32 .text 32
.align 4 .align 4
@@ -38,7 +30,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_interrupt_restore Cortex-M0/GNU */ @/* _tx_thread_interrupt_restore Cortex-M0/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -69,6 +61,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* VOID _tx_thread_interrupt_restore(UINT old_posture) @/* VOID _tx_thread_interrupt_restore(UINT old_posture)
@@ -81,6 +76,3 @@ _tx_thread_interrupt_restore:
BX lr BX lr
@/* } */ @/* } */

View File

@@ -20,15 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@ @
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
.global _tx_thread_execute_ptr .global _tx_thread_execute_ptr
@@ -46,7 +37,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_schedule Cortex-M0/GNU */ @/* _tx_thread_schedule Cortex-M0/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -80,6 +71,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_schedule(VOID) @VOID _tx_thread_schedule(VOID)
@@ -275,4 +269,3 @@ __tx_ts_ready:
@ @
CPSIE i @ Enable interrupts CPSIE i @ Enable interrupts
B __tx_ts_restore @ Restore the thread B __tx_ts_restore @ Restore the thread

View File

@@ -20,15 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@
@ @
.text .text
.align 4 .align 4
@@ -38,7 +29,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_stack_build Cortex-M0/GNU */ @/* _tx_thread_stack_build Cortex-M0/GNU */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -76,6 +67,9 @@
@/* needed. Removed references */ @/* needed. Removed references */
@/* to stack frame, resulting */ @/* to stack frame, resulting */
@/* in version 6.0.1 */ @/* in version 6.0.1 */
@/* 08-14-2020 William E. Lamie Modified Comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) @VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
@@ -148,5 +142,3 @@ _tx_thread_stack_build:
@ control block @ control block
BX lr @ Return to caller BX lr @ Return to caller
@} @}

View File

@@ -11,7 +11,7 @@
@ @
@ @
@/**************************************************************************/ @/**************************************************************************/
@@/**************************************************************************/ @/**************************************************************************/
@/** */ @/** */
@/** ThreadX Component */ @/** ThreadX Component */
@/** */ @/** */
@@ -19,15 +19,6 @@
@/** */ @/** */
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@
@/* #define TX_SOURCE_CODE */
@
@
@/* Include necessary system files. */
@
@/* #include "tx_api.h"
@ #include "tx_thread.h"
@ #include "tx_timer.h" */
.text 32 .text 32
@@ -38,7 +29,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_system_return Cortex-M0/GNU */ @/* _tx_thread_system_return Cortex-M0/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -71,6 +62,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* VOID _tx_thread_system_return(VOID) @/* VOID _tx_thread_system_return(VOID)
@@ -94,4 +88,3 @@ _tx_thread_system_return:
_isr_context: _isr_context:
BX lr @ Return to caller BX lr @ Return to caller
@/* } */ @/* } */

View File

@@ -20,17 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_timer.h"
@#include "tx_thread.h"
@
@
@Define Assembly language external references...
@ @
.global _tx_timer_time_slice .global _tx_timer_time_slice
.global _tx_timer_system_clock .global _tx_timer_system_clock
@@ -51,7 +40,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_timer_interrupt Cortex-M0/GNU */ @/* _tx_timer_interrupt Cortex-M0/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -86,6 +75,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_timer_interrupt(VOID) @VOID _tx_timer_interrupt(VOID)
@@ -267,5 +259,3 @@ __tx_timer_nothing_expired:
BX lr @ Return to caller BX lr @ Return to caller
@ @
@} @}

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_initialize.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
EXTERN _tx_thread_system_stack_ptr EXTERN _tx_thread_system_stack_ptr
EXTERN _tx_initialize_unused_memory EXTERN _tx_initialize_unused_memory
@@ -56,7 +46,7 @@ __tx_free_memory_start
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_initialize_low_level Cortex-M0/IAR */ ;/* _tx_initialize_low_level Cortex-M0/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -90,6 +80,10 @@ __tx_free_memory_start
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), and */
;/* commented out code for */
;/* enabling DWT, */
;/* resulting in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_initialize_low_level(VOID) ;VOID _tx_initialize_low_level(VOID)
@@ -110,12 +104,12 @@ _tx_initialize_low_level:
STR r0, [r2, #0] ; Save first free memory address STR r0, [r2, #0] ; Save first free memory address
; ;
; /* Enable the cycle count register. */ ; /* Enable the cycle count register. */
; ; /* Not all M0 have DWT, uncomment if you have a DWT and want to use it. */
LDR r0, =0xE0001000 ; Build address of DWT register ; LDR r0, =0xE0001000 ; Build address of DWT register
LDR r1, [r0] ; Pickup the current value ; LDR r1, [r0] ; Pickup the current value
MOVS r2, #1 ; MOVS r2, #1
ORRS r1, r1, r2 ; Set the CYCCNTENA bit ; ORRS r1, r1, r2 ; Set the CYCCNTENA bit
STR r1, [r0] ; Enable the cycle count register ; STR r1, [r0] ; Enable the cycle count register
; ;
; /* Setup Vector Table Offset Register. */ ; /* Setup Vector Table Offset Register. */
; ;

View File

@@ -148,6 +148,12 @@ For generic code revision information, please refer to the readme_threadx_generi
file, which is included in your distribution. The following details the revision file, which is included in your distribution. The following details the revision
information associated with this specific port of ThreadX: information associated with this specific port of ThreadX:
08-14-2020 ThreadX update of Cortex-M0/IAR port. The following files were
changed/added for port specific version 6.0.2:
tx_initialize_low_level.s Comment out DWT code.
*.s Modified comments and whitespace.
06/30/2020 Initial ThreadX version 6.0.1 for Cortex-M0 using IAR's ARM tools. 06/30/2020 Initial ThreadX version 6.0.1 for Cortex-M0 using IAR's ARM tools.

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
EXTERN _tx_thread_system_state EXTERN _tx_thread_system_state
EXTERN _tx_thread_current_ptr EXTERN _tx_thread_current_ptr
@@ -48,13 +38,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_restore Cortex-M0/IAR */ ;/* _tx_thread_context_restore Cortex-M0/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function restores the interrupt context if it is processing a */ ;/* This function restores the interrupt context if it is processing a */
;/* nested interrupt. If not, it returns to the interrupt thread if no */ ;/* nested interrupt. If not, it returns to the interrupt thread if no */
;/* preemption is necessary. Otherwise, if preemption is necessary or */ ;/* preemption is necessary. Otherwise, if preemption is necessary or */
@@ -81,6 +73,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_restore(VOID) ;VOID _tx_thread_context_restore(VOID)
@@ -103,4 +98,3 @@ _tx_thread_context_restore:
; ;
;} ;}
END END

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
EXTERN _tx_thread_system_state EXTERN _tx_thread_system_state
EXTERN _tx_thread_current_ptr EXTERN _tx_thread_current_ptr
@@ -43,13 +33,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_save Cortex-M0/IAR */ ;/* _tx_thread_context_save Cortex-M0/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function saves the context of an executing thread in the */ ;/* This function saves the context of an executing thread in the */
;/* beginning of interrupt processing. The function also ensures that */ ;/* beginning of interrupt processing. The function also ensures that */
;/* the system stack is used upon return to the calling ISR. */ ;/* the system stack is used upon return to the calling ISR. */
@@ -75,6 +67,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_save(VOID) ;VOID _tx_thread_context_save(VOID)

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
SECTION `.text`:CODE:NOROOT(2) SECTION `.text`:CODE:NOROOT(2)
THUMB THUMB
@@ -36,7 +28,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_control Cortex-M0/IAR */ ;/* _tx_thread_interrupt_control Cortex-M0/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -67,6 +59,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_control(UINT new_posture) ;UINT _tx_thread_interrupt_control(UINT new_posture)
@@ -83,4 +78,3 @@ _tx_thread_interrupt_control:
; ;
;} ;}
END END

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
SECTION `.text`:CODE:NOROOT(2) SECTION `.text`:CODE:NOROOT(2)
THUMB THUMB
@@ -36,7 +28,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_restore Cortex-M0/IAR */ ;/* _tx_thread_interrupt_restore Cortex-M0/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -67,6 +59,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_disable(UINT new_posture) ;UINT _tx_thread_interrupt_disable(UINT new_posture)

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
SECTION `.text`:CODE:NOROOT(2) SECTION `.text`:CODE:NOROOT(2)
THUMB THUMB
@@ -36,7 +28,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_restore Cortex-M0/IAR */ ;/* _tx_thread_interrupt_restore Cortex-M0/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -67,6 +59,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_interrupt_restore(UINT new_posture) ;VOID _tx_thread_interrupt_restore(UINT new_posture)

View File

@@ -20,15 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
; ;
EXTERN _tx_thread_current_ptr EXTERN _tx_thread_current_ptr
EXTERN _tx_thread_execute_ptr EXTERN _tx_thread_execute_ptr
@@ -46,7 +37,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_schedule Cortex-M0/IAR */ ;/* _tx_thread_schedule Cortex-M0/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -80,6 +71,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_schedule(VOID) ;VOID _tx_thread_schedule(VOID)
@@ -269,4 +263,3 @@ __tx_ts_ready:
B __tx_ts_restore ; Restore the thread B __tx_ts_restore ; Restore the thread
END END

View File

@@ -20,15 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
SECTION `.text`:CODE:NOROOT(2) SECTION `.text`:CODE:NOROOT(2)
THUMB THUMB
@@ -37,7 +28,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_stack_build Cortex-M0/IAR */ ;/* _tx_thread_stack_build Cortex-M0/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -70,6 +61,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) ;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
@@ -142,4 +136,3 @@ _tx_thread_stack_build:
BX lr ; Return to caller BX lr ; Return to caller
;} ;}
END END

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
;
; ;
SECTION `.text`:CODE:NOROOT(2) SECTION `.text`:CODE:NOROOT(2)
THUMB THUMB
@@ -38,7 +28,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_system_return Cortex-M0/IAR */ ;/* _tx_thread_system_return Cortex-M0/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -71,6 +61,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_system_return(VOID) ;VOID _tx_thread_system_return(VOID)
@@ -95,4 +88,3 @@ _isr_context:
BX lr ; Return to caller BX lr ; Return to caller
;} ;}
END END

View File

@@ -20,17 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_timer.h"
;#include "tx_thread.h"
;
;
;Define Assembly language external references...
; ;
EXTERN _tx_timer_time_slice EXTERN _tx_timer_time_slice
EXTERN _tx_timer_system_clock EXTERN _tx_timer_system_clock
@@ -53,7 +42,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_timer_interrupt Cortex-M0/IAR */ ;/* _tx_timer_interrupt Cortex-M0/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -88,6 +77,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_timer_interrupt(VOID) ;VOID _tx_timer_interrupt(VOID)
@@ -268,4 +260,3 @@ __tx_timer_nothing_expired:
; ;
;} ;}
END END

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_initialize.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IMPORT _tx_thread_system_stack_ptr IMPORT _tx_thread_system_stack_ptr
IMPORT _tx_initialize_unused_memory IMPORT _tx_initialize_unused_memory
@@ -102,7 +92,7 @@ Reset_Handler
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_initialize_low_level Cortex-M0/AC5 */ ;/* _tx_initialize_low_level Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -136,6 +126,9 @@ Reset_Handler
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_initialize_low_level(VOID) ;VOID _tx_initialize_low_level(VOID)
@@ -281,4 +274,3 @@ __tx_DBGHandler
LTORG LTORG
END END

View File

@@ -139,7 +139,12 @@ For generic code revision information, please refer to the readme_threadx_generi
file, which is included in your distribution. The following details the revision file, which is included in your distribution. The following details the revision
information associated with this specific port of ThreadX: information associated with this specific port of ThreadX:
06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M0 using AC5 tools. 08-14-2020 ThreadX update of Cortex-M0/Keil port. The following files were
changed/added for port specific version 6.0.2:
*.s Modified comments and whitespace.
06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M0 using Keil tools.
Copyright(c) 1996-2020 Microsoft Corporation Copyright(c) 1996-2020 Microsoft Corporation

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IMPORT _tx_execution_isr_exit IMPORT _tx_execution_isr_exit
@@ -42,13 +32,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_restore Cortex-M0/AC5 */ ;/* _tx_thread_context_restore Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function restores the interrupt context if it is processing a */ ;/* This function restores the interrupt context if it is processing a */
;/* nested interrupt. If not, it returns to the interrupt thread if no */ ;/* nested interrupt. If not, it returns to the interrupt thread if no */
;/* preemption is necessary. Otherwise, if preemption is necessary or */ ;/* preemption is necessary. Otherwise, if preemption is necessary or */
@@ -75,6 +67,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_restore(VOID) ;VOID _tx_thread_context_restore(VOID)

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IMPORT _tx_execution_isr_enter IMPORT _tx_execution_isr_enter
@@ -43,13 +33,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_save Cortex-M0/AC5 */ ;/* _tx_thread_context_save Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function saves the context of an executing thread in the */ ;/* This function saves the context of an executing thread in the */
;/* beginning of interrupt processing. The function also ensures that */ ;/* beginning of interrupt processing. The function also ensures that */
;/* the system stack is used upon return to the calling ISR. */ ;/* the system stack is used upon return to the calling ISR. */
@@ -75,6 +67,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_save(VOID) ;VOID _tx_thread_context_save(VOID)

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -35,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_control Cortex-M0/AC5 */ ;/* _tx_thread_interrupt_control Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -66,6 +58,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_control(UINT new_posture) ;UINT _tx_thread_interrupt_control(UINT new_posture)

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -35,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_disable Cortex-M0/AC5 */ ;/* _tx_thread_interrupt_disable Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -66,6 +58,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_disable(UINT new_posture) ;UINT _tx_thread_interrupt_disable(UINT new_posture)

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -35,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_restore Cortex-M0/AC5 */ ;/* _tx_thread_interrupt_restore Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -66,6 +58,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_interrupt_restore(UINT new_posture) ;VOID _tx_thread_interrupt_restore(UINT new_posture)

View File

@@ -20,15 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
; ;
IMPORT _tx_thread_current_ptr IMPORT _tx_thread_current_ptr
IMPORT _tx_thread_execute_ptr IMPORT _tx_thread_execute_ptr
@@ -48,7 +39,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_schedule Cortex-M0/AC5 */ ;/* _tx_thread_schedule Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -82,6 +73,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_schedule(VOID) ;VOID _tx_thread_schedule(VOID)
@@ -275,4 +269,3 @@ __tx_ts_ready
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -20,15 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -36,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_stack_build Cortex-M0/AC5 */ ;/* _tx_thread_stack_build Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -69,6 +60,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) ;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
@@ -143,4 +137,3 @@ _tx_thread_stack_build
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -37,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_system_return Cortex-M0/AC5 */ ;/* _tx_thread_system_return Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -70,6 +60,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_system_return(VOID) ;VOID _tx_thread_system_return(VOID)

View File

@@ -20,17 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_timer.h"
;#include "tx_thread.h"
;
;
;Define Assembly language external references...
; ;
IMPORT _tx_timer_time_slice IMPORT _tx_timer_time_slice
IMPORT _tx_timer_system_clock IMPORT _tx_timer_system_clock
@@ -53,7 +42,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_timer_interrupt Cortex-M0/AC5 */ ;/* _tx_timer_interrupt Cortex-M0/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -88,6 +77,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_timer_interrupt(VOID) ;VOID _tx_timer_interrupt(VOID)
@@ -271,4 +263,3 @@ __tx_timer_nothing_expired
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -2,6 +2,11 @@
;/* */ ;/* */
;/* Copyright (c) Microsoft Corporation. All rights reserved. */ ;/* Copyright (c) Microsoft Corporation. All rights reserved. */
;/* */ ;/* */
;/* This software is licensed under the Microsoft Software License */
;/* Terms for Microsoft Azure RTOS. Full text of the license can be */
;/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
;/* and in the root directory of this software. */
;/* */
;/**************************************************************************/ ;/**************************************************************************/
; ;
; ;
@@ -15,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_initialize.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IMPORT _tx_thread_system_stack_ptr IMPORT _tx_thread_system_stack_ptr
IMPORT _tx_initialize_unused_memory IMPORT _tx_initialize_unused_memory
@@ -99,7 +94,7 @@ Reset_Handler
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_initialize_low_level Cortex-M3/AC5 */ ;/* _tx_initialize_low_level Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -133,6 +128,9 @@ Reset_Handler
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_initialize_low_level(VOID) ;VOID _tx_initialize_low_level(VOID)

View File

@@ -135,6 +135,11 @@ For generic code revision information, please refer to the readme_threadx_generi
file, which is included in your distribution. The following details the revision file, which is included in your distribution. The following details the revision
information associated with this specific port of ThreadX: information associated with this specific port of ThreadX:
08-14-2020 ThreadX update of Cortex-M3/AC5 port. The following files were
changed/added for port specific version 6.0.2:
*.s Modified comments and whitespace.
06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M3 using AC5 tools. 06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M3 using AC5 tools.

View File

@@ -2,6 +2,11 @@
;/* */ ;/* */
;/* Copyright (c) Microsoft Corporation. All rights reserved. */ ;/* Copyright (c) Microsoft Corporation. All rights reserved. */
;/* */ ;/* */
;/* This software is licensed under the Microsoft Software License */
;/* Terms for Microsoft Azure RTOS. Full text of the license can be */
;/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
;/* and in the root directory of this software. */
;/* */
;/**************************************************************************/ ;/**************************************************************************/
; ;
; ;
@@ -15,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IMPORT _tx_execution_isr_exit IMPORT _tx_execution_isr_exit
@@ -38,13 +33,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_restore Cortex-M3/AC5 */ ;/* _tx_thread_context_restore Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function restores the interrupt context if it is processing a */ ;/* This function restores the interrupt context if it is processing a */
;/* nested interrupt. If not, it returns to the interrupt thread if no */ ;/* nested interrupt. If not, it returns to the interrupt thread if no */
;/* preemption is necessary. Otherwise, if preemption is necessary or */ ;/* preemption is necessary. Otherwise, if preemption is necessary or */
@@ -71,6 +68,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_restore(VOID) ;VOID _tx_thread_context_restore(VOID)

View File

@@ -2,6 +2,11 @@
;/* */ ;/* */
;/* Copyright (c) Microsoft Corporation. All rights reserved. */ ;/* Copyright (c) Microsoft Corporation. All rights reserved. */
;/* */ ;/* */
;/* This software is licensed under the Microsoft Software License */
;/* Terms for Microsoft Azure RTOS. Full text of the license can be */
;/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
;/* and in the root directory of this software. */
;/* */
;/**************************************************************************/ ;/**************************************************************************/
; ;
; ;
@@ -15,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IMPORT _tx_execution_isr_enter IMPORT _tx_execution_isr_enter
@@ -38,13 +33,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_save Cortex-M3/AC5 */ ;/* _tx_thread_context_save Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function saves the context of an executing thread in the */ ;/* This function saves the context of an executing thread in the */
;/* beginning of interrupt processing. The function also ensures that */ ;/* beginning of interrupt processing. The function also ensures that */
;/* the system stack is used upon return to the calling ISR. */ ;/* the system stack is used upon return to the calling ISR. */
@@ -70,6 +67,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_save(VOID) ;VOID _tx_thread_context_save(VOID)

View File

@@ -2,6 +2,11 @@
;/* */ ;/* */
;/* Copyright (c) Microsoft Corporation. All rights reserved. */ ;/* Copyright (c) Microsoft Corporation. All rights reserved. */
;/* */ ;/* */
;/* This software is licensed under the Microsoft Software License */
;/* Terms for Microsoft Azure RTOS. Full text of the license can be */
;/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
;/* and in the root directory of this software. */
;/* */
;/**************************************************************************/ ;/**************************************************************************/
; ;
; ;
@@ -15,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -30,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_control Cortex-M3/AC5 */ ;/* _tx_thread_interrupt_control Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -61,6 +58,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_control(UINT new_posture) ;UINT _tx_thread_interrupt_control(UINT new_posture)
@@ -77,4 +77,3 @@ _tx_thread_interrupt_control
; ;
;} ;}
END END

View File

@@ -2,6 +2,11 @@
;/* */ ;/* */
;/* Copyright (c) Microsoft Corporation. All rights reserved. */ ;/* Copyright (c) Microsoft Corporation. All rights reserved. */
;/* */ ;/* */
;/* This software is licensed under the Microsoft Software License */
;/* Terms for Microsoft Azure RTOS. Full text of the license can be */
;/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
;/* and in the root directory of this software. */
;/* */
;/**************************************************************************/ ;/**************************************************************************/
; ;
; ;
@@ -15,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -30,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_disable Cortex-M3/AC5 */ ;/* _tx_thread_interrupt_disable Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -61,6 +58,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_disable(UINT new_posture) ;UINT _tx_thread_interrupt_disable(UINT new_posture)

View File

@@ -2,6 +2,11 @@
;/* */ ;/* */
;/* Copyright (c) Microsoft Corporation. All rights reserved. */ ;/* Copyright (c) Microsoft Corporation. All rights reserved. */
;/* */ ;/* */
;/* This software is licensed under the Microsoft Software License */
;/* Terms for Microsoft Azure RTOS. Full text of the license can be */
;/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
;/* and in the root directory of this software. */
;/* */
;/**************************************************************************/ ;/**************************************************************************/
; ;
; ;
@@ -15,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -30,7 +27,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_restore Cortex-M3/AC5 */ ;/* _tx_thread_interrupt_restore Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -61,6 +58,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_disable(UINT new_posture) ;UINT _tx_thread_interrupt_disable(UINT new_posture)

View File

@@ -2,6 +2,11 @@
;/* */ ;/* */
;/* Copyright (c) Microsoft Corporation. All rights reserved. */ ;/* Copyright (c) Microsoft Corporation. All rights reserved. */
;/* */ ;/* */
;/* This software is licensed under the Microsoft Software License */
;/* Terms for Microsoft Azure RTOS. Full text of the license can be */
;/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
;/* and in the root directory of this software. */
;/* */
;/**************************************************************************/ ;/**************************************************************************/
; ;
; ;
@@ -15,15 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
; ;
IMPORT _tx_thread_current_ptr IMPORT _tx_thread_current_ptr
IMPORT _tx_thread_execute_ptr IMPORT _tx_thread_execute_ptr
@@ -43,7 +39,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_schedule Cortex-M3/AC5 */ ;/* _tx_thread_schedule Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -77,6 +73,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_schedule(VOID) ;VOID _tx_thread_schedule(VOID)
@@ -245,4 +244,3 @@ __tx_ts_ready
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -31,7 +31,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_stack_build Cortex-M3/AC5 */ ;/* _tx_thread_stack_build Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -64,6 +64,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) ;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
@@ -135,4 +138,3 @@ _tx_thread_stack_build
BX lr ; Return to caller BX lr ; Return to caller
;} ;}
END END

View File

@@ -15,16 +15,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
;/**************************************************************************/ ;/**************************************************************************/
@@ -32,7 +22,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_system_return Cortex-M3/AC5 */ ;/* _tx_thread_system_return Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -65,6 +55,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_system_return(VOID) ;VOID _tx_thread_system_return(VOID)
@@ -88,4 +81,3 @@ _isr_context
BX lr ; Return to caller BX lr ; Return to caller
;} ;}
END END

View File

@@ -15,17 +15,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_timer.h"
;#include "tx_thread.h"
;
;
;Define Assembly language external references...
; ;
IMPORT _tx_timer_time_slice IMPORT _tx_timer_time_slice
IMPORT _tx_timer_system_clock IMPORT _tx_timer_system_clock
@@ -48,7 +37,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_timer_interrupt Cortex-M3/AC5 */ ;/* _tx_timer_interrupt Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -83,6 +72,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_timer_interrupt(VOID) ;VOID _tx_timer_interrupt(VOID)
@@ -263,4 +255,3 @@ __tx_timer_nothing_expired
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_initialize.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_stack_ptr .global _tx_thread_system_stack_ptr
.global _tx_initialize_unused_memory .global _tx_initialize_unused_memory
@@ -57,7 +47,7 @@ SYSTICK_CYCLES = ((SYSTEM_CLOCK / 100) -1)
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_initialize_low_level Cortex-M3/AC6 */ @/* _tx_initialize_low_level Cortex-M3/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -91,6 +81,9 @@ SYSTICK_CYCLES = ((SYSTEM_CLOCK / 100) -1)
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_initialize_low_level(VOID) @VOID _tx_initialize_low_level(VOID)
@@ -235,8 +228,3 @@ __tx_NMIHandler:
.thumb_func .thumb_func
__tx_DBGHandler: __tx_DBGHandler:
B __tx_DBGHandler B __tx_DBGHandler

View File

@@ -146,6 +146,11 @@ For generic code revision information, please refer to the readme_threadx_generi
file, which is included in your distribution. The following details the revision file, which is included in your distribution. The following details the revision
information associated with this specific port of ThreadX: information associated with this specific port of ThreadX:
08-14-2020 ThreadX update of Cortex-M3/AC6 port. The following files were
changed/added for port specific version 6.0.2:
*.S Modified comments and whitespace.
06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M3 using AC6 tools. 06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M3 using AC6 tools.

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_state .global _tx_thread_system_state
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
@@ -48,13 +38,15 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_context_restore Cortex-M3/AC6 */ @/* _tx_thread_context_restore Cortex-M3/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@/* */ @/* */
@/* DESCRIPTION */ @/* DESCRIPTION */
@/* */ @/* */
@/* This function is only needed for legacy applications and it should */
@/* not be called in any new development on a Cortex-M. */
@/* This function restores the interrupt context if it is processing a */ @/* This function restores the interrupt context if it is processing a */
@/* nested interrupt. If not, it returns to the interrupt thread if no */ @/* nested interrupt. If not, it returns to the interrupt thread if no */
@/* preemption is necessary. Otherwise, if preemption is necessary or */ @/* preemption is necessary. Otherwise, if preemption is necessary or */
@@ -81,6 +73,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_context_restore(VOID) @VOID _tx_thread_context_restore(VOID)
@@ -92,4 +87,3 @@ _tx_thread_context_restore:
@ /* Not needed for this port - just return! */ @ /* Not needed for this port - just return! */
BX lr BX lr
@} @}

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_state .global _tx_thread_system_state
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
@@ -43,13 +33,15 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_context_save Cortex-M3/AC6 */ @/* _tx_thread_context_save Cortex-M3/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@/* */ @/* */
@/* DESCRIPTION */ @/* DESCRIPTION */
@/* */ @/* */
@/* This function is only needed for legacy applications and it should */
@/* not be called in any new development on a Cortex-M. */
@/* This function saves the context of an executing thread in the */ @/* This function saves the context of an executing thread in the */
@/* beginning of interrupt processing. The function also ensures that */ @/* beginning of interrupt processing. The function also ensures that */
@/* the system stack is used upon return to the calling ISR. */ @/* the system stack is used upon return to the calling ISR. */
@@ -75,6 +67,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_context_save(VOID) @VOID _tx_thread_context_save(VOID)

View File

@@ -20,14 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@/* #define TX_SOURCE_CODE */
@/* Include necessary system files. */
@/* #include "tx_api.h"
#include "tx_thread.h" */
.text 32 .text 32
.align 4 .align 4
@@ -37,7 +29,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_interrupt_control Cortex-M3/AC6 */ @/* _tx_thread_interrupt_control Cortex-M3/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -68,6 +60,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* UINT _tx_thread_interrupt_control(UINT new_posture) @/* UINT _tx_thread_interrupt_control(UINT new_posture)
@@ -87,6 +82,3 @@ _tx_thread_interrupt_control:
BX lr @ Return to caller BX lr @ Return to caller
@/* } */ @/* } */

View File

@@ -20,15 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@ @
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
.global _tx_thread_execute_ptr .global _tx_thread_execute_ptr
@@ -44,7 +35,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_schedule Cortex-M3/AC6 */ @/* _tx_thread_schedule Cortex-M3/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -78,6 +69,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_schedule(VOID) @VOID _tx_thread_schedule(VOID)

View File

@@ -20,15 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@
@ @
.text .text
.align 4 .align 4
@@ -38,7 +29,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_stack_build Cortex-M3/AC6 */ @/* _tx_thread_stack_build Cortex-M3/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -71,6 +62,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) @VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
@@ -142,5 +136,3 @@ _tx_thread_stack_build:
@ control block @ control block
BX lr @ Return to caller BX lr @ Return to caller
@} @}

View File

@@ -19,15 +19,6 @@
@/** */ @/** */
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@
@/* #define TX_SOURCE_CODE */
@
@
@/* Include necessary system files. */
@
@/* #include "tx_api.h"
@ #include "tx_thread.h"
@ #include "tx_timer.h" */
.text 32 .text 32
@@ -38,7 +29,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_system_return Cortex-M3/AC6 */ @/* _tx_thread_system_return Cortex-M3/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -71,6 +62,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* VOID _tx_thread_system_return(VOID) @/* VOID _tx_thread_system_return(VOID)
@@ -95,4 +89,3 @@ _isr_context:
BX lr @ Return to caller BX lr @ Return to caller
@/* } */ @/* } */

View File

@@ -20,17 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_timer.h"
@#include "tx_thread.h"
@
@
@Define Assembly language external references...
@ @
.global _tx_timer_time_slice .global _tx_timer_time_slice
.global _tx_timer_system_clock .global _tx_timer_system_clock
@@ -51,7 +40,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_timer_interrupt Cortex-M3/AC6 */ @/* _tx_timer_interrupt Cortex-M3/AC6 */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -86,6 +75,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ @/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_timer_interrupt(VOID) @VOID _tx_timer_interrupt(VOID)
@@ -266,5 +258,3 @@ __tx_timer_nothing_expired:
BX lr @ Return to caller BX lr @ Return to caller
@ @
@} @}

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_initialize.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_stack_ptr .global _tx_thread_system_stack_ptr
.global _tx_initialize_unused_memory .global _tx_initialize_unused_memory
@@ -59,7 +49,7 @@ SYSTICK_CYCLES = ((SYSTEM_CLOCK / 100) -1)
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_initialize_low_level Cortex-M3/GNU */ @/* _tx_initialize_low_level Cortex-M3/GNU */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -96,6 +86,9 @@ SYSTICK_CYCLES = ((SYSTEM_CLOCK / 100) -1)
@/* 06-30-2020 William E. Lamie Modified Comment(s), fixed */ @/* 06-30-2020 William E. Lamie Modified Comment(s), fixed */
@/* GNU assembly comment, */ @/* GNU assembly comment, */
@/* resulting in version 6.0.1 */ @/* resulting in version 6.0.1 */
@/* 08-14-2020 William E. Lamie Modified Comment(s), clean */
@/* up whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_initialize_low_level(VOID) @VOID _tx_initialize_low_level(VOID)
@@ -155,7 +148,6 @@ _tx_initialize_low_level:
LDR r1, =0x40FF0000 @ SysT, PnSV, Rsrv, DbgM LDR r1, =0x40FF0000 @ SysT, PnSV, Rsrv, DbgM
STR r1, [r0, #0xD20] @ Setup System Handlers 12-15 Priority Registers STR r1, [r0, #0xD20] @ Setup System Handlers 12-15 Priority Registers
@ Note: PnSV must be lowest priority, which is 0xFF @ Note: PnSV must be lowest priority, which is 0xFF
@ @
@ /* Return to caller. */ @ /* Return to caller. */
@ @
@@ -240,8 +232,3 @@ __tx_NMIHandler:
.thumb_func .thumb_func
__tx_DBGHandler: __tx_DBGHandler:
B __tx_DBGHandler B __tx_DBGHandler

View File

@@ -143,6 +143,11 @@ For generic code revision information, please refer to the readme_threadx_generi
file, which is included in your distribution. The following details the revision file, which is included in your distribution. The following details the revision
information associated with this specific port of ThreadX: information associated with this specific port of ThreadX:
08-14-2020 ThreadX update of Cortex-M3/GNU port. The following files were
changed/added for port specific version 6.0.2:
*.S Modified comments and whitespace.
05/19/2020 Initial ThreadX 6.0 version for Cortex-M3 using GNU tools. 05/19/2020 Initial ThreadX 6.0 version for Cortex-M3 using GNU tools.

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_state .global _tx_thread_system_state
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
@@ -49,13 +39,15 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_context_restore Cortex-M3/GNU */ @/* _tx_thread_context_restore Cortex-M3/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@/* */ @/* */
@/* DESCRIPTION */ @/* DESCRIPTION */
@/* */ @/* */
@/* This function is only needed for legacy applications and it should */
@/* not be called in any new development on a Cortex-M. */
@/* This function restores the interrupt context if it is processing a */ @/* This function restores the interrupt context if it is processing a */
@/* nested interrupt. If not, it returns to the interrupt thread if no */ @/* nested interrupt. If not, it returns to the interrupt thread if no */
@/* preemption is necessary. Otherwise, if preemption is necessary or */ @/* preemption is necessary. Otherwise, if preemption is necessary or */
@@ -82,6 +74,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_context_restore(VOID) @VOID _tx_thread_context_restore(VOID)
@@ -93,4 +88,3 @@ _tx_thread_context_restore:
@ /* Not needed for this port - just return! */ @ /* Not needed for this port - just return! */
BX lr BX lr
@} @}

View File

@@ -20,16 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@
@ @
.global _tx_thread_system_state .global _tx_thread_system_state
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
@@ -44,13 +34,15 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_context_save Cortex-M3/GNU */ @/* _tx_thread_context_save Cortex-M3/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@/* */ @/* */
@/* DESCRIPTION */ @/* DESCRIPTION */
@/* */ @/* */
@/* This function is only needed for legacy applications and it should */
@/* not be called in any new development on a Cortex-M. */
@/* This function saves the context of an executing thread in the */ @/* This function saves the context of an executing thread in the */
@/* beginning of interrupt processing. The function also ensures that */ @/* beginning of interrupt processing. The function also ensures that */
@/* the system stack is used upon return to the calling ISR. */ @/* the system stack is used upon return to the calling ISR. */
@@ -76,6 +68,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_context_save(VOID) @VOID _tx_thread_context_save(VOID)

View File

@@ -20,14 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@/* #define TX_SOURCE_CODE */
@/* Include necessary system files. */
@/* #include "tx_api.h"
#include "tx_thread.h" */
.text 32 .text 32
.align 4 .align 4
@@ -37,7 +29,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_interrupt_control Cortex-M3/GNU */ @/* _tx_thread_interrupt_control Cortex-M3/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -68,6 +60,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* UINT _tx_thread_interrupt_control(UINT new_posture) @/* UINT _tx_thread_interrupt_control(UINT new_posture)
@@ -87,6 +82,3 @@ _tx_thread_interrupt_control:
BX lr @ Return to caller BX lr @ Return to caller
@/* } */ @/* } */

View File

@@ -20,15 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@#include "tx_timer.h"
@ @
.global _tx_thread_current_ptr .global _tx_thread_current_ptr
.global _tx_thread_execute_ptr .global _tx_thread_execute_ptr
@@ -46,7 +37,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_schedule Cortex-M3/GNU */ @/* _tx_thread_schedule Cortex-M3/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -80,6 +71,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_schedule(VOID) @VOID _tx_thread_schedule(VOID)
@@ -249,4 +243,3 @@ __tx_ts_ready:
@ @
CPSIE i @ Enable interrupts CPSIE i @ Enable interrupts
B __tx_ts_restore @ Restore the thread B __tx_ts_restore @ Restore the thread

View File

@@ -20,15 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_thread.h"
@
@ @
.text .text
.align 4 .align 4
@@ -38,7 +29,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_stack_build Cortex-M3/GNU */ @/* _tx_thread_stack_build Cortex-M3/GNU */
@/* 6.0.1 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -76,6 +67,9 @@
@/* needed. Removed references */ @/* needed. Removed references */
@/* to stack frame, resulting */ @/* to stack frame, resulting */
@/* in version 6.0.1 */ @/* in version 6.0.1 */
@/* 08-14-2020 William E. Lamie Modified Comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) @VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
@@ -147,5 +141,3 @@ _tx_thread_stack_build:
@ control block @ control block
BX lr @ Return to caller BX lr @ Return to caller
@} @}

View File

@@ -19,15 +19,6 @@
@/** */ @/** */
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@
@/* #define TX_SOURCE_CODE */
@
@
@/* Include necessary system files. */
@
@/* #include "tx_api.h"
@ #include "tx_thread.h"
@ #include "tx_timer.h" */
.text 32 .text 32
@@ -38,7 +29,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_thread_system_return Cortex-M3/GNU */ @/* _tx_thread_system_return Cortex-M3/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -71,6 +62,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@/* VOID _tx_thread_system_return(VOID) @/* VOID _tx_thread_system_return(VOID)
@@ -95,4 +89,3 @@ _isr_context:
BX lr @ Return to caller BX lr @ Return to caller
@/* } */ @/* } */

View File

@@ -20,17 +20,6 @@
@/**************************************************************************/ @/**************************************************************************/
@/**************************************************************************/ @/**************************************************************************/
@ @
@#define TX_SOURCE_CODE
@
@
@/* Include necessary system files. */
@
@#include "tx_api.h"
@#include "tx_timer.h"
@#include "tx_thread.h"
@
@
@Define Assembly language external references...
@ @
.global _tx_timer_time_slice .global _tx_timer_time_slice
.global _tx_timer_system_clock .global _tx_timer_system_clock
@@ -51,7 +40,7 @@
@/* FUNCTION RELEASE */ @/* FUNCTION RELEASE */
@/* */ @/* */
@/* _tx_timer_interrupt Cortex-M3/GNU */ @/* _tx_timer_interrupt Cortex-M3/GNU */
@/* 6.0 */ @/* 6.0.2 */
@/* AUTHOR */ @/* AUTHOR */
@/* */ @/* */
@/* William E. Lamie, Microsoft Corporation */ @/* William E. Lamie, Microsoft Corporation */
@@ -86,6 +75,9 @@
@/* DATE NAME DESCRIPTION */ @/* DATE NAME DESCRIPTION */
@/* */ @/* */
@/* 05-19-2020 William E. Lamie Initial Version 6.0 */ @/* 05-19-2020 William E. Lamie Initial Version 6.0 */
@/* 08-14-2020 Scott Larson Modified comment(s), clean up */
@/* whitespace, resulting */
@/* in version 6.0.2 */
@/* */ @/* */
@/**************************************************************************/ @/**************************************************************************/
@VOID _tx_timer_interrupt(VOID) @VOID _tx_timer_interrupt(VOID)
@@ -266,5 +258,3 @@ __tx_timer_nothing_expired:
BX lr @ Return to caller BX lr @ Return to caller
@ @
@} @}

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_initialize.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
EXTERN _tx_thread_system_stack_ptr EXTERN _tx_thread_system_stack_ptr
EXTERN _tx_initialize_unused_memory EXTERN _tx_initialize_unused_memory
@@ -55,7 +45,7 @@ __tx_free_memory_start
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_initialize_low_level Cortex-M3/IAR */ ;/* _tx_initialize_low_level Cortex-M3/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -89,6 +79,9 @@ __tx_free_memory_start
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_initialize_low_level(VOID) ;VOID _tx_initialize_low_level(VOID)
@@ -177,5 +170,3 @@ __tx_SysTickHandler:
; } ; }
END END

View File

@@ -148,6 +148,11 @@ For generic code revision information, please refer to the readme_threadx_generi
file, which is included in your distribution. The following details the revision file, which is included in your distribution. The following details the revision
information associated with this specific port of ThreadX: information associated with this specific port of ThreadX:
08-14-2020 ThreadX update of Cortex-M3/IAR port. The following files were
changed/added for port specific version 6.0.2:
*.s Modified comments and whitespace.
06/30/2020 Initial ThreadX version 6.0.1 for Cortex-M3 using IAR's ARM tools. 06/30/2020 Initial ThreadX version 6.0.1 for Cortex-M3 using IAR's ARM tools.

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
EXTERN _tx_execution_isr_exit EXTERN _tx_execution_isr_exit
; ;
@@ -41,13 +31,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_restore Cortex-M3/IAR */ ;/* _tx_thread_context_restore Cortex-M3/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function restores the interrupt context if it is processing a */ ;/* This function restores the interrupt context if it is processing a */
;/* nested interrupt. If not, it returns to the interrupt thread if no */ ;/* nested interrupt. If not, it returns to the interrupt thread if no */
;/* preemption is necessary. Otherwise, if preemption is necessary or */ ;/* preemption is necessary. Otherwise, if preemption is necessary or */
@@ -74,6 +66,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_restore(VOID) ;VOID _tx_thread_context_restore(VOID)

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
EXTERN _tx_execution_isr_enter EXTERN _tx_execution_isr_enter
; ;
@@ -41,13 +31,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_save Cortex-M3/IAR */ ;/* _tx_thread_context_save Cortex-M3/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function saves the context of an executing thread in the */ ;/* This function saves the context of an executing thread in the */
;/* beginning of interrupt processing. The function also ensures that */ ;/* beginning of interrupt processing. The function also ensures that */
;/* the system stack is used upon return to the calling ISR. */ ;/* the system stack is used upon return to the calling ISR. */
@@ -73,6 +65,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_save(VOID) ;VOID _tx_thread_context_save(VOID)
@@ -93,4 +88,3 @@ _tx_thread_context_save:
BX lr BX lr
;} ;}
END END

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
SECTION `.text`:CODE:NOROOT(2) SECTION `.text`:CODE:NOROOT(2)
THUMB THUMB
@@ -36,7 +28,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_control Cortex-M3/IAR */ ;/* _tx_thread_interrupt_control Cortex-M3/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -67,6 +59,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_control(UINT new_posture) ;UINT _tx_thread_interrupt_control(UINT new_posture)
@@ -83,4 +78,3 @@ _tx_thread_interrupt_control:
; ;
;} ;}
END END

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
SECTION `.text`:CODE:NOROOT(2) SECTION `.text`:CODE:NOROOT(2)
THUMB THUMB
@@ -36,7 +28,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_restore Cortex-M3/IAR */ ;/* _tx_thread_interrupt_restore Cortex-M3/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -67,6 +59,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;UINT _tx_thread_interrupt_disable(UINT new_posture) ;UINT _tx_thread_interrupt_disable(UINT new_posture)

View File

@@ -20,14 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
SECTION `.text`:CODE:NOROOT(2) SECTION `.text`:CODE:NOROOT(2)
THUMB THUMB
@@ -36,7 +28,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_interrupt_restore Cortex-M3/IAR */ ;/* _tx_thread_interrupt_restore Cortex-M3/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -67,6 +59,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_interrupt_restore(UINT new_posture) ;VOID _tx_thread_interrupt_restore(UINT new_posture)

View File

@@ -20,15 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
; ;
EXTERN _tx_thread_current_ptr EXTERN _tx_thread_current_ptr
EXTERN _tx_thread_execute_ptr EXTERN _tx_thread_execute_ptr
@@ -46,7 +37,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_schedule Cortex-M3/IAR */ ;/* _tx_thread_schedule Cortex-M3/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -80,6 +71,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_schedule(VOID) ;VOID _tx_thread_schedule(VOID)
@@ -247,4 +241,3 @@ __tx_ts_ready:
B __tx_ts_restore ; Restore the thread B __tx_ts_restore ; Restore the thread
;} ;}
END END

View File

@@ -20,15 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;
; ;
SECTION `.text`:CODE:NOROOT(2) SECTION `.text`:CODE:NOROOT(2)
THUMB THUMB
@@ -37,7 +28,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_stack_build Cortex-M3/IAR */ ;/* _tx_thread_stack_build Cortex-M3/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -70,6 +61,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) ;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
@@ -141,4 +135,3 @@ _tx_thread_stack_build:
BX lr ; Return to caller BX lr ; Return to caller
;} ;}
END END

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
;
; ;
SECTION `.text`:CODE:NOROOT(2) SECTION `.text`:CODE:NOROOT(2)
THUMB THUMB
@@ -38,7 +28,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_system_return Cortex-M3/IAR */ ;/* _tx_thread_system_return Cortex-M3/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -71,6 +61,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_system_return(VOID) ;VOID _tx_thread_system_return(VOID)
@@ -95,4 +88,3 @@ _isr_context:
BX lr ; Return to caller BX lr ; Return to caller
;} ;}
END END

View File

@@ -20,17 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_timer.h"
;#include "tx_thread.h"
;
;
;Define Assembly language external references...
; ;
EXTERN _tx_timer_time_slice EXTERN _tx_timer_time_slice
EXTERN _tx_timer_system_clock EXTERN _tx_timer_system_clock
@@ -53,7 +42,7 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_timer_interrupt Cortex-M3/IAR */ ;/* _tx_timer_interrupt Cortex-M3/IAR */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -87,6 +76,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_timer_interrupt(VOID) ;VOID _tx_timer_interrupt(VOID)
@@ -265,4 +257,3 @@ __tx_timer_nothing_expired:
; ;
;} ;}
END END

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_initialize.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IMPORT _tx_thread_system_stack_ptr IMPORT _tx_thread_system_stack_ptr
IMPORT _tx_initialize_unused_memory IMPORT _tx_initialize_unused_memory
@@ -88,7 +78,6 @@ __tx_vectors
DCD __tx_IntHandler ; Int 1 DCD __tx_IntHandler ; Int 1
DCD __tx_IntHandler ; Int 2 DCD __tx_IntHandler ; Int 2
DCD __tx_IntHandler ; Int 3 DCD __tx_IntHandler ; Int 3
; ;
; ;
AREA ||.text||, CODE, READONLY AREA ||.text||, CODE, READONLY
@@ -104,7 +93,7 @@ Reset_Handler
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_initialize_low_level Cortex-M3/RVDS */ ;/* _tx_initialize_low_level Cortex-M3/RVDS */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
@@ -138,6 +127,9 @@ Reset_Handler
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_initialize_low_level(VOID) ;VOID _tx_initialize_low_level(VOID)
@@ -262,5 +254,3 @@ __tx_DBGHandler
ALIGN ALIGN
LTORG LTORG
END END

View File

@@ -142,6 +142,11 @@ For generic code revision information, please refer to the readme_threadx_generi
file, which is included in your distribution. The following details the revision file, which is included in your distribution. The following details the revision
information associated with this specific port of ThreadX: information associated with this specific port of ThreadX:
08-14-2020 ThreadX update of Cortex-M3/Keil port. The following files were
changed/added for port specific version 6.0.2:
*.s Modified comments and whitespace.
06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M3 using Keil tools. 06/30/2020 Initial ThreadX 6.0.1 version for Cortex-M3 using Keil tools.

View File

@@ -20,16 +20,6 @@
;/**************************************************************************/ ;/**************************************************************************/
;/**************************************************************************/ ;/**************************************************************************/
; ;
;
;#define TX_SOURCE_CODE
;
;
;/* Include necessary system files. */
;
;#include "tx_api.h"
;#include "tx_thread.h"
;#include "tx_timer.h"
;
; ;
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IMPORT _tx_execution_isr_exit IMPORT _tx_execution_isr_exit
@@ -43,13 +33,15 @@
;/* FUNCTION RELEASE */ ;/* FUNCTION RELEASE */
;/* */ ;/* */
;/* _tx_thread_context_restore Cortex-M3/AC5 */ ;/* _tx_thread_context_restore Cortex-M3/AC5 */
;/* 6.0.1 */ ;/* 6.0.2 */
;/* AUTHOR */ ;/* AUTHOR */
;/* */ ;/* */
;/* William E. Lamie, Microsoft Corporation */ ;/* William E. Lamie, Microsoft Corporation */
;/* */ ;/* */
;/* DESCRIPTION */ ;/* DESCRIPTION */
;/* */ ;/* */
;/* This function is only needed for legacy applications and it should */
;/* not be called in any new development on a Cortex-M. */
;/* This function restores the interrupt context if it is processing a */ ;/* This function restores the interrupt context if it is processing a */
;/* nested interrupt. If not, it returns to the interrupt thread if no */ ;/* nested interrupt. If not, it returns to the interrupt thread if no */
;/* preemption is necessary. Otherwise, if preemption is necessary or */ ;/* preemption is necessary. Otherwise, if preemption is necessary or */
@@ -76,6 +68,9 @@
;/* DATE NAME DESCRIPTION */ ;/* DATE NAME DESCRIPTION */
;/* */ ;/* */
;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */ ;/* 06-30-2020 William E. Lamie Initial Version 6.0.1 */
;/* 08-14-2020 Scott Larson Modified comment(s), clean up */
;/* whitespace, resulting */
;/* in version 6.0.2 */
;/* */ ;/* */
;/**************************************************************************/ ;/**************************************************************************/
;VOID _tx_thread_context_restore(VOID) ;VOID _tx_thread_context_restore(VOID)

Some files were not shown because too many files have changed in this diff Show More