mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed flag macros
Needed if you want to clear multiple flags at once
This commit is contained in:
parent
471a8d9163
commit
6ea34f955e
1 changed files with 6 additions and 6 deletions
12
BTD.h
12
BTD.h
|
@ -71,9 +71,9 @@
|
||||||
#define HCI_FLAG_CONNECT_EVENT 0x100
|
#define HCI_FLAG_CONNECT_EVENT 0x100
|
||||||
|
|
||||||
/* Macros for HCI event flag tests */
|
/* Macros for HCI event flag tests */
|
||||||
#define hci_check_flag(flag) (hci_event_flag & flag)
|
#define hci_check_flag(flag) (hci_event_flag & (flag))
|
||||||
#define hci_set_flag(flag) (hci_event_flag |= flag)
|
#define hci_set_flag(flag) (hci_event_flag |= (flag))
|
||||||
#define hci_clear_flag(flag) (hci_event_flag &= ~flag)
|
#define hci_clear_flag(flag) (hci_event_flag &= ~(flag))
|
||||||
|
|
||||||
/* HCI Events managed */
|
/* HCI Events managed */
|
||||||
#define EV_INQUIRY_COMPLETE 0x01
|
#define EV_INQUIRY_COMPLETE 0x01
|
||||||
|
@ -157,9 +157,9 @@
|
||||||
#define L2CAP_FLAG_DISCONNECT_RESPONSE 0x00004000
|
#define L2CAP_FLAG_DISCONNECT_RESPONSE 0x00004000
|
||||||
|
|
||||||
/* Macros for L2CAP event flag tests */
|
/* Macros for L2CAP event flag tests */
|
||||||
#define l2cap_check_flag(flag) (l2cap_event_flag & flag)
|
#define l2cap_check_flag(flag) (l2cap_event_flag & (flag))
|
||||||
#define l2cap_set_flag(flag) (l2cap_event_flag |= flag)
|
#define l2cap_set_flag(flag) (l2cap_event_flag |= (flag))
|
||||||
#define l2cap_clear_flag(flag) (l2cap_event_flag &= ~flag)
|
#define l2cap_clear_flag(flag) (l2cap_event_flag &= ~(flag))
|
||||||
|
|
||||||
/* L2CAP signaling commands */
|
/* L2CAP signaling commands */
|
||||||
#define L2CAP_CMD_COMMAND_REJECT 0x01
|
#define L2CAP_CMD_COMMAND_REJECT 0x01
|
||||||
|
|
Loading…
Reference in a new issue