ULP General Purpose Registers R4-R7
Posted: Mon May 13, 2019 3:55 am
The ULP CP instruction set says "ULP coprocessor has 4 16-bit general purpose registers, labeled R0, R1, R2, R3".
I'm currently using the macros to program it, and only R0-R3 are defined here: https://github.com/espressif/esp-idf/bl ... /ulp.h#L35
Yet, looking through the registers, there also exists R4-R7 here: https://github.com/espressif/esp-idf/bl ... eg.h#L1801
I just tested these in a program by simply defining them as 4-7 and replacing R1-R3 with R4-R7 respectively, and everything seems to be working fine.
So, naturally, I'm curious why these aren't documented or used. Are they safe to use? Is it as simple as the method I described above, or was that just a coincidence?
I'm currently using the macros to program it, and only R0-R3 are defined here: https://github.com/espressif/esp-idf/bl ... /ulp.h#L35
Yet, looking through the registers, there also exists R4-R7 here: https://github.com/espressif/esp-idf/bl ... eg.h#L1801
I just tested these in a program by simply defining them as 4-7 and replacing R1-R3 with R4-R7 respectively, and everything seems to be working fine.
So, naturally, I'm curious why these aren't documented or used. Are they safe to use? Is it as simple as the method I described above, or was that just a coincidence?