Bluetooth: Controller: Add initial HCI implementation
For the Link Layer to be able to communicate with the rest of the BLE stack in Zephyr, this barebones HCI controller implementation includes an initial version of the fundamental commands and events required. Jira: ZEP-702 Origin: Original Change-Id: I38bc9dae34e7075ab8b8178fd6b6659e2dec53b0 Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no> Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
0d3d1d5c83
commit
c160a0548d
3 changed files with 2097 additions and 0 deletions
|
@ -10,3 +10,4 @@ obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hal/rtc.o
|
|||
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hal/rand.o
|
||||
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hal/ecb.o
|
||||
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hal/radio.o
|
||||
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hci/hci.o
|
||||
|
|
2070
drivers/bluetooth/controller/hci/hci.c
Normal file
2070
drivers/bluetooth/controller/hci/hci.c
Normal file
File diff suppressed because it is too large
Load diff
26
drivers/bluetooth/controller/hci/hci.h
Normal file
26
drivers/bluetooth/controller/hci/hci.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Nordic Semiconductor ASA
|
||||
* Copyright (c) 2016 Vinayak Kariappa Chettimada
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _HCI_H_
|
||||
#define _HCI_H_
|
||||
|
||||
void hci_handle(uint8_t x, uint8_t *len, uint8_t **out);
|
||||
void hci_encode(uint8_t *buf, uint8_t *len, uint8_t **out);
|
||||
void hci_encode_num_cmplt(uint16_t instance, uint8_t num, uint8_t *len,
|
||||
uint8_t **out);
|
||||
|
||||
#endif /* _HCI_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue