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 ) {