diff --git a/example/embedded/classic_test.c b/example/embedded/classic_test.c index b00c0464b..6f11f0958 100644 --- a/example/embedded/classic_test.c +++ b/example/embedded/classic_test.c @@ -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; diff --git a/example/embedded/hsp_ag_test.c b/example/embedded/hsp_ag_test.c index 830ab0544..3e8f70b98 100644 --- a/example/embedded/hsp_ag_test.c +++ b/example/embedded/hsp_ag_test.c @@ -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"; diff --git a/example/embedded/hsp_hs_test.c b/example/embedded/hsp_hs_test.c index 19eef7908..e293882b0 100644 --- a/example/embedded/hsp_hs_test.c +++ b/example/embedded/hsp_hs_test.c @@ -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"; diff --git a/example/embedded/spp_and_le_counter.c b/example/embedded/spp_and_le_counter.c index 1a8e6e356..b9dd70717 100644 --- a/example/embedded/spp_and_le_counter.c +++ b/example/embedded/spp_and_le_counter.c @@ -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 diff --git a/example/embedded/spp_counter.c b/example/embedded/spp_counter.c index 146362676..8e8438239 100644 --- a/example/embedded/spp_counter.c +++ b/example/embedded/spp_counter.c @@ -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. diff --git a/example/embedded/spp_flowcontrol.c b/example/embedded/spp_flowcontrol.c index 2ec39f8e7..bc46eeb66 100644 --- a/example/embedded/spp_flowcontrol.c +++ b/example/embedded/spp_flowcontrol.c @@ -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 *