bfin warnings fixed

This commit is contained in:
2019-11-27 18:22:33 +01:00
parent c94f6a2bf2
commit 3486137de3
9 changed files with 21 additions and 22 deletions

View File

@ -1537,7 +1537,7 @@ int configureMAC(){
// start addr
uint32_t addr = RXR_ENDPOINT_START_REG;
// get struct memory
udp_header *udp = (udp_header*) (Blackfin_getBaseAddress() + addr * 2);
udp_header *udp = (udp_header*) (Blackfin_getBaseAddress() + addr / 2);
memset(udp, 0, sizeof(udp_header));
// mac addresses