diff --git a/drivers/wireless/bluetooth/bt_uart.h b/drivers/wireless/bluetooth/bt_uart.h index 98f6702f68..9f0277f885 100644 --- a/drivers/wireless/bluetooth/bt_uart.h +++ b/drivers/wireless/bluetooth/bt_uart.h @@ -40,6 +40,9 @@ * ****************************************************************************/ +#ifndef __DRIVER_WIRELESS_BLUETOOTH_BT_UART_H +#define __DRIVER_WIRELESS_BLUETOOTH_BT_UART_H + /**************************************************************************** * Included Files ****************************************************************************/ @@ -55,14 +58,6 @@ * Pre-processor Definitions ****************************************************************************/ -#define H4_HEADER_SIZE 1 - -#define H4_CMD 0x01 -#define H4_ACL 0x02 -#define H4_SCO 0x03 -#define H4_EVT 0x04 -#define H4_ISO 0x05 - #ifdef CONFIG_BLUETOOTH_UART_DUMP # define BT_DUMP(m,b,l) lib_dumpbuffer(m,b,l) #else @@ -101,3 +96,5 @@ struct btuart_upperhalf_s int btuart_send(FAR const struct bt_driver_s *dev, FAR struct bt_buf_s *buf); int btuart_open(FAR const struct bt_driver_s *dev); + +#endif /* __DRIVER_WIRELESS_BLUETOOTH_BT_UART_H */ diff --git a/include/nuttx/wireless/bluetooth/bt_uart.h b/include/nuttx/wireless/bluetooth/bt_uart.h index 2512826d59..c62445feae 100644 --- a/include/nuttx/wireless/bluetooth/bt_uart.h +++ b/include/nuttx/wireless/bluetooth/bt_uart.h @@ -51,6 +51,18 @@ #include +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define H4_HEADER_SIZE 1 + +#define H4_CMD 0x01 +#define H4_ACL 0x02 +#define H4_SCO 0x03 +#define H4_EVT 0x04 +#define H4_ISO 0x05 + /**************************************************************************** * Public Types ****************************************************************************/