mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-26 11:37:10 +00:00
use utils.c
This commit is contained in:
parent
6e3802d535
commit
41f83d2fa0
@ -38,18 +38,11 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "att.h"
|
||||
|
||||
// from src/utils.
|
||||
#define READ_BT_16( buffer, pos) ( ((uint16_t) buffer[pos]) | (((uint16_t)buffer[pos+1]) << 8))
|
||||
#include <btstack/utils.h>
|
||||
|
||||
// Buetooth Base UUID 00000000-0000-1000-8000-00805F9B34FB in little endian
|
||||
static const uint8_t bluetooth_base_uuid[] = { 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
|
||||
static void bt_store_16(uint8_t *buffer, uint16_t pos, uint16_t value){
|
||||
buffer[pos++] = value;
|
||||
buffer[pos++] = value >> 8;
|
||||
}
|
||||
|
||||
static void hexdump2(void const *data, int size){
|
||||
int i;
|
||||
for (i=0; i<size;i++){
|
||||
|
Loading…
x
Reference in New Issue
Block a user