projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove remaining void* descriptor casts in the projects and demos that were not remov...
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
RNDISEthernet
/
Lib
/
Ethernet.c
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/Lib/Ethernet.c
b/Demos/Device/LowLevel/RNDISEthernet/Lib/Ethernet.c
index
7131ac2
..
0b95633
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/Lib/Ethernet.c
+++ b/
Demos/Device/LowLevel/RNDISEthernet/Lib/Ethernet.c
@@
-120,12
+120,13
@@
void Ethernet_ProcessPacket(void)
*
* \return A 16-bit Ethernet checksum value
*/
*
* \return A 16-bit Ethernet checksum value
*/
-uint16_t Ethernet_Checksum16(void* Data, uint16_t Bytes)
+uint16_t Ethernet_Checksum16(void* Data,
+ uint16_t Bytes)
{
uint16_t* Words = (uint16_t*)Data;
uint32_t Checksum = 0;
{
uint16_t* Words = (uint16_t*)Data;
uint32_t Checksum = 0;
- for (uint
8
_t CurrWord = 0; CurrWord < (Bytes >> 1); CurrWord++)
+ for (uint
16
_t CurrWord = 0; CurrWord < (Bytes >> 1); CurrWord++)
Checksum += Words[CurrWord];
while (Checksum & 0xFFFF0000)
Checksum += Words[CurrWord];
while (Checksum & 0xFFFF0000)