|
Hi,
I think I misunderstood your requirement. The macro is read-only and can't be used to ALTER autoreset status.
If you're requirement is to change the Autoreset function (enable/disable) during runtime from within the firmware, you'll have to make some minor modifications to your usermodule code as follows:
1. Open CSD_1hl.asm from lib>Library Source Files folder
2. Find the following section ->
;@PSoC_UserCode_INIT@ (Do not change this line.)
;---------------------------------------------------
; Insert your custom declarations below this banner
and add the following lines after the above banner:
export CSD_1_AUTORESET_custom
export _CSD_1_AUTORESET_custom
3. Also allocate some space for the variables:
;------------------------
; User Variable Allocation
;------------------------
CSD_1_AUTORESET_custom: BLK 1
_CSD_1_AUTORESET_custom: BLK 1
4. In the same file, search for "CSD_1_AUTORESET" and replace it with the variable name "CSD_1_AUTORESET_custom"
5. Now in your code, you can invoke your variable by adding a reference declaration "extern CSD_1_AUTORESET_custom"
Autoreset function can be toggled ON/OFF with CSD_1_AUTORESET_custom = 1 or CSD_1_AUTORESET_custom = 0;
Please try this out and let me know how it goes.
Regards,
Arvind
|