Added explicit cast to uint8_t, to make the Cisual Studio compiler happy.
This commit is contained in:
@@ -137,7 +137,7 @@ uint8_t PeripheralsReadByte (uint8_t Addr)
|
|||||||
default: Value = 0; /* Reading from a non-existent latch register will yield 0. */
|
default: Value = 0; /* Reading from a non-existent latch register will yield 0. */
|
||||||
}
|
}
|
||||||
/* Return the desired byte of the latched counter. 0==LSB, 7==MSB. */
|
/* Return the desired byte of the latched counter. 0==LSB, 7==MSB. */
|
||||||
return Value >> (ByteIndex * 8);
|
return (uint8_t)(Value >> (ByteIndex * 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handle reads from unused peripheral and write-only addresses. */
|
/* Handle reads from unused peripheral and write-only addresses. */
|
||||||
|
|||||||
Reference in New Issue
Block a user