summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-05-03 18:40:27 -0600
committerEvan Lojewski <github@meklort.com>2019-05-03 18:40:27 -0600
commit09a6984475346e8c10e2803bfeaf3b71a14616f9 (patch)
tree5f9bb8d95cdf5bbab25668c51085243228b05f34
parent34a418605a7f2e3510216189e5417fc786b70402 (diff)
downloadbcm5719-ortega-09a6984475346e8c10e2803bfeaf3b71a14616f9.tar.gz
bcm5719-ortega-09a6984475346e8c10e2803bfeaf3b71a14616f9.zip
Clean up be32toh routine in tx.c slightly.
-rw-r--r--libs/Network/tx.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/libs/Network/tx.c b/libs/Network/tx.c
index 730afb6..1427caa 100644
--- a/libs/Network/tx.c
+++ b/libs/Network/tx.c
@@ -55,12 +55,12 @@
/* ARM */
static inline uint32_t be32toh(uint32_t be32)
{
- uint32_t le32 = (be32 & 0xFF000000 >> 24) |
- (be32 & 0x00FF0000 >> 8) |
- (be32 & 0x0000FF00 << 8) |
- (be32 & 0x000000FF << 24);
+ uint32_t le32 = ((be32 & 0xFF000000) >> 24) |
+ ((be32 & 0x00FF0000) >> 8) |
+ ((be32 & 0x0000FF00) << 8) |
+ ((be32 & 0x000000FF) << 24);
- return le32;
+ return le32;
}
#endif
@@ -288,9 +288,6 @@ void Network_TX_transmitBePacket(uint8_t* packet, uint32_t length)
doorbell.bits.Head = first;
doorbell.bits.Tail = tail;
doorbell.bits.Length = total_blocks;
- // doorbell.print();
APE.TxToNetDoorbellFunc0 = doorbell;
- // APE.TxToNetDoorbellFunc0.print();
- // APE.TxToNetBufferReturn0.print();
}
OpenPOWER on IntegriCloud