Skip to content

Commit 29f9288

Browse files
author
Kyle Kearney
committed
Fix Astyle issues
1 parent 323cf6d commit 29f9288

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ int QSPIFBlockDevice::_sfdp_parse_sfdp_headers(uint32_t &basic_table_addr, size_
608608
size_t data_length = QSPIF_SFDP_HEADER_SIZE;
609609
bd_addr_t addr = 0x0;
610610

611-
qspi_status_t status = _qspi_send_read_sfdp_command(addr, (char*) sfdp_header, data_length);
611+
qspi_status_t status = _qspi_send_read_sfdp_command(addr, (char *) sfdp_header, data_length);
612612
if (status != QSPI_STATUS_OK) {
613613
tr_error("Init - Read SFDP Failed");
614614
return -1;
@@ -668,7 +668,7 @@ int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, s
668668
{
669669
uint8_t param_table[SFDP_DEFAULT_BASIC_PARAMS_TABLE_SIZE_BYTES]; /* Up To 16 DWORDS = 64 Bytes */
670670

671-
qspi_status_t status = _qspi_send_read_sfdp_command(basic_table_addr, (char*) param_table, basic_table_size);
671+
qspi_status_t status = _qspi_send_read_sfdp_command(basic_table_addr, (char *) param_table, basic_table_size);
672672
if (status != QSPI_STATUS_OK) {
673673
tr_error("Init - Read SFDP First Table Failed");
674674
return -1;
@@ -684,7 +684,7 @@ int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, s
684684
uint32_t density_bits = ((param_table[7] << 24) |
685685
(param_table[6] << 16) |
686686
(param_table[5] << 8) |
687-
param_table[4]);
687+
param_table[4]);
688688
_device_size_bytes = (density_bits + 1) / 8;
689689

690690
// Set Page Size (QSPI write must be done on Page limits)
@@ -1091,7 +1091,7 @@ int QSPIFBlockDevice::_sfdp_detect_reset_protocol_and_reset(uint8_t *basic_param
10911091
// Issue instruction 66h to enable resets on the device
10921092
// Then issue instruction 99h to reset the device
10931093
qspi_status_t qspi_status = _qspi_send_general_command(0x66, QSPI_NO_ADDRESS_COMMAND, // Send reset enable instruction
1094-
NULL, 0, NULL, 0);
1094+
NULL, 0, NULL, 0);
10951095
if (qspi_status == QSPI_STATUS_OK) {
10961096
qspi_status = _qspi_send_general_command(0x99, QSPI_NO_ADDRESS_COMMAND, // Send reset instruction
10971097
NULL, 0, NULL, 0);
@@ -1102,7 +1102,7 @@ int QSPIFBlockDevice::_sfdp_detect_reset_protocol_and_reset(uint8_t *basic_param
11021102
status = QSPIF_BD_ERROR_PARSING_FAILED;
11031103
}
11041104

1105-
if (status == QSPIF_BD_ERROR_OK){
1105+
if (status == QSPIF_BD_ERROR_OK) {
11061106
if (false == _is_mem_ready()) {
11071107
tr_error("Device not ready, reset failed");
11081108
status = QSPIF_BD_ERROR_READY_FAILED;
@@ -1181,8 +1181,8 @@ int QSPIFBlockDevice::_clear_block_protection()
11811181

11821182
/* Read Manufacturer ID (1byte), and Device ID (2bytes) */
11831183
qspi_status_t status = _qspi_send_general_command(QSPIF_INST_RDID, QSPI_NO_ADDRESS_COMMAND,
1184-
NULL, 0,
1185-
(char *) vendor_device_ids, QSPI_RDID_DATA_LENGTH);
1184+
NULL, 0,
1185+
(char *) vendor_device_ids, QSPI_RDID_DATA_LENGTH);
11861186
if (QSPI_STATUS_OK != status) {
11871187
tr_error("Read Vendor ID Failed");
11881188
return -1;
@@ -1468,7 +1468,7 @@ qspi_status_t QSPIFBlockDevice::_qspi_send_read_sfdp_command(bd_addr_t addr, voi
14681468
// SFDP read instruction requires 1-1-1 bus mode with 8 dummy cycles and a 3-byte address
14691469
_qspi.configure_format(QSPI_CFG_BUS_SINGLE, QSPI_CFG_BUS_SINGLE, QSPI_CFG_ADDR_SIZE_24, QSPI_CFG_BUS_SINGLE,
14701470
QSPI_CFG_ALT_SIZE_8, QSPI_CFG_BUS_SINGLE, QSPIF_RSFDP_DUMMY_CYCLES);
1471-
qspi_status_t status = _qspi.read(QSPIF_INST_RSFDP, -1, (unsigned int) addr, (char*) rx_buffer, &rx_len);
1471+
qspi_status_t status = _qspi.read(QSPIF_INST_RSFDP, -1, (unsigned int) addr, (char *) rx_buffer, &rx_len);
14721472
// All commands other than Read and RSFDP use default 1-1-1 bus mode (Program/Erase are constrained by flash memory performance more than bus performance)
14731473
_qspi.configure_format(QSPI_CFG_BUS_SINGLE, QSPI_CFG_BUS_SINGLE, _address_size, QSPI_CFG_BUS_SINGLE,
14741474
QSPI_CFG_ALT_SIZE_8, QSPI_CFG_BUS_SINGLE, 0);
@@ -1484,8 +1484,8 @@ qspi_status_t QSPIFBlockDevice::_qspi_read_status_registers(uint8_t *reg_buffer)
14841484
{
14851485
// Read Status Register 1
14861486
qspi_status_t status = _qspi_send_general_command(QSPIF_INST_RSR1, QSPI_NO_ADDRESS_COMMAND,
1487-
NULL, 0,
1488-
(char *) &reg_buffer[0], 1);
1487+
NULL, 0,
1488+
(char *) &reg_buffer[0], 1);
14891489
if (QSPI_STATUS_OK == status) {
14901490
tr_debug("Reading Status Register 1 Success: value = 0x%x", (int) reg_buffer[0]);
14911491
} else {

features/storage/kvstore/conf/kv_config.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ MBED_WEAK BlockDevice *get_other_blockdevice()
548548
return NULL;
549549
}
550550

551-
int _create_internal_tdb(BlockDevice **internal_bd, KVStore **internal_tdb, bd_size_t *size, bd_addr_t *start_address) {
551+
int _create_internal_tdb(BlockDevice **internal_bd, KVStore **internal_tdb, bd_size_t *size, bd_addr_t *start_address)
552+
{
552553
int ret;
553554

554555
//Get the default address and size for the TDBStore

0 commit comments

Comments
 (0)