Skip to content

Release candidate for mbed-os-5.13.4 #11308

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

Merged
merged 83 commits into from
Aug 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
0eddd52
Add Nuvoton M261 sub-family
cyliangtw Aug 6, 2019
378a702
Define I²C related pin names for the L-Tek FF-LPC546XX target
drauschenbach Jul 27, 2019
be76717
Add Arduino NANO33BLE
facchinm Jul 2, 2019
9238e98
Relax us ticker frequency requirement.
mprse Aug 2, 2019
93fe901
tests-mbed_hal-us_ticker: adapt to the new requirements (relax us tic…
mprse Aug 2, 2019
0b2b4ca
Fix inclusion of test related directories by build tool
hugueskamba Aug 5, 2019
318dff4
Do not ignore `features/frameworks/unity/` as it is needed by GreenTe…
hugueskamba Aug 6, 2019
c82cc8f
tweaked overflow_protect() lp_ticker()
Tharazi97 Aug 1, 2019
0a50a4e
tweak overflow_protect() common_tickers()
Tharazi97 Aug 2, 2019
47b63e9
__cplusplus guard fixed pwmout_device.h for STM32 families
LMESTM Aug 9, 2019
31e2356
FATFileSystem::stat() enabled for all compilers
michalpasztamobica Aug 9, 2019
6b47452
Fix mbedmicro-rtos-mbed-systimer/Wake up from deep sleep failing
ccli8 Jul 5, 2019
c68bd37
Python3 fixes
Aug 15, 2019
0270071
Enlarge LPTICKER_DELAY_TICKS for safe
ccli8 Jul 9, 2019
555f865
tweak atomic_test timeout
Tharazi97 Aug 7, 2019
ff08d50
Python3 fixes
Aug 16, 2019
fdbbf7b
fix recursive call
paul-szczepanek-arm Aug 14, 2019
9dc59c4
Allows having KVStore in internal and update image in external flash
Aug 5, 2019
9e6e442
changes the default TDBStore location
Aug 15, 2019
42c4d84
Add CC3220SF_Launchxl to Mbed OS
linlingao Jul 17, 2019
e628e5a
Added CC3220 related changes to tools
linlingao Jul 17, 2019
2334d5a
Added missing pinmap definitions. Fixed target JSON config to avoid t…
linlingao Jul 23, 2019
a968c04
Implement PWMOUT
linlingao Jul 30, 2019
4b32d29
Fix a build break with ARM compiler
linlingao Jul 31, 2019
acd1d51
Cosmetic changes to incorporate review feedback
linlingao Aug 14, 2019
918519f
Added new features to TMPM46B
Jul 29, 2019
ed8fc97
Fix ANALOGIN support for LPC55S69
mmahadevan108 Jul 18, 2019
6875a73
TLSSocketWrapper::recvfrom sets SocketAddress output variable
Aug 1, 2019
6cb405d
tweak watchdog kick reset test Change the value of KICK_ADVANCE_MS so…
Tharazi97 Aug 6, 2019
5180bfc
Fix kvstore-static_tests failing with OOM
ccli8 Aug 15, 2019
fb10957
MIMXRT1050_EVK: Add TRNG support
mmahadevan108 Sep 27, 2018
06342e4
handle early termination of ad struct
paul-szczepanek-arm Aug 13, 2019
ac8e3da
LPC1768 WDT implementation
chrissnow Aug 13, 2019
a803a4d
LPC1768 Reset Reason implementation
chrissnow Aug 14, 2019
f077e99
Enable WATCHDOG and RESET_REASON for other LPC1768 targets
chrissnow Aug 14, 2019
4fc9190
SPDX identifier and license amended
chrissnow Aug 19, 2019
a94c622
Remove SERIAL_FC from target.json on TT_M3HQ
Tharazi97 Aug 16, 2019
08ffeba
fix TT_M3HQ build problem with i2c
Tharazi97 Aug 16, 2019
aabd531
Fix TT_M3HQ build problem with SPI
Tharazi97 Aug 16, 2019
01a88ac
LoRaWAN: Terminate RX when receiving uplink messages
Aug 16, 2019
73d658d
Updated nvram image for target CY8CMOD-062S2-43012
cy-vaira Aug 19, 2019
7ea8e0e
Add Unittest equeue tests
Tharazi97 Jul 18, 2019
9cd2473
Tweak STM watchdog implementation
Tharazi97 Aug 14, 2019
26fd68a
add nonscannable connectable type
paul-szczepanek-arm Aug 12, 2019
4572cf1
add comments
paul-szczepanek-arm Aug 14, 2019
5edea42
Greentea testing wifi connect nonblocked
Aug 9, 2019
d7b0d23
Add EMAC support for NUCLEO_H743ZI
VVESTM Aug 6, 2019
fd70de0
STM32H7 : update linker script files to use right location for lwip_r…
VVESTM Aug 20, 2019
f8b60df
lwip: STM32H7: specify heap location
VVESTM Aug 20, 2019
e7716ae
Move stm32xx_emac_config.h to family specific folder
VVESTM Aug 21, 2019
aaf7a13
NXP: Enable MBED_TICKLESS on various NXP platforms
mmahadevan108 Jun 7, 2019
b31be14
MCUXpresso: Update Kinetis Sleep implementation
mmahadevan108 Aug 1, 2019
c7ee9fa
MCUXpresso: Updated SMC SDK driver
mmahadevan108 Aug 1, 2019
43dc222
MCUXpresso: Provide an API to wait till TX complete
mmahadevan108 Aug 1, 2019
c32f955
MCUXpresso: Update ENET drivers to not enter deep sleep when active
mmahadevan108 Aug 2, 2019
37909eb
MCUXpresso: Update KW41 nanostack drivers to not enter deep sleep whe…
mmahadevan108 Aug 2, 2019
d079914
K64F: Update SPI aynchronous API for tickless implementation
mmahadevan108 Aug 2, 2019
4826098
K64F: Update UART aynchronous API for tickless implementation
mmahadevan108 Aug 12, 2019
c5000e4
Update mbed-coap to version 4.8.1
Aug 21, 2019
0eaf1c6
MCUXpresso: Add TICKLESS support for LPC platforms
mmahadevan108 Aug 17, 2019
3b808a5
corrected the Callback function call in attach, minor type in the USB…
ryanvesdemc Aug 19, 2019
95b4c7c
NXP MCUXpresso: optimize us_ticker for LPC platforms
mmahadevan108 Aug 19, 2019
02822d3
Fix Coverity uninitialized pointer field Thread.h
Tharazi97 Aug 21, 2019
6fb66f7
K22: Add USBDEVICE support
mmahadevan108 Aug 20, 2019
a59ad17
Tweak stm_spi_api Coverity issue.
Tharazi97 Aug 20, 2019
e78399d
K22F: Add FlashIAP for storage
mmahadevan108 Aug 21, 2019
53153ff
Make use of the other 32K of RAM if not used by libraries, least prio…
chrissnow Aug 13, 2019
d66621e
remove CAN section form .ANY
chrissnow Aug 13, 2019
e5df7ff
hal fhss timer: removed unnecessary and potentially unsafe memset
Aug 16, 2019
7125683
hal fhss timer: all static functions inside anonymous namespace
Aug 19, 2019
f2c0a24
FATFS - Fix copyright year
Aug 19, 2019
33e9711
IAR / FATFS - Pe029 error
Aug 19, 2019
6b846f8
MCUXpresso: Update Kinetis DSPI SDK drivers
mmahadevan108 Aug 16, 2019
5691fc3
MCUXpresso: Update Kinetis SPI SDK drivers
mmahadevan108 Aug 16, 2019
cc70640
MCUXpresso: Use SDK API for spi_master_block_write
mmahadevan108 Aug 16, 2019
8022ca9
MCUXpresso: Update SDK EDMA driver
mmahadevan108 Aug 21, 2019
eda75fd
MCUXpresso: Update I2C SDK driver
mmahadevan108 Aug 21, 2019
1d9b067
MCUXpresso: Update the SDK LPUART drivers
mmahadevan108 Aug 22, 2019
fddc2b1
MCUXpresso: Update EDMA drivers to fix warnings
mmahadevan108 Aug 22, 2019
5fa34b3
Update Mbed version block
adbridge Aug 23, 2019
d81b1cf
Cellular: Support Riot Micro cellular device
Jul 29, 2019
42db954
Add Riot Micro cellular module targets
Jul 29, 2019
75ca176
Revert "Add Unittest equeue tests"
adbridge Aug 23, 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
  •  
  •  
  •  
16 changes: 15 additions & 1 deletion TESTS/mbed_drivers/watchdog_reset/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,21 @@
#include "mbed.h"

#define TIMEOUT_MS 100UL
#define KICK_ADVANCE_MS 10UL

/* This value is used to calculate the time to kick the watchdog.
* Given the watchdog timeout is set to TIMEOUT_MS, the kick will be performed
* with a delay of (TIMEOUT_MS - KICK_ADVANCE_MS), after the init.
*
* It is common for the watchdog peripheral to use a low precision clock source,
* e.g. the LSI RC acts as a clock source for the IWDG on ST targets.
* According to the ST spec, the 37 kHz LSI is guaranteed to have a frequency
* around 37-38 kHz, but the actual frequency range guaranteed by the production
* tests is 26 kHz up to 56 kHz.
* Bearing that in mind, a 100 ms timeout value may actually last as long as 142 ms
* and as short as 66 ms.
* The value of 35 ms is used to cover the worst case scenario (66 ms).
*/
#define KICK_ADVANCE_MS 35UL

#define MSG_VALUE_DUMMY "0"
#define CASE_DATA_INVALID 0xffffffffUL
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbed_hal/common_tickers/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void overflow_protect()
return;
}

while (intf->read() > ticks_now);
while (intf->read() >= ticks_now);
}

void ticker_event_handler_stub(const ticker_data_t *const ticker)
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbed_hal/lp_ticker/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void overflow_protect()
return;
}

while (lp_ticker_read() > ticks_now);
while (lp_ticker_read() >= ticks_now);
}

void ticker_event_handler_stub(const ticker_data_t *const ticker)
Expand Down
12 changes: 11 additions & 1 deletion TESTS/mbed_hal/us_ticker/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,17 @@ void us_ticker_info_test()
const ticker_info_t *p_ticker_info = us_ticker_get_info();

TEST_ASSERT(p_ticker_info->frequency >= 250000);
TEST_ASSERT(p_ticker_info->frequency <= 8000000);

switch (p_ticker_info->bits) {
case 32:
TEST_ASSERT(p_ticker_info->frequency <= 100000000);
break;

default:
TEST_ASSERT(p_ticker_info->frequency <= 8000000);
break;
}

TEST_ASSERT(p_ticker_info->bits >= 16);

#ifdef US_TICKER_PERIOD_NUM
Expand Down
5 changes: 4 additions & 1 deletion TESTS/mbed_hal/us_ticker/us_ticker_api_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ extern "C" {
*
* Given ticker is available.
* When ticker information data is obtained.
* Then ticker information indicate that frequency between 250KHz and 8MHz and the counter is at least 16 bits wide.
* Then ticker information indicate that:
* - counter frequency is between 250KHz and 8MHz for counters which are less than 32 bits wide
* - counter frequency is up to 100MHz for counters which are 32 bits wide
* - the counter is at least 16 bits wide.
*/
void us_ticker_info_test(void);

Expand Down
16 changes: 15 additions & 1 deletion TESTS/mbed_hal/watchdog_reset/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,21 @@
#include "mbed.h"

#define TIMEOUT_MS 100UL
#define KICK_ADVANCE_MS 10UL

/* This value is used to calculate the time to kick the watchdog.
* Given the watchdog timeout is set to TIMEOUT_MS, the kick will be performed
* with a delay of (TIMEOUT_MS - KICK_ADVANCE_MS), after the init.
*
* It is common for the watchdog peripheral to use a low precision clock source,
* e.g. the LSI RC acts as a clock source for the IWDG on ST targets.
* According to the ST spec, the 37 kHz LSI is guaranteed to have a frequency
* around 37-38 kHz, but the actual frequency range guaranteed by the production
* tests is 26 kHz up to 56 kHz.
* Bearing that in mind, a 100 ms timeout value may actually last as long as 142 ms
* and as short as 66 ms.
* The value of 35 ms is used to cover the worst case scenario (66 ms).
*/
#define KICK_ADVANCE_MS 35UL

#define MSG_VALUE_DUMMY "0"
#define CASE_DATA_INVALID 0xffffffffUL
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbed_platform/atomic/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void test_atomic_add()

utest::v1::status_t test_setup(const size_t number_of_cases)
{
GREENTEA_SETUP(30, "default_auto");
GREENTEA_SETUP(60, "default_auto");
return utest::v1::verbose_test_setup_handler(number_of_cases);
}

Expand Down
40 changes: 34 additions & 6 deletions TESTS/network/wifi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ Please refer to the following table for priorities of test cases. Priorities are
| 9 | WIFI_CONNECT_PARAMS_CHANNEL | | SHOULD |
| 10 | WIFI_CONNECT_PARAMS_CHANNEL_FAIL | | SHOULD |
| 11 | WIFI_CONNECT | | MUST |
| 12 | WIFI_CONNECT_SECURE | With security type: | |
| 12 | WIFI_CONNECT_NONBLOCK | | SHOULD |
| 13 | WIFI_CONNECT_SECURE | With security type: | |
| | | NSAPI_SECURITY_WEP | SHOULD |
| | | NSAPI_SECURITY_WPA | SHOULD |
| | | NSAPI_SECURITY_WPA2 | SHOULD |
| | | NSAPI_SECURITY_WPA_WPA2 | MUST |
| 13 | WIFI_CONNECT_SECURE_FAIL | | MUST |
| 14 | WIFI_CONNECT_DISCONNECT_REPEAT | | MUST |
| 15 | WIFI_SCAN_NULL | | SHOULD |
| 16 | WIFI_SCAN | | SHOULD |
| 14 | WIFI_CONNECT_SECURE_FAIL | | MUST |
| 15 | WIFI_CONNECT_DISCONNECT_REPEAT | | MUST |
| 16 | WIFI_SCAN_NULL | | SHOULD |
| 17 | WIFI_SCAN | | SHOULD |

Building test binaries
----------------------
Expand Down Expand Up @@ -372,7 +373,7 @@ Test `WiFiInterface::connect()` without parameters. Use `set_credentials()` for
2. `Call WiFiInterface::set_credentials( <ssid:unsecure>, NULL)`.
3. `Call WiFiInterface::connect()`.
4. `disconnect()`.
5. `Call WiFiInterface::set_credentials( <ssid:unsecure>, "")`.
5. `Call WiFiInterface::set_credentials( <ssid:unsecure>, "")`.
6. `Call WiFiInterface::connect()`.
7. `disconnect()`.
8. Trash the memory storing SSID.
Expand All @@ -384,6 +385,33 @@ Test `WiFiInterface::connect()` without parameters. Use `set_credentials()` for

`connect()` calls return `NSAPI_ERROR_OK`.

### WIFI_CONNECT_NONBLOCK

**Description:**

Test `WiFiInterface::connect()` and `WiFiInterface::disconnect()` in non-blocking mode. It checks that driver can connect and disconnect in nonblocking mode.

**Preconditions:**

1. Test enviroment is set up as specified in the "Test Environment" chapter.

**Test steps:**

1. Initialize the driver.
2. `Call WiFiInterface::set_credentials( <ssid:unsecure>, NULL)`.
3. `Call WiFiInterface::connect()`.
4. `Call WiFiInterface::set_blocking(false)`
5. `Call WiFiInterface::get_connection_status()`
6. `disconnect()`
7. `Call WiFiInterface::get_connection_status()`
8. `Call WiFiInterface::set_blocking(true)`

**Expected result:**

In case of drivers which do not support asynchronous mode `set_blocking(false)` call returns `NSAPI_ERROR_UNSUPPORTED` and skips test case, otherwise:
`connect()` call returns `NSAPI_ERROR_OK`. To confirm connection `get_connection_status()` calls return `NSAPI_STATUS_GLOBAL_UP` or `NSAPI_STATUS_LOCAL_UP`.
`disconnect()` call returns `NSAPI_ERROR_OK`. To confirm disconnection `get_connection_status()` calls return `NSAPI_STATUS_DISCONNECTED`.

### WIFI_CONNECT_SECURE

**Description:**
Expand Down
2 changes: 2 additions & 0 deletions TESTS/network/wifi/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ Case cases[] = {
Case("WIFI-GET-RSSI", wifi_get_rssi),
Case("WIFI-CONNECT-PARAMS-VALID-UNSECURE", wifi_connect_params_valid_unsecure),
Case("WIFI-CONNECT", wifi_connect),
//Most boards are not passing this test, but they should if they support non-blocking API.
//Case("WIFI-CONNECT-NONBLOCKING", wifi_connect_nonblock),
Case("WIFI-CONNECT-DISCONNECT-REPEAT", wifi_connect_disconnect_repeat),
#endif
#if defined(MBED_CONF_APP_WIFI_SECURE_SSID)
Expand Down
65 changes: 65 additions & 0 deletions TESTS/network/wifi/wifi_connect_nonblock.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* Copyright (c) 2019, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include "mbed.h"
#include "greentea-client/test_env.h"
#include "unity.h"
#include "utest.h"
#include "wifi_tests.h"

using namespace utest::v1;

#if defined(MBED_CONF_APP_WIFI_UNSECURE_SSID)

#define SSID_MAX_LEN 32
nsapi_connection_status_t status_connection;
Semaphore sem_conn(0, 1);
Semaphore sem_disconn(0, 1);
void status_callback(nsapi_event_t e, intptr_t d)
{
if (d == NSAPI_STATUS_LOCAL_UP || d == NSAPI_STATUS_GLOBAL_UP) {
status_connection = (nsapi_connection_status_t)d;
sem_conn.release();
}

if (d == NSAPI_STATUS_DISCONNECTED) {
status_connection = (nsapi_connection_status_t)d;
sem_disconn.release();
}
}

void wifi_connect_nonblock(void)
{
WiFiInterface *wifi = get_interface();
char ssid[SSID_MAX_LEN + 1] = MBED_CONF_APP_WIFI_UNSECURE_SSID;
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->set_credentials(ssid, NULL));
wifi->attach(status_callback);
TEST_SKIP_UNLESS(wifi->set_blocking(false) != NSAPI_ERROR_UNSUPPORTED);
nsapi_error_t ret = wifi->connect();
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, ret);
bool res = sem_conn.try_acquire_for(30000);
TEST_ASSERT_TRUE(res == true);
TEST_ASSERT_TRUE(status_connection == NSAPI_STATUS_GLOBAL_UP || status_connection == NSAPI_STATUS_LOCAL_UP);
ret = wifi->disconnect();
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, ret);
res = sem_disconn.try_acquire_for(30000);
TEST_ASSERT_TRUE(res == true);
TEST_ASSERT_EQUAL_INT(NSAPI_STATUS_DISCONNECTED, status_connection);
wifi->set_blocking(true);
}

#endif // defined(MBED_CONF_APP_WIFI_UNSECURE_SSID)
3 changes: 3 additions & 0 deletions TESTS/network/wifi/wifi_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ void wifi_connect_params_channel_fail(void);
/** Test WiFiInterface::connect() without parameters. Use set_credentials() for setting parameters. */
void wifi_connect(void);

/** Test WiFiInterface::connect() in nonblocking mode. Use set_credentials() for setting parameters. */
void wifi_connect_nonblock(void);

/** Test WiFiInterface::connect() without parameters. Don't set parameters with set_credentials() */
void wifi_connect_nocredentials(void);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ TEST_F(TestTLSSocketWrapper, recv_from)
EXPECT_EQ(wrapper->connect(a), NSAPI_ERROR_OK);
SocketAddress b;
EXPECT_EQ(wrapper->recvfrom(&b, dataBuf, dataSize), NSAPI_ERROR_OK);
EXPECT_EQ(a, b);
}

TEST_F(TestTLSSocketWrapper, recv_from_null)
Expand Down
2 changes: 0 additions & 2 deletions UNITTESTS/features/netsocket/TLSSocketWrapper/unittest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ set(unittest-test-sources
stubs/mbed_shared_queues_stub.cpp
stubs/nsapi_dns_stub.cpp
stubs/EventFlags_stub.cpp
stubs/stoip4_stub.c
stubs/ip4tos_stub.c
stubs/SocketStats_Stub.cpp
)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/*
6 changes: 6 additions & 0 deletions components/storage/blockdevice/COMPONENT_SD/mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@
"SPI_MISO": "D12",
"SPI_CLK": "D13",
"SPI_CS": "D10"
},
"CC3220SF_LAUNCHXL": {
"SPI_MOSI": "D11",
"SPI_MISO": "D12",
"SPI_CLK": "D13",
"SPI_CS": "D10"
}
}
}
5 changes: 5 additions & 0 deletions features/FEATURE_BLE/ble/gap/AdvertisingDataParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ class AdvertisingDataParser {
if (position >= data.size()) {
return false;
}

/* early termination of packet, no more meaningful octets */
if (current_length() == 0) {
return false;
}

if (position + current_length() >= data.size()) {
return false;
Expand Down
12 changes: 11 additions & 1 deletion features/FEATURE_BLE/ble/gap/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ struct advertising_type_t : SafeEnum<advertising_type_t, uint8_t> {
/**
* Device is connectable, scannable and doesn't expect connection from a
* specific peer.
* @note Cannot carry extended advertising payload, only legacy PDUs.
* Use CONNECTABLE_NON_SCANNABLE_UNDIRECTED for non-legacy payload.
*
* @see Vol 3, Part C, Section 9.3.4 and Vol 6, Part B, Section 2.3.1.1.
*/
Expand Down Expand Up @@ -183,13 +185,21 @@ struct advertising_type_t : SafeEnum<advertising_type_t, uint8_t> {
*/
CONNECTABLE_DIRECTED_LOW_DUTY = 0x04,

/**
* Device is connectable, but not scannable and doesn't expect connection from a specific peer.
* @note Only for use with extended advertising payload, will not allow legacy PDUs
* (use CONNECTABLE_UNDIRECTED for legacy PDU).
*/
CONNECTABLE_NON_SCANNABLE_UNDIRECTED = 0x05,

#if !defined(DOXYGEN_ONLY)
// used by the PAL; naming in line with the the spec.
ADV_IND = 0x00,
ADV_DIRECT_IND = 0x01,
ADV_SCAN_IND = 0x02,
ADV_NONCONN_IND = 0x03,
ADV_DIRECT_IND_LOW_DUTY_CYCLE = 0x04
ADV_DIRECT_IND_LOW_DUTY_CYCLE = 0x04,
ADV_NONSCAN_IND = 0x05
#endif
};

Expand Down
3 changes: 3 additions & 0 deletions features/FEATURE_BLE/ble/pal/GapTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ struct advertising_event_properties_t {
break;
case advertising_type_t::ADV_NONCONN_IND:
break;
case advertising_type_t::ADV_NONSCAN_IND:
connectable = true;
break;
}
}

Expand Down
2 changes: 1 addition & 1 deletion features/FEATURE_BLE/ble/pal/PalGap.h
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ struct Gap {
periodic_advertising_interval_t periodic_advertising_max,
bool advertise_power
) {
return impl()->set_periodic_advertising_parameters(
return impl()->set_periodic_advertising_parameters_(
advertising_handle,
periodic_advertising_min,
periodic_advertising_max,
Expand Down
Loading