mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-25 00:02:27 +00:00
also compile example/test.c - not working otherwise
This commit is contained in:
parent
37ac922291
commit
fd7ed8d4e2
@ -1,5 +1,5 @@
|
|||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
SUBDIRS = src
|
SUBDIRS = src example
|
||||||
|
|
||||||
iphone_ip=@IPHONE_IP@
|
iphone_ip=@IPHONE_IP@
|
||||||
install-iphone: src/BTdaemon
|
install-iphone: src/BTdaemon
|
||||||
|
@ -125,5 +125,4 @@ fi
|
|||||||
|
|
||||||
AC_SUBST(IPHONE_IP)
|
AC_SUBST(IPHONE_IP)
|
||||||
AC_SUBST(HAVE_LIBUSB)
|
AC_SUBST(HAVE_LIBUSB)
|
||||||
AC_OUTPUT(Makefile)
|
AC_OUTPUT(Makefile src/Makefile example/Makefile)
|
||||||
AC_OUTPUT(src/Makefile)
|
|
||||||
|
@ -9,18 +9,24 @@
|
|||||||
#include "btstack.h"
|
#include "btstack.h"
|
||||||
|
|
||||||
// init BTstack library
|
// init BTstack library
|
||||||
int bt_open();
|
int bt_open(){
|
||||||
|
}
|
||||||
|
|
||||||
// stop using BTstack library
|
// stop using BTstack library
|
||||||
int bt_close();
|
int bt_close(){
|
||||||
|
}
|
||||||
|
|
||||||
// send hci cmd packet
|
// send hci cmd packet
|
||||||
int hci_send_cmd(hci_cmd_t *cmd, ...);
|
int bt_send_cmd(hci_cmd_t *cmd, ...){
|
||||||
|
}
|
||||||
|
|
||||||
// send hci acl packet
|
// send hci acl packet
|
||||||
int hci_send_acl_packet(uint8_t *packet, int size);
|
int bt_send_acl_packet(uint8_t *packet, int size){
|
||||||
|
}
|
||||||
|
|
||||||
// register packet and event handler
|
// register packet and event handler
|
||||||
void bt_register_event_packet_handler(void (*handler)(uint8_t *packet, int size));
|
void bt_register_event_packet_handler(void (*handler)(uint8_t *packet, int size)){
|
||||||
void bt_register_acl_packet_handler (void (*handler)(uint8_t *packet, int size));
|
}
|
||||||
|
void bt_register_acl_packet_handler (void (*handler)(uint8_t *packet, int size)){
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#include "hci.h"
|
||||||
|
|
||||||
// init BTstack library
|
// init BTstack library
|
||||||
int bt_open();
|
int bt_open();
|
||||||
|
|
||||||
@ -14,10 +17,10 @@ int bt_open();
|
|||||||
int bt_close();
|
int bt_close();
|
||||||
|
|
||||||
// send hci cmd packet
|
// send hci cmd packet
|
||||||
int hci_send_cmd(hci_cmd_t *cmd, ...);
|
int bt_send_cmd(hci_cmd_t *cmd, ...);
|
||||||
|
|
||||||
// send hci acl packet
|
// send hci acl packet
|
||||||
int hci_send_acl_packet(uint8_t *packet, int size);
|
int bt_send_acl_packet(uint8_t *packet, int size);
|
||||||
|
|
||||||
// register packet and event handler
|
// register packet and event handler
|
||||||
void bt_register_event_packet_handler(void (*handler)(uint8_t *packet, int size));
|
void bt_register_event_packet_handler(void (*handler)(uint8_t *packet, int size));
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
* Created by Matthias Ringwald on 5/16/09.
|
* Created by Matthias Ringwald on 5/16/09.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "hci.h"
|
#include "hci.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user