diff options
author | Evan Lojewski <github@meklort.com> | 2019-05-03 18:40:27 -0600 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-05-03 18:40:27 -0600 |
commit | 09a6984475346e8c10e2803bfeaf3b71a14616f9 (patch) | |
tree | 5f9bb8d95cdf5bbab25668c51085243228b05f34 /libs | |
parent | 34a418605a7f2e3510216189e5417fc786b70402 (diff) | |
download | bcm5719-ortega-09a6984475346e8c10e2803bfeaf3b71a14616f9.tar.gz bcm5719-ortega-09a6984475346e8c10e2803bfeaf3b71a14616f9.zip |
Clean up be32toh routine in tx.c slightly.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/Network/tx.c | 13 |
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(); } |