Skip to content

Commit 7eb97be

Browse files
authored
Merge pull request #11358 from 0xc0170/dev_rollup
Rollup PRs for 5.14
2 parents 67d1bb1 + 7063cce commit 7eb97be

File tree

8 files changed

+19
-41
lines changed

8 files changed

+19
-41
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/TESTS/cordio_hci/transport/main.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -225,23 +225,6 @@ static uint8_t reset_cmd[] = {
225225
0 // parameter length
226226
};
227227

228-
void test_reset_command()
229-
{
230-
CordioHCIDriver &driver = CordioHCIHook::get_driver();
231-
CordioHCITransportDriver &transport_driver = CordioHCIHook::get_transport_driver();
232-
233-
driver.initialize();
234-
235-
CordioHCIHook::set_data_received_handler(hci_driver_rx_reset_handler);
236-
237-
transport_driver.write(HCI_CMD_TYPE, sizeof(reset_cmd), reset_cmd);
238-
uint32_t events = wait_for_event();
239-
240-
TEST_ASSERT_EQUAL(RESET_RECEIVED_FLAG, events);
241-
242-
driver.terminate();
243-
}
244-
245228
#define EXPECTED_CONSECUTIVE_RESET 10
246229

247230
void test_multiple_reset_command()
@@ -266,7 +249,6 @@ void test_multiple_reset_command()
266249
}
267250

268251
Case cases[] = {
269-
Case("Test reset command", test_reset_command),
270252
Case("Test multiple reset commands", test_multiple_reset_command)
271253
};
272254

features/lwipstack/lwip/src/core/ipv4/lwip_ip4_frag.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,8 @@ ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *p
206206
pbuf_free(pcur);
207207
}
208208
/* Then, unchain the struct ip_reassdata from the list and free it. */
209-
if (prev != NULL) {
210-
ip_reass_dequeue_datagram(ipr, prev);
211-
}
209+
/* coverity [FORWARD_NULL]*/
210+
ip_reass_dequeue_datagram(ipr, prev);
212211
LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed);
213212
ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed);
214213

@@ -662,9 +661,8 @@ ip4_reass(struct pbuf *p)
662661
}
663662

664663
/* release the sources allocate for the fragment queue entry */
665-
if (ipr_prev != NULL) {
666-
ip_reass_dequeue_datagram(ipr, ipr_prev);
667-
}
664+
/* coverity [FORWARD_NULL]*/
665+
ip_reass_dequeue_datagram(ipr, ipr_prev);
668666
/* and adjust the number of pbufs currently queued for reassembly. */
669667
clen = pbuf_clen(p);
670668
LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= clen);

features/netsocket/NetworkInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class NetworkInterface: public DNS {
308308
* By default, interfaces are in synchronous mode which means that
309309
* connect() or disconnect() blocks until it reach the target state or requested operation fails.
310310
*
311-
* @param blocking Use true to set NetworkInterface in asynchronous mode.
311+
* @param blocking Use false to set NetworkInterface in asynchronous mode.
312312
* @return NSAPI_ERROR_OK on success
313313
* @return NSAPI_ERROR_UNSUPPORTED if driver does not support asynchronous mode.
314314
* @return negative error code on failure.

features/storage/kvstore/conf/kv_config.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ BlockDevice *_get_blockdevice_FLASHIAP(bd_addr_t start_address, bd_size_t size)
388388
}
389389

390390
if (size == 0) {
391-
//The block device will have all space form start address to the end of the flash
391+
//The block device will have all space from start address to the end of the flash
392392
size = (flash_end_address - start_address);
393393

394394
static FlashIAPBlockDevice bd(start_address, size);
@@ -486,12 +486,12 @@ BlockDevice *_get_blockdevice_QSPIF(bd_addr_t start_address, bd_size_t size)
486486
bd_addr_t aligned_start_address;
487487

488488
static QSPIFBlockDevice bd(
489-
QSPI_FLASH1_IO0,
490-
QSPI_FLASH1_IO1,
491-
QSPI_FLASH1_IO2,
492-
QSPI_FLASH1_IO3,
493-
QSPI_FLASH1_SCK,
494-
QSPI_FLASH1_CSN,
489+
MBED_CONF_QSPIF_QSPI_IO0,
490+
MBED_CONF_QSPIF_QSPI_IO1,
491+
MBED_CONF_QSPIF_QSPI_IO2,
492+
MBED_CONF_QSPIF_QSPI_IO3,
493+
MBED_CONF_QSPIF_QSPI_SCK,
494+
MBED_CONF_QSPIF_QSPI_CSN,
495495
QSPIF_POLARITY_MODE_0,
496496
MBED_CONF_QSPIF_QSPI_FREQ
497497
);

features/storage/kvstore/tdbstore/TDBStore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ int TDBStore::set_finalize(set_handle_t handle)
614614
goto end;
615615
}
616616

617-
// Writes may fail without returning a failure (specially in flash components). Reread the record
617+
// Writes may fail without returning a failure (especially in flash components). Reread the record
618618
// to ensure write success (this won't read the data anywhere - just use the CRC calculation).
619619
ret = read_record(_active_area, ih->bd_base_offset, 0, 0, (uint32_t) -1,
620620
actual_data_size, 0, false, false, false, false,
@@ -1061,7 +1061,7 @@ int TDBStore::init()
10611061
// (this will do nothing if already erased)
10621062
if (ret == MBED_ERROR_INVALID_DATA_DETECTED) {
10631063
if (check_erase_before_write(area, _master_record_offset, _master_record_size, true)) {
1064-
MBED_ERROR(MBED_ERROR_READ_FAILED, "TDBSTORE: Unable reset area at init");
1064+
MBED_ERROR(MBED_ERROR_READ_FAILED, "TDBSTORE: Unable to reset area at init");
10651065
}
10661066
area_state[area] = TDBSTORE_AREA_STATE_EMPTY;
10671067
continue;

platform/source/mbed_error.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ static mbed_error_status_t handle_error(mbed_error_status_t error_status, unsign
139139

140140
//Error status should always be < 0
141141
if (error_status >= 0) {
142-
//This is a weird situation, someone called mbed_error with invalid error code.
143-
//We will still handle the situation but change the error code to ERROR_INVALID_ARGUMENT, atleast the context will have info on who called it
142+
//This is a weird situation, someone called mbed_error with an invalid error code.
143+
//We will still handle the situation but change the error code to ERROR_INVALID_ARGUMENT, at least the context will have info on who called it
144144
error_status = MBED_ERROR_INVALID_ARGUMENT;
145145
}
146146

targets/TARGET_STM/TARGET_STM32L4/TARGET_MTS_DRAGONFLY_L471QG/PeripheralPins.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ MBED_WEAK const PinMap PinMap_ADC[] = {
4444
{PA_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG_ADC_CONTROL, GPIO_NOPULL, 0, 6, 0)}, // IN6 - ARDUINO D6
4545
{PA_2, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG_ADC_CONTROL, GPIO_NOPULL, 0, 7, 0)}, // IN7 // PA_2 is used as SERIAL_TX
4646
{PA_3, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG_ADC_CONTROL, GPIO_NOPULL, 0, 8, 0)}, // IN8 // PA_3 is used as SERIAL_RX
47+
{PA_6, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG_ADC_CONTROL, GPIO_NOPULL, 0, 11, 0)}, // IN11
4748
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG_ADC_CONTROL, GPIO_NOPULL, 0, 12, 0)}, // IN12
4849
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG_ADC_CONTROL, GPIO_NOPULL, 0, 15, 0)}, // IN15 - ARDUINO D8
4950
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG_ADC_CONTROL, GPIO_NOPULL, 0, 1, 0)}, // IN1

targets/targets.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,6 +1314,7 @@
13141314
"SPI",
13151315
"SPISLAVE",
13161316
"STDIO_MESSAGES",
1317+
"USBDEVICE",
13171318
"FLASH"
13181319
],
13191320
"release_versions": ["2", "5"],
@@ -2824,7 +2825,7 @@
28242825
"default_toolchain": "uARM",
28252826
"extra_labels_add": ["STM32F4", "STM32F411xE", "STM32F411RE"],
28262827
"supported_toolchains": ["ARM", "uARM", "GCC_ARM"],
2827-
"detect_code": ["----"],
2828+
"detect_code": ["0410"],
28282829
"device_has_add": ["MPU"],
28292830
"device_has_remove": ["SERIAL_FC"],
28302831
"default_lib": "small",
@@ -8860,15 +8861,11 @@
88608861
"PORTINOUT",
88618862
"PORTOUT",
88628863
"PWMOUT",
8863-
"RTC",
88648864
"SERIAL",
88658865
"SLEEP",
88668866
"SPI",
8867-
"SPISLAVE",
8868-
"SPI_ASYNCH",
88698867
"I2C",
88708868
"I2CSLAVE",
8871-
"I2C_ASYNCH",
88728869
"STDIO_MESSAGES",
88738870
"MPU"
88748871
],

0 commit comments

Comments
 (0)