fanoush,
Ty for response, i needed this...
what do you mean by "linux org"? The kernel is officially maintained here
https://github.com/raspberrypi/linux and you can browse source for drivers you are interested in. However both for bluetooth and wi-fi you need lot of generic code implementing full bluetooth or wi-fi stack.
Thanks for clarification, and i just searched in thsi githubs, but understand how works, is hard... the code have many calls for functions, and many code part's, i dont understand how works (have functions implementeds with parameters to be passed, but when call this, is withou parameter, and i cant found the same function overloaded without parameter, maybe some fuctionality that i just understand).
That is lot of work and quite hard to do in bare metal so even e.g. Ultibo or Risc OS don't have this working. With arduino etc it is easier because modules available have the full stack implemented inside it and offer just simple interface (e.g. AT commands). You don't have this with HW in Pi.
No, arduino was a example of documentation and samples, i know that have all implemented, but microchip, for sample, you know, nothing was implemented previous, all is a basic level implementation (like c18 compiler), and i demonstrate a documentation level (many and much easy to understand) e examples (have instalation of the examples)...
But what i need is, for example: BT reset, send {0x01, 0x03, 0x0C, 0x00) and receive {xx, xx, xx, xx, xx, xx}... turn on BT send {xx, xx, xx, xx, xx} and receive response {xx, xx, xx, xx}.. but in linux coded, i do not see this... i see for example, HCI_RESET = 0x03, but what is 0x01 ? What is 0x0C ? the 0x00 i thinks is final transmission on uart, i cant found where he send 0x01 (start transmission i think ?) , 0x03 (HCI_RESET), 0x0c (?), 0x00..
I hope made me understand, and please, sorry for my English, it's terrible.
Ty a lot
Moacir Jr.