Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf1277c4 authored by Myles Watson's avatar Myles Watson
Browse files

include: Fix comment formatting

In preparation for clang-format, fix a few comments that
would have been mangled.

Test: mma -j32
Change-Id: I7194818e93432f8bad4d7c114a93025e217aa694
parent 6b30ed0e
Loading
Loading
Loading
Loading
+91 −91
Original line number Diff line number Diff line
@@ -159,10 +159,10 @@


/******************************************************************************
**
** Buffer sizes
**
******************************************************************************/
 *
 * Buffer sizes
 *
 *****************************************************************************/

#ifndef BT_DEFAULT_BUFFER_SIZE
#define BT_DEFAULT_BUFFER_SIZE          (4096 + 16)
@@ -291,10 +291,10 @@
#endif

/******************************************************************************
**
** BTM
**
******************************************************************************/
 *
 * BTM
 *
 *****************************************************************************/

/* Cancel Inquiry on incoming SSP */
#ifndef BTM_NO_SSP_ON_INQUIRY
@@ -317,15 +317,15 @@
#endif

/*  This is used to work around a controller bug that doesn't like Disconnect
**  issued while there is a role switch in progress
 *  issued while there is a role switch in progress
*/
#ifndef BTM_DISC_DURING_RS
#define BTM_DISC_DURING_RS TRUE
#endif

/**************************
** Initial SCO TX credit
*************************/
 * Initial SCO TX credit
 ************************/
/* max TX SCO data packet size */
#ifndef BTM_SCO_DATA_SIZE_MAX
#define BTM_SCO_DATA_SIZE_MAX       240
@@ -458,8 +458,8 @@
#endif

/******************************************
**    Lisbon Features
*******************************************/
 *    Lisbon Features
 ******************************************/
/* This is set to TRUE if the FEC is required for EIR packet. */
#ifndef BTM_EIR_DEFAULT_FEC_REQUIRED
#define BTM_EIR_DEFAULT_FEC_REQUIRED    TRUE
@@ -492,8 +492,8 @@
#endif

/*************************
** End of Lisbon Features
**************************/
 * End of Lisbon Features
 *************************/

/* 4.1/4.2 secure connections feature */
#ifndef SC_MODE_INCLUDED
@@ -506,10 +506,10 @@
#endif

/******************************************************************************
**
** L2CAP
**
******************************************************************************/
 *
 * L2CAP
 *
 *****************************************************************************/

/* The maximum number of simultaneous links that L2CAP can support. */
#ifndef MAX_ACL_CONNECTIONS
@@ -646,10 +646,10 @@


/******************************************************************************
**
** BLE
**
******************************************************************************/
 *
 * BLE
 *
 *****************************************************************************/

#ifndef BLE_INCLUDED
#define BLE_INCLUDED            TRUE
@@ -696,10 +696,10 @@
#endif

/******************************************************************************
**
** ATT/GATT Protocol/Profile Settings
**
******************************************************************************/
 *
 * ATT/GATT Protocol/Profile Settings
 *
 *****************************************************************************/
#ifndef BTA_GATT_INCLUDED
#if BLE_INCLUDED == TRUE
#define BTA_GATT_INCLUDED TRUE
@@ -762,10 +762,10 @@
#endif

/******************************************************************************
**
** SMP
**
******************************************************************************/
 *
 * SMP
 *
 *****************************************************************************/
#ifndef SMP_INCLUDED
#if (BLE_INCLUDED == TRUE)
#define SMP_INCLUDED         TRUE
@@ -802,10 +802,10 @@
#endif
#endif
/******************************************************************************
**
** SDP
**
******************************************************************************/
 *
 * SDP
 *
 *****************************************************************************/

/* This is set to enable SDP server functionality. */
#ifndef SDP_SERVER_ENABLED
@@ -887,10 +887,10 @@
#endif

/******************************************************************************
**
** RFCOMM
**
******************************************************************************/
 *
 * RFCOMM
 *
 *****************************************************************************/

/* The maximum number of ports supported. */
#ifndef MAX_RFC_PORTS
@@ -970,10 +970,10 @@
#endif

/******************************************************************************
**
** OBEX
**
******************************************************************************/
 *
 * OBEX
 *
 *****************************************************************************/

/*
 * Buffer size to reassemble the SDU.
@@ -1053,10 +1053,10 @@


/******************************************************************************
**
** BNEP
**
******************************************************************************/
 *
 * BNEP
 *
 *****************************************************************************/

#ifndef BNEP_INCLUDED
#define BNEP_INCLUDED               TRUE
@@ -1068,8 +1068,8 @@
#endif

/*
** When BNEP connection changes roles after the connection is established
** we will do an authentication check again on the new role
 * When BNEP connection changes roles after the connection is established
 * we will do an authentication check again on the new role
*/
#ifndef BNEP_DO_AUTH_FOR_ROLE_SWITCH
#define BNEP_DO_AUTH_FOR_ROLE_SWITCH        TRUE
@@ -1108,10 +1108,10 @@


/******************************************************************************
**
** AVDTP
**
******************************************************************************/
 *
 * AVDTP
 *
 *****************************************************************************/

#ifndef AVDT_INCLUDED
#define AVDT_INCLUDED               TRUE
@@ -1143,10 +1143,10 @@
#endif

/******************************************************************************
**
** PAN
**
******************************************************************************/
 *
 * PAN
 *
 *****************************************************************************/

#ifndef PAN_INCLUDED
#define PAN_INCLUDED                     TRUE
@@ -1231,10 +1231,10 @@
#endif

/******************************************************************************
**
** GAP
**
******************************************************************************/
 *
 * GAP
 *
 *****************************************************************************/

#ifndef GAP_INCLUDED
#define GAP_INCLUDED                TRUE
@@ -1261,10 +1261,10 @@
#endif

/******************************************************************************
**
** HID
**
******************************************************************************/
 *
 * HID
 *
 *****************************************************************************/

#ifndef HID_CONTROL_BUF_SIZE
#define HID_CONTROL_BUF_SIZE            BT_DEFAULT_BUFFER_SIZE
@@ -1275,7 +1275,7 @@
#endif

/*************************************************************************
** Definitions for Both HID-Host & Device
 * Definitions for Both HID-Host & Device
*/
#ifndef HID_MAX_SVC_NAME_LEN
#define HID_MAX_SVC_NAME_LEN  32
@@ -1290,7 +1290,7 @@
#endif

/*************************************************************************
** Definitions for HID-Host
 * Definitions for HID-Host
*/
#ifndef  HID_HOST_INCLUDED
#define HID_HOST_INCLUDED           TRUE
@@ -1324,10 +1324,10 @@
#endif

/******************************************************************************
**
** AVCTP
**
******************************************************************************/
 *
 * AVCTP
 *
 *****************************************************************************/

/* Number of simultaneous ACL links to different peer devices. */
#ifndef AVCT_NUM_LINKS
@@ -1340,10 +1340,10 @@
#endif

/******************************************************************************
**
** AVRCP
**
******************************************************************************/
 *
 * AVRCP
 *
 *****************************************************************************/

#ifndef AVRC_METADATA_INCLUDED
#define AVRC_METADATA_INCLUDED      TRUE
@@ -1362,10 +1362,10 @@
#endif

/******************************************************************************
**
** MCAP
**
******************************************************************************/
 *
 * MCAP
 *
 *****************************************************************************/
#ifndef MCA_INCLUDED
#define MCA_INCLUDED                FALSE
#endif
@@ -1468,20 +1468,20 @@ The maximum number of payload octets that the local device can receive in a sing
#endif

/******************************************************************************
**
** Sleep Mode (Low Power Mode)
**
******************************************************************************/
 *
 * Sleep Mode (Low Power Mode)
 *
 *****************************************************************************/

#ifndef HCILP_INCLUDED
#define HCILP_INCLUDED                  TRUE
#endif

/******************************************************************************
**
** BTA
**
******************************************************************************/
 *
 * BTA
 *
 *****************************************************************************/
/* BTA EIR canned UUID list (default is dynamic) */
#ifndef BTA_EIR_CANNED_UUID_LIST
#define BTA_EIR_CANNED_UUID_LIST FALSE
@@ -1511,10 +1511,10 @@ The maximum number of payload octets that the local device can receive in a sing
#endif

/******************************************************************************
**
** Tracing:  Include trace header file here.
**
******************************************************************************/
 *
 * Tracing:  Include trace header file here.
 *
 *****************************************************************************/

/* Enable/disable BTSnoop memory logging */
#ifndef BTSNOOP_MEM
+11 −11
Original line number Diff line number Diff line
@@ -127,17 +127,17 @@ static const char BTE_LOGMSG_MODULE[] = "bte_logmsg_module";
#endif

/******************************************************************************
**
** Trace Levels
**
** The following values may be used for different levels:
**      BT_TRACE_LEVEL_NONE    0        * No trace messages to be generated
**      BT_TRACE_LEVEL_ERROR   1        * Error condition trace messages
**      BT_TRACE_LEVEL_WARNING 2        * Warning condition trace messages
**      BT_TRACE_LEVEL_API     3        * API traces
**      BT_TRACE_LEVEL_EVENT   4        * Debug messages for events
**      BT_TRACE_LEVEL_DEBUG   5        * Debug messages (general)
******************************************************************************/
 *
 * Trace Levels
 *
 * The following values may be used for different levels:
 *      BT_TRACE_LEVEL_NONE    0        * No trace messages to be generated
 *      BT_TRACE_LEVEL_ERROR   1        * Error condition trace messages
 *      BT_TRACE_LEVEL_WARNING 2        * Warning condition trace messages
 *      BT_TRACE_LEVEL_API     3        * API traces
 *      BT_TRACE_LEVEL_EVENT   4        * Debug messages for events
 *      BT_TRACE_LEVEL_DEBUG   5        * Debug messages (general)
 *****************************************************************************/

/* Core Stack default trace levels */
#ifndef HCI_INITIAL_TRACE_LEVEL
+20 −12
Original line number Diff line number Diff line
@@ -33,25 +33,33 @@
extern "C" {
#endif

/* by default on shutdown, baudrate is reset 115kbits. this should NOT be need for platforms
 * that kill BTE driver and remove/reset BT chip
/* By default on shutdown, the baud rate is reset to 115kbits. This should NOT
 * be needed for platforms that kill the BTE driver and remove/reset BT chip.
 */
#ifndef BTE_RESET_BAUD_ON_BT_DISABLE
#define BTE_RESET_BAUD_ON_BT_DISABLE TRUE
#endif

/* Target Modes (based on jumper settings on hardware [see user manual]) */
/* Target Modes (based on jumper settings on hardware [see user manual])
 *                           BTE                  BBY
 *                           J3   J4              SW3-3   SW3-2   SW3-1
 *                          --------------------------------------------
 * BTE_MODE_SERIAL_APP,      OUT  OUT             OFF     OFF     OFF
 * BTE_MODE_APPL,            IN   OUT             OFF     OFF     ON
 * BTE_MODE_RESERVED,        OUT  IN              OFF     ON      OFF
 * BTE_MODE_SAMPLE_APPS,     IN   IN              OFF     ON      ON
 * BTE_MODE_DONGLE,          not yet supported    ON      OFF     OFF
 * BTE_MODE_APPL_PROTOCOL_TRACE,     * this is a fake mode *
 * BTE_MODE_INVALID
 */
enum
{
                            /* BTE                  BBY                     */
                            /* J3   J4              SW3-3   SW3-2   SW3-1   */
                            /* -------------------------------------------- */
    BTE_MODE_SERIAL_APP,    /* OUT  OUT             OFF     OFF     OFF     Sample serial port application      */
    BTE_MODE_APPL,    	    /* IN   OUT             OFF     OFF     ON      Target used with Tester through RPC */
    BTE_MODE_RESERVED,      /* OUT  IN              OFF     ON      OFF     Reserved                            */
    BTE_MODE_SAMPLE_APPS,   /* IN   IN              OFF     ON      ON      Sample applications (ICP/HSP)       */
    BTE_MODE_DONGLE,        /* not yet supported    ON      OFF     OFF     Dongle mode                         */
    BTE_MODE_APPL_PROTOCOL_TRACE, /* this is a fake mode do allow protocol tracing in application without rpc */
    BTE_MODE_SERIAL_APP,    /* Sample serial port application      */
    BTE_MODE_APPL,    	    /* Target used with Tester through RPC */
    BTE_MODE_RESERVED,      /* Reserved                            */
    BTE_MODE_SAMPLE_APPS,   /* Sample applications (ICP/HSP)       */
    BTE_MODE_DONGLE,        /* Dongle mode                         */
    BTE_MODE_APPL_PROTOCOL_TRACE, /* Allow protocol tracing without rpc */
    BTE_MODE_INVALID
};