Code Monkey home page Code Monkey logo

pic24f_btstack's People

Contributors

hrdakinori avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pic24f_btstack's Issues

missing packet_handler() function

MPLAB Xでビルドしようとしたのですが、usb_bt_driver.cでpacket_handler関数が見つからないというエラーが出てしまいました。

"/Applications/microchip/xc16/v1.10/bin/xc16-gcc" ../usb_bt_driver.c -o build/default/production/_ext/1472/usb_bt_driver.o -c -mcpu=24FJ64GB002 -MMD -MF "build/default/production/_ext/1472/usb_bt_driver.o.d" -g -omf=elf -mlarge-code -mlarge-data -O1 -I"../btstack/include" -I"../btstack" -I"../include" -I"../USB" -I"../common" -I".." -I"../btstack/include/btstack" -I"../Include" -I"../Include/USB" -I"../btstack/src" -msmart-io=1 -Wall -msfr-warn=off
../usb_bt_driver.c: In function 'USBHostUSBBTEventHandler':
../usb_bt_driver.c:187:12: warning: implicit declaration of function 'packet_handler'
"/Applications/microchip/xc16/v1.10/bin/xc16-gcc" ../bt_spp.c -o build/default/production/_ext/1472/bt_spp.o -c -mcpu=24FJ64GB002 -MMD -MF "build/default/production/_ext/1472/bt_spp.o.d" -g -omf=elf -mlarge-code -mlarge-data -O1 -I"../btstack/include" -I"../btstack" -I"../include" -I"../USB" -I"../common" -I".." -I"../btstack/include/btstack" -I"../Include" -I"../Include/USB" -I"../btstack/src" -msmart-io=1 -Wall -msfr-warn=off
...snip...
build/default/production/_ext/1472/usb_bt_driver.o(.text+0x370): In function .LSM147': : undefined reference to_packet_handler'

調べてみると、btstackの2013/2/18の修正 r1743 で、
この関数がstaticにされてしまったようです。
"mark hci packet handler as private (static)"
https://code.google.com/p/btstack/source/detail?r=1743

とりあえずbtstack側のstatic宣言を外してコンパイルするとリンクは通りました。
上記経験しましたので念のためお知らせします。既知でしたらすみません。

use

how to used

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.