Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring Nordic SDK v15 Update to Master #10666

Merged
merged 74 commits into from
May 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
6bd89e7
Baseline legacy build using 14.2 drivers.
Jun 26, 2018
511f8eb
Mods for baseline 15.0 support
Jun 26, 2018
cd5b451
Bringing in Softdevice but excluding BLE feature and improvements in …
Jul 9, 2018
9ac7fe7
First porting effort covered by JIRA IOTDEV-1572:
Jul 26, 2018
cc54611
Ported analogin and pwm_out for IOTDEV-1573.
Aug 8, 2018
9593a53
Updates to PWM for IOTDEV-1573
Aug 23, 2018
af8d171
serial_api: Fixes to compile with SDK15.0
Aug 19, 2018
3ee440c
serial_api: add changes to port from Softdevice 14.2 to 15.0
Aug 16, 2018
52c6048
Nordic sdk_config: Configure UART instances
Aug 24, 2018
8123b51
serial_api: Fix the interrupt registration for Nordic Serial Device
Aug 24, 2018
38c68e0
Updates for IOTDEV-1575 and nRF52_DK builds
Sep 21, 2018
a1d5a4d
Updates for IOTDEV-1576 (only TRNG API)
Oct 5, 2018
4f9782d
NRF52: spi_api: port from Softdevice 14.2 to 15.0
Aug 14, 2018
976ba7d
NRF52: i2c_api: port from Softdevice 14.2 to 15.0
Aug 13, 2018
d875c2b
NRF: enable PRS (Peripheral Resource Sharing) for NRF52832 and NRF52840
Sep 28, 2018
35c14eb
NRF52832: enable UART
Sep 27, 2018
3175986
nRF52832 needs NRFX_RNG_ENABLED to use the legacy driver
Oct 8, 2018
f795314
nRF52_DK: Use mbed_lib.json to set app_offset (MBED_APP_START)
Oct 16, 2018
6064ef3
NRF52: Fix vector table
Sep 26, 2018
e851061
Updates after rebase with Mbed master (circa OS v5.10.1)
Oct 16, 2018
fa84352
Fix build for nRF51 (fewer common files with nRF52)
Oct 22, 2018
3e3ac27
Remove dead #define PORT_SHIFT
Oct 22, 2018
742d10f
Add missing SoftDevice build support (MBR, NONE, OTA)
Oct 29, 2018
2a968d4
Revert "NRF52: Fix vector table"
Nov 14, 2018
74cb698
Cleanup for feature release
Nov 15, 2018
36c70a1
Enabling NRFX_PPI_ENABLED for serial_api updates
Dec 6, 2018
501000e
Changes required for rebase:
Dec 6, 2018
e9a3ca6
Set the PWM clock prescaler back to default (1MHz clock)
Dec 6, 2018
8eaf87c
NRF52: serial: fix build warnings
Dec 7, 2018
b17601e
NRF52: Cleanup unused code
Dec 7, 2018
2fbc20f
Fix timer1 irq configuration
desmond-blue Dec 13, 2018
b69dc2b
Update BLE SoftDevice from SDK14 to SDK15
desmond-blue Dec 9, 2018
d20ca05
Fix SoftDevice configuration on NRF52_DK
desmond-blue Dec 14, 2018
cf162cd
Remove duplicate file
Dec 18, 2018
bd6edc4
Remove RTC from nRF52840_DK and DELTA_DFCM_NNN50 (was testing)
Dec 18, 2018
f8e2b7e
Update file header at TARGET_NRF52 level
Dec 19, 2018
c048a34
Add BLE feature to mbed_lib.json of SoftDevice
desmond-blue Dec 19, 2018
e8e1ef2
NRF52: reloc_vector_table: check the RTS pin settings in code
Jan 12, 2019
4e8eed0
Fix nrf section iter macro check
desmond-blue Jan 24, 2019
8237229
Rebase to master in preparation for v5.12.0
Mar 4, 2019
2690f0f
Update QSPI in the SDK to support long frame mode
Mar 5, 2019
5c276f2
Fix SOFTDEVICE_NONE builds and clean up
Mar 5, 2019
8550fd0
Fix preprocessor conditionals for AC6 build
Mar 6, 2019
69879bd
Fix dangling #endif from rebase
Mar 7, 2019
3343022
Remove redundant legacy files and definition of PACKED
Mar 14, 2019
b34057f
Fix targets.json for MTB_LAIRD_BL654
Mar 15, 2019
1e8010d
cordi link layer 19.02 sources added
paul-szczepanek-arm Mar 6, 2019
11abc67
cordio LL adaptation and config
paul-szczepanek-arm Mar 6, 2019
900ad78
add doxygen
paul-szczepanek-arm Mar 7, 2019
d09f66b
move config to nordic ll
paul-szczepanek-arm Mar 7, 2019
d1593fe
move nordic ll to target nordic
paul-szczepanek-arm Mar 7, 2019
2232fd0
handle all types
paul-szczepanek-arm Mar 8, 2019
ccddf32
cleanup json
paul-szczepanek-arm Mar 8, 2019
f13e966
translate hci types
paul-szczepanek-arm Mar 8, 2019
8ddaf84
use pal version of load bd address
paul-szczepanek-arm Mar 11, 2019
0de3510
service immediately after sending
paul-szczepanek-arm Mar 11, 2019
96040be
wsf buffer transfers owenrship to controller
paul-szczepanek-arm Mar 12, 2019
5025022
handle extended reset
paul-szczepanek-arm Mar 12, 2019
00bd959
use TIMER2 instead
paul-szczepanek-arm Mar 19, 2019
88d000e
update LL runtime config to new version
paul-szczepanek-arm Mar 28, 2019
7894a93
fix releaseing the WSF msg too early
paul-szczepanek-arm Mar 28, 2019
87f5e1f
review comments addressed
paul-szczepanek-arm Apr 1, 2019
a6f639b
zero copy HCI as a config option
paul-szczepanek-arm Apr 1, 2019
1bbadde
configs in mbed json
paul-szczepanek-arm Apr 2, 2019
e43aa12
removed stray comma
paul-szczepanek-arm Apr 8, 2019
6b705c8
remove usage of gpio and leds from nordic cordio LL as it interferes …
paul-szczepanek-arm Apr 17, 2019
0d1ca86
license updated
paul-szczepanek-arm Apr 18, 2019
ac66a00
moved config to target nordic
paul-szczepanek-arm May 10, 2019
c9f8ca4
config now applies to MCU_840 instead of only DK
paul-szczepanek-arm May 10, 2019
16bb7e5
fix merge conflixt
paul-szczepanek-arm May 10, 2019
c050faf
fix typo
paul-szczepanek-arm May 13, 2019
41e0227
config fixed for LL hci
paul-szczepanek-arm May 13, 2019
4d23666
ifdef 52840 crypto
paul-szczepanek-arm May 13, 2019
9bf2d0a
cryptocell acceleration as an option
paul-szczepanek-arm May 16, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,9 @@ void CordioHCIDriver::handle_reset_sequence(uint8_t *pMsg)
} break;

case HCI_OPCODE_LE_WRITE_DEF_DATA_LEN:
/* send next command in sequence */
HciReadLocalVerInfoCmd();
break;

case HCI_OPCODE_READ_LOCAL_VER_INFO:
if (hciCoreCb.extResetSeq) {
/* send first extended command */
(*hciCoreCb.extResetSeq)(pMsg, opcode);
HciReadLocalVerInfoCmd();
} else {
/* initialize extended parameters */
hciCoreCb.maxAdvDataLen = 0;
Expand All @@ -242,6 +237,7 @@ void CordioHCIDriver::handle_reset_sequence(uint8_t *pMsg)
}
break;

case HCI_OPCODE_READ_LOCAL_VER_INFO:
case HCI_OPCODE_LE_READ_MAX_ADV_DATA_LEN:
case HCI_OPCODE_LE_READ_NUM_SUP_ADV_SETS:
case HCI_OPCODE_LE_READ_PER_ADV_LIST_SIZE:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class CordioHCITransportDriver {
* packet, ACL packet or EVT packet. Depending on the type of transport
* it can prefix the packet itself.
* @param len Number of bytes to transmit.
* @param pData pointer to the data to transmit.
* @param pData Pointer to the data to transmit. This is an WSF buffer
* and if CORDIO_ZERO_COPY_HCI is enabled we receive ownership.
*
* @return The number of bytes which have been transmited.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ void hciTrSendAclData(void *pContext, uint8_t *pData)
/* transmit ACL header and data */
if (hciDrvWrite(HCI_ACL_TYPE, len, pData) == len)
{
/* free buffer */
hciCoreTxAclComplete(pContext, pData);
#if CORDIO_ZERO_COPY_HCI
/* pData is not freed as the hciDrvWrite took ownership of the WSF buffer */
#else
/* free buffer */
WsfMsgFree(pData);
#endif // CORDIO_ZERO_COPY_HCI
}
}

Expand All @@ -80,7 +84,7 @@ void hciTrSendAclData(void *pContext, uint8_t *pData)
*
* \brief Send a complete HCI command to the transport.
*
* \param pData WSF msg buffer containing an HCI command.
* \param pData WSF msg buffer containing an HCI command. WSF buffer ownership is released by this function.
*
* \return None.
*/
Expand All @@ -98,8 +102,12 @@ void hciTrSendCmd(uint8_t *pData)
/* transmit ACL header and data */
if (hciDrvWrite(HCI_CMD_TYPE, len, pData) == len)
{
/* free buffer */
WsfMsgFree(pData);
#if CORDIO_ZERO_COPY_HCI
/* pData is not freed as the hciDrvWrite took ownership of the WSF buffer */
#else
/* free buffer */
WsfMsgFree(pData);
#endif // CORDIO_ZERO_COPY_HCI
}
}

Expand Down
55 changes: 55 additions & 0 deletions features/FEATURE_BLE/targets/TARGET_CORDIO_LL/mbed_lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "cordio-ll",
"config": {
"max-advertising-sets": {
"help": "Maximum number of advertising sets.",
"value": 4
},
"max-advertising-reports": {
"help": "Maximum number of pending legacy or extended advertising reports.",
"value": 8
},
"default-extended-advertising-fragmentation-size": {
"help": "Default extended advertising data fragmentation size.",
"value": 64
},
"max-scan-request-events": {
"help": "Maximum scan request received events.",
"value": 4
},
"phy-2m-support": {
"help": "2M PHY supported.",
"value": 1
},
"rx-buffers": {
"help": "Default number of receive buffers.",
"value": 8
},
"phy-coded-support": {
"help": "Coded PHY supported.",
"value": 0
},
"extended-advertising-size": {
"help": "Maximum extended advertising data (and scan data response) size",
"value": 128
},
"max-acl-size": {
"help": "Maximum ACL buffer size",
"value": 256
},
"tx-buffers": {
"help": "Default number of send buffers",
"value": 8
},
"handle-vendor-specific-hci-commands": {
"help": "Handle VS HCI commands. Valid values are 0 (ignore) and 1 (handle).",
"value": 0,
"macro_name": "LHCI_ENABLE_VS"
},
"uart-hci": {
"help": "Does the board have a UART HCI. Valid values are 0 and 1 (must provide UART through PAL).",
"value": 0,
"macro_name": "CHCI_TR_UART"
}
}
}
Loading