diff --git a/Makefile.iphone b/Makefile.iphone index 46a04d4fa..475b7c4ad 100644 --- a/Makefile.iphone +++ b/Makefile.iphone @@ -1,11 +1,14 @@ NAME = BTdaemon +# set IP address of your phone. this is using USB and Internet Tethering +IPHONE = 192.168.20.1 + SRCDIR = src VPATH = src # These paths must be changed to match the compilation environment DEVELOPER_PATH = /Developer/Platforms/iPhoneOS.platform/Developer -SDK_VERSION = 2.1 +SDK_VERSION = 2.0 SDK_PATH = $(DEVELOPER_PATH)/SDKs/iPhoneOS$(SDK_VERSION).sdk GCC_VERSION = 4.0.1 @@ -54,7 +57,7 @@ $(SRCS): $(HEADERS) $(NAME): $(SRCS) $(CC) $(CFLAGS) -o $(NAME) $(filter %.mm,$^) $(filter %.m,$^) $(filter %.c,$^) $(LDFLAGS) export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate ; ldid -S $(NAME) - ssh root@192.168.3.102 rm -f BTdaemon - scp $(NAME) root@192.168.3.102:/var/mobile + ssh mobile@$(IPHONE) rm -f /var/mobile/$(NAME) + scp $(NAME) mobile@$(IPHONE):/var/mobile .PHONY: all clean diff --git a/TODO.txt b/TODO.txt index d6fe5182a..2c54ca240 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,5 +1,17 @@ /* new todo file for BTstack */ +NEXT: +- implement client BT API in btstack.h: prefix all functions by bt_$PROTOCOL_* + - client/server part using unix domain sockets (portable and fast) +- generalize run_loop_add/remove into linked_list_add/remove +- use linked_list for: + - run loop + - event handler + - data handler +- keep track of HCI state (links, inquiries, acl flow control) in linked list +- implement L2CAP state machine +- implement PAN + IMPROVE - make data_source_t opaque: data_source_set_fd, data_source_set_cb - implement TimerSource