I am porting the application from BF532 to BF518 processor. In original version, I used CYCLES and CYCLES2 registers through _GET_CYCLES_COUNT macros. When reading the BF518 specifications I noticed that CYCLES and CYCLES2 are never mentioned and seem to be excluded from a newer processor design. But nevertheless the _GET_CYCLES_COUNT works on BF518 as well.
Can I rely on this macros though it seems to work with an undocumented harware? Or, conversely, this is a documentation bug, and CYCLES/CYCLES2 registers could be legally used?