We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All. I'm becoming more familiar with C51's various memory models, but I could use some confirmation on one issue. Here's a code snippet:
char CODE_B = 'B'; char CODE_C = 'C'; ... void TaskShow( void ) { OStypeMsgP msgP; InitPORT(); PORT = 0x00; for (;;) { OS_WaitMsg(MSG_UPDATE_PORT_P, &msgP, OSNO_TIMEOUT, TaskShow1); if ( *(char *)msgP == CODE_C ) { PORT &= ~0xFE; PORT |= ( counter >> 8 ) & 0xFE; } else PORT ^= 0x01; } }
if ( *(char xdata *)msgP == CODE_C ) {
Ahem, off-line is tough without an email address, eh? mark@embeddedfw.com