fix shifts

This commit is contained in:
Pavol Rusnak 2011-04-27 00:11:52 +02:00
parent af36fa43f0
commit 3e1c56c744
2 changed files with 6 additions and 6 deletions

View file

@ -17,8 +17,8 @@ void GetInReport (uint8_t src[], uint32_t length)
}
src[14] = 0;
src[14] |= (LPC_GPIO2->MASKED_ACCESS[1<<0] & (1<<0));
src[14] |= (LPC_GPIO2->MASKED_ACCESS[1<<6] & (1<<6));
src[14] |= (LPC_GPIO2->MASKED_ACCESS[1<<7] & (1<<7));
src[14] |= (LPC_GPIO2->MASKED_ACCESS[1<<6] & (1<<6)) >> 5;
src[14] |= (LPC_GPIO2->MASKED_ACCESS[1<<7] & (1<<7)) >> 5;
}