Skip to content
Permalink
Browse files

[nrf52840] radio: ADV_SCHED_CFG_IMPROVED is no longer available in So…

…ftDevice S140 7.0.0
  • Loading branch information...
avtolstoy committed Jul 11, 2019
1 parent 1134c15 commit 1bb328f93b7feba919e81f63ebe5a9745811239a
@@ -82,6 +82,20 @@ _Pragma("GCC diagnostic pop")
*/
#define BLE_ADV_SCHED_CFG_SUPPORT_MIN_SD_VERSION (6001001)

/*
* @brief Defines the maximum version of the SoftDevice that supports configuration of BLE advertising
* role scheduling.
*
* Starting with SoftDevice S140 7.0.0 (7000000) this option is no longer valid and is
* enabled by default. The full version number for the SoftDevice binary is a decimal number in
* the form Mmmmbbb, where:
* - M is major version (one or more digits)
* - mmm is minor version (three digits)
* - bbb is bugfix version (three digits).
*/

#define BLE_ADV_SCHED_CFG_SUPPORT_MAX_SD_VERSION (6999999)

/*
* @brief Defines the minimum version of the SoftDevice that correctly handles timeslot releasing.
*
@@ -715,7 +729,8 @@ void nrf_raal_init(void)

#if (SD_VERSION >= BLE_ADV_SCHED_CFG_SUPPORT_MIN_SD_VERSION)
// Ensure that correct SoftDevice version is flashed.
if (SD_VERSION_GET(MBR_SIZE) >= BLE_ADV_SCHED_CFG_SUPPORT_MIN_SD_VERSION)
if (SD_VERSION_GET(MBR_SIZE) >= BLE_ADV_SCHED_CFG_SUPPORT_MIN_SD_VERSION &&
SD_VERSION_GET(MBR_SIZE) <= BLE_ADV_SCHED_CFG_SUPPORT_MAX_SD_VERSION)
{
// Use improved Advertiser Role Scheduling configuration.
ble_opt_t opt;

0 comments on commit 1bb328f

Please sign in to comment.
You can’t perform that action at this time.