V
vicky
Hello,
As, I am new to the C-language, I was trying to find out this piece of code,
without any comments. Would anyone around here can give me some idea what
this code is doing.
static const associative_array register_names = {
ASSOCIATIVE_ARRAY_END
};
void SwitchOn(pvhVoid adr) {
#ifndef HARDWARE
SwitchSetReg(BASE, 0x0010, 0x0000, 0x0001) ;
#else
vhPrintfMessage("push the button ...\n");
#endif
}
void SwitchSetIntRelease(pvhVoid adr) {
#ifndef HARDWARE
SwitchSetReg(BASE, 0x0010, 0x0000, 0x0000) ;
#else
vhPrintfMessage("Release button ...\n");
#endif
}
Very thankful for any help.
rajan
As, I am new to the C-language, I was trying to find out this piece of code,
without any comments. Would anyone around here can give me some idea what
this code is doing.
static const associative_array register_names = {
ASSOCIATIVE_ARRAY_END
};
void SwitchOn(pvhVoid adr) {
#ifndef HARDWARE
SwitchSetReg(BASE, 0x0010, 0x0000, 0x0001) ;
#else
vhPrintfMessage("push the button ...\n");
#endif
}
void SwitchSetIntRelease(pvhVoid adr) {
#ifndef HARDWARE
SwitchSetReg(BASE, 0x0010, 0x0000, 0x0000) ;
#else
vhPrintfMessage("Release button ...\n");
#endif
}
Very thankful for any help.
rajan