Bluetooth: Move implementation of hci_driver.h exposed functions

Move implementation of hci_driver.h exposed functions to a common file.
The functions exposed by hci_driver.h header file is implemented in
either hci_core.c, or hci_raw.c. But since these functions would be
identical for both implementations have them in a new file that is
included for both.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-07-24 17:34:32 +02:00 committed by Carles Cufí
commit 73c50dc0bd
4 changed files with 55 additions and 43 deletions

View file

@ -3,7 +3,7 @@
zephyr_library()
zephyr_library_link_libraries(subsys__bluetooth)
zephyr_library_sources_ifdef(CONFIG_BT_HCI_RAW hci_raw.c)
zephyr_library_sources_ifdef(CONFIG_BT_HCI_RAW hci_raw.c hci_common.c)
zephyr_library_sources_ifdef(CONFIG_BT_DEBUG_MONITOR monitor.c)
zephyr_library_sources_ifdef(CONFIG_BT_TINYCRYPT_ECC hci_ecc.c)
zephyr_library_sources_ifdef(CONFIG_BT_A2DP a2dp.c)
@ -30,6 +30,7 @@ if(CONFIG_BT_HCI_HOST)
zephyr_library_sources(
uuid.c
hci_core.c
hci_common.c
)
zephyr_library_sources_ifdef(
CONFIG_BT_HOST_CRYPTO