ΣSigmaStudio Ask AI Русский Log in

about the underscore before the registers???

Processors & DSP shedmaze Oct 10, 2011 00:00 2 replies Original on forum ↗
Subscribe
shedmaze Question
Oct 10, 2011 00:00

hello, aces,

i am a beginner in learning the TS201, and one problem confused me, in the function: "builtin_sysreg_write(reg, int) ", before the parameter reg, we need to add underscore before the register name? why... i can't understand

underscore

register

ADIApproved Reply
Oct 17, 2011 00:00

Hi,

the register names require underscores as that is, by default, how they are defined in "...\TS\include\sysreg.h". As you will see from that header file, you can add a preprocessor definition "__NOUNDERSCORES__" so that the register names are defined without the "__".

Regards,

Craig.

EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin