Bluetooth: controller: Prepare to introduce LL split architecture
Preparation to introduce the Upper Link Layer (ULL) and Lower Link Layer (LLL) split architecture. - Move SoC dependent HAL to vendor specific folder. - Preparation to split data structures into ULL and LLL types. - Added more role and state conditional compilations. - Added some work-in-progress implementation of advertising extensions, will be used as inspiration in the new split architecture work. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
d57a9a648b
commit
87fe440f01
55 changed files with 2457 additions and 1437 deletions
|
@ -10,12 +10,17 @@
|
|||
#include <zephyr/types.h>
|
||||
#include <bluetooth/hci.h>
|
||||
#include <bluetooth/controller.h>
|
||||
#include <misc/slist.h>
|
||||
|
||||
#include "util/util.h"
|
||||
#include "util/memq.h"
|
||||
|
||||
#include "ll_sw/pdu.h"
|
||||
#include "ll_sw/ctrl.h"
|
||||
#include "pdu.h"
|
||||
#include "lll.h"
|
||||
|
||||
#if defined(CONFIG_BT_LL_SW)
|
||||
#include <misc/slist.h>
|
||||
#include "ctrl.h"
|
||||
#endif
|
||||
|
||||
static u8_t pub_addr[BDADDR_SIZE];
|
||||
static u8_t rnd_addr[BDADDR_SIZE];
|
||||
|
@ -43,8 +48,13 @@ u8_t *ll_addr_get(u8_t addr_type, u8_t *bdaddr)
|
|||
|
||||
u32_t ll_addr_set(u8_t addr_type, u8_t const *const bdaddr)
|
||||
{
|
||||
if (ll_adv_is_enabled() ||
|
||||
(ll_scan_is_enabled() & (BIT(1) | BIT(2)))) {
|
||||
if (IS_ENABLED(CONFIG_BT_BROADCASTER) &&
|
||||
ll_adv_is_enabled(0)) {
|
||||
return BT_HCI_ERR_CMD_DISALLOWED;
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_OBSERVER) &&
|
||||
(ll_scan_is_enabled(0) & (BIT(1) | BIT(2)))) {
|
||||
return BT_HCI_ERR_CMD_DISALLOWED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue