Esempio n. 1
0
void VM_GetSinglePort(void)
{
    uint8 port, data, msk;

    port = LOBYTE(VM_PopW()) & SINGLE_PORT_MASK;

    if (port > ((uint8)7)) {
        msk    = port & ((uint8)0x07);
        data   = HAL_BYTE_PORT1;
    } else {
        msk    = port;
        data   = HAL_BYTE_PORT0;
    }

    msk = BitTab8[msk];

    if ((data & msk) == msk) {
        data = (uint8)CC_TRUE;
    } else {
        data = (uint8)CC_FALSE;
    }

    VM_PushW((uint16)data);
}
Esempio n. 2
0
void Lcd_ready(void)
{
    VM_PushW(CC_TRUE);
}