threadx icon indicating copy to clipboard operation
threadx copied to clipboard

tx_user.h tweaks in Cortex-M GNU assembly files

Open udoe opened this issue 3 years ago • 1 comments
trafficstars

Hi,

I'm referring to the assembly files in ports/cortex_m7/gnu/src (The issue should be present in other cortex_m/gnu ports as well but I haven't checked this).

Shouldn't all those .S files #include "tx_user.h" at the top so that tweaks such as TX_ENABLE_WFI or TX_EXECUTION_PROFILE_ENABLE made therein have an effect on the assembly code? Without that include statement I need to duplicate such defines in the makefile which is error-prone.

Thanks Udo

udoe avatar Feb 28 '22 09:02 udoe

We have been discussing this internally and hope to make some improvements soon.

goldscott avatar Feb 28 '22 20:02 goldscott