Hi All, Am trying to re-write a code in PLM51 to embedded C. There is a statement in PLM51 as below.
DECLARE TASK(17) STRUCTURE(PNTR BYTE,STATUS BYTE,DELAY WORD); DECLARE DELAY_HEAD BYTE AT (.TASK(0).PNTR); //ERROR LINE//
What i have understood from this is-- DELAY_HEAD is a byte variable which resides at the same location as that of TASK(0).PNTR.(From the PLM51 manual)
I have rewritten the same into C as below.
struct tsk { unsigned char PNTR ; unsigned char STATUS; unsigned int DELAY; }TASK[17]; unsigned char DELAY_HEAD _at_ &TASK[0].PNTR ;
But its giving error 221:non-constant case/dim expression. Plss help..!!
page 201 (9-26) c167 manual.
Note: RP0H cannot be changed via software, but rather allows to check the current configuration.
Any idea how to change this reset value so the pins in port 6 are just normal I/O pins ?
Wow - major forum bug.
Seems the forum have a temporary file with fixed name for storing posted text, so if two posts at the same time, everything breaks badly.
The above text, claimed to have been posted by me, is actually a post from this thread: http://www.keil.com/forum/18464/