add missing includes/OPCODE macro

This commit is contained in:
matthias.ringwald@gmail.com 2015-02-10 22:33:22 +00:00
parent f456b2d087
commit 7a14d0a5eb

View File

@ -50,6 +50,11 @@
#include <stdio.h>
#include <string.h> /* memcpy */
#include "hci.h"
// should go to some common place
#define OPCODE(ogf, ocf) (ocf | ogf << 10)
static int em9301_set_bd_addr_cmd(void * config, bd_addr_t addr, uint8_t *hci_cmd_buffer){
bt_store_16(hci_cmd_buffer, 0, OPCODE(OGF_VENDOR, 0x02));
hci_cmd_buffer[2] = 0x06;