mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
aligen SDP record item to 4 byte boundary
This commit is contained in:
parent
f90fa293e1
commit
021abac4f8
@ -96,8 +96,8 @@ static uint16_t local_cid;
|
||||
#define RFCOMM_SERVER_CHANNEL 1
|
||||
#define HEARTBEAT_PERIOD_MS 1000
|
||||
static uint16_t rfcomm_channel_id;
|
||||
static uint8_t spp_service_buffer[150];
|
||||
static uint8_t dummy_service_buffer[150];
|
||||
static uint32_t spp_service_buffer[150/4]; // implicit alignment to 4-byte memory address
|
||||
static uint32_t dummy_service_buffer[150/4]; // implicit alignment to 4-byte memory address
|
||||
static uint8_t dummy_uuid128[] = { 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1};
|
||||
static uint16_t mtu;
|
||||
|
||||
|
@ -67,7 +67,7 @@
|
||||
#include "hsp_ag.h"
|
||||
#include "stdin_support.h"
|
||||
|
||||
static uint8_t hsp_service_buffer[150];
|
||||
static uint32_t hsp_service_buffer[150/4]; // implicit alignment to 4-byte memory address
|
||||
static uint8_t rfcomm_channel_nr = 1;
|
||||
|
||||
static char hsp_ag_service_name[] = "Audio Gateway Test";
|
||||
|
@ -68,7 +68,7 @@
|
||||
#include "debug.h"
|
||||
#include "hsp_hs.h"
|
||||
|
||||
const uint8_t hsp_service_buffer[150];
|
||||
const uint32_t hsp_service_buffer[150/4]; // implicit alignment to 4-byte memory address
|
||||
const uint8_t rfcomm_channel_nr = 1;
|
||||
const char hsp_hs_service_name[] = "Headset Test";
|
||||
|
||||
|
@ -79,7 +79,7 @@
|
||||
#define HEARTBEAT_PERIOD_MS 1000
|
||||
|
||||
static uint16_t rfcomm_channel_id;
|
||||
static uint8_t spp_service_buffer[150];
|
||||
static uint32_t spp_service_buffer[150/4]; // implicit alignment to 4-byte memory address
|
||||
static int le_notification_enabled;
|
||||
|
||||
// THE Couner
|
||||
|
@ -71,11 +71,11 @@
|
||||
static void packet_handler (void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
|
||||
|
||||
static uint16_t rfcomm_channel_id;
|
||||
static uint8_t spp_service_buffer[150];
|
||||
static uint32_t spp_service_buffer[150/4]; // implicit alignment to 4-byte memory address
|
||||
|
||||
|
||||
/* @section SPP Service Setup
|
||||
*
|
||||
*s
|
||||
* @text To provide an SPP service, the L2CAP, RFCOMM, and SDP protocol layers
|
||||
* are required. After setting up an RFCOMM service with channel nubmer
|
||||
* RFCOMM_SERVER_CHANNEL, an SDP record is created and registered with the SDP server.
|
||||
|
@ -67,7 +67,7 @@ static void packet_handler (void * connection, uint8_t packet_type, uint16_t cha
|
||||
static uint8_t rfcomm_channel_nr = 1;
|
||||
static uint16_t rfcomm_channel_id;
|
||||
static uint8_t rfcomm_send_credit = 0;
|
||||
static uint8_t spp_service_buffer[150];
|
||||
static uint32_t spp_service_buffer[150/4]; // implicit alignment to 4-byte memory address
|
||||
|
||||
/* @section SPP Service Setup
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user