提交 908edc54 编写于 作者: M Mohammad Jamal 提交者: Marcel Holtmann

ieee802154: cc2520: Replace shift operations by BIT macro

This patch replaces the shifting operations by BIT macro
Signed-off-by: NMohammad Jamal <md.jamalmohiuddin@gmail.com>
Acked-by: NVarka Bhadram <varkabhadram@gmail.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 bf21d793
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
#define CC2520_FREG_MASK 0x3F #define CC2520_FREG_MASK 0x3F
/* status byte values */ /* status byte values */
#define CC2520_STATUS_XOSC32M_STABLE (1 << 7) #define CC2520_STATUS_XOSC32M_STABLE BIT(7)
#define CC2520_STATUS_RSSI_VALID (1 << 6) #define CC2520_STATUS_RSSI_VALID BIT(6)
#define CC2520_STATUS_TX_UNDERFLOW (1 << 3) #define CC2520_STATUS_TX_UNDERFLOW BIT(3)
/* IEEE-802.15.4 defined constants (2.4 GHz logical channels) */ /* IEEE-802.15.4 defined constants (2.4 GHz logical channels) */
#define CC2520_MINCHANNEL 11 #define CC2520_MINCHANNEL 11
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册