File tree Expand file tree Collapse file tree 4 files changed +77
-0
lines changed Expand file tree Collapse file tree 4 files changed +77
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+
20
+ #ifndef H_BLE_LL_PLNA_
21
+ #define H_BLE_LL_PLNA_
22
+
23
+ #ifdef __cplusplus
24
+ extern "C" {
25
+ #endif
26
+
27
+ #include "syscfg/syscfg.h"
28
+
29
+ #if MYNEWT_VAL (BLE_LL_PA )
30
+ void ble_ll_plna_pa_init (void );
31
+ void ble_ll_plna_pa_enable (void );
32
+ void ble_ll_plna_pa_disable (void );
33
+ #endif
34
+
35
+ #if MYNEWT_VAL (BLE_LL_LNA )
36
+ void ble_ll_plna_lna_init (void );
37
+ void ble_ll_plna_lna_enable (void );
38
+ void ble_ll_plna_lna_disable (void );
39
+ #endif
40
+
41
+ #ifdef __cplusplus
42
+ }
43
+ #endif
44
+
45
+ #endif /* H_BLE_LL_PLNA_ */
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ pkg.req_apis:
29
29
- ble_driver
30
30
- ble_transport
31
31
- stats
32
+ pkg.req_apis.BLE_LL_PA :
33
+ - ble_ll_pa
34
+ pkg.req_apis.BLE_LL_LNA :
35
+ - ble_ll_lna
32
36
33
37
pkg.deps :
34
38
- " @apache-mynewt-core/kernel/os"
Original file line number Diff line number Diff line change 44
44
#include "controller/ble_ll_rfmgmt.h"
45
45
#include "controller/ble_ll_trace.h"
46
46
#include "controller/ble_ll_sync.h"
47
+ #include "controller/ble_ll_plna.h"
47
48
#include "ble_ll_conn_priv.h"
48
49
#include "ble_ll_hci_priv.h"
49
50
#include "ble_ll_priv.h"
@@ -1656,6 +1657,14 @@ ble_ll_reset(void)
1656
1657
ble_ll_resolv_list_reset ();
1657
1658
#endif
1658
1659
1660
+
1661
+ #if MYNEWT_VAL (BLE_LL_PA )
1662
+ ble_ll_plna_pa_init ();
1663
+ #endif
1664
+ #if MYNEWT_VAL (BLE_LL_LNA )
1665
+ ble_ll_plna_lna_init ();
1666
+ #endif
1667
+
1659
1668
/* Re-initialize the PHY */
1660
1669
rc = ble_phy_init ();
1661
1670
Original file line number Diff line number Diff line change @@ -375,6 +375,23 @@ syscfg.defs:
375
375
line number where assertion occured.
376
376
value : 0
377
377
378
+ BLE_LL_PA :
379
+ description : Enable PA support
380
+ value : 0
381
+ BLE_LL_PA_GPIO :
382
+ description : >
383
+ GPIO pin number to control PA. Pin is set to high state when PA
384
+ should be enabled.
385
+ value : -1
386
+ BLE_LL_LNA :
387
+ description : Enable LNA support
388
+ value : 0
389
+ BLE_LL_LNA_GPIO :
390
+ description : >
391
+ GPIO pin number to control LNA. Pin is set to high state when LNA
392
+ should be enabled.
393
+ value : -1
394
+
378
395
BLE_LL_SYSINIT_STAGE :
379
396
description : >
380
397
Sysinit stage for the NimBLE controller.
@@ -499,3 +516,5 @@ syscfg.vals.!BLE_HOST:
499
516
syscfg.restrictions :
500
517
- OS_CPUTIME_FREQ == 32768
501
518
- BLE_LL_PUBLIC_DEV_ADDR <= 0xffffffffffff
519
+ - BLE_LL_PA == 0 || BLE_LL_PA_GPIO >= 0
520
+ - BLE_LL_LNA == 0 || BLE_LL_LNA_GPIO >= 0
You can’t perform that action at this time.
0 commit comments