mirror of https://github.com/ARMmbed/mbed-os.git
Fix Astyle issues
parent
106fd5b4a5
commit
60e4d14577
|
|
@ -617,7 +617,7 @@ int QSPIFBlockDevice::_sfdp_parse_sfdp_headers(uint32_t &basic_table_addr, size_
|
|||
size_t data_length = QSPIF_SFDP_HEADER_SIZE;
|
||||
bd_addr_t addr = 0x0;
|
||||
|
||||
qspi_status_t status = _qspi_send_read_sfdp_command(addr, (char*) sfdp_header, data_length);
|
||||
qspi_status_t status = _qspi_send_read_sfdp_command(addr, (char *) sfdp_header, data_length);
|
||||
if (status != QSPI_STATUS_OK) {
|
||||
tr_error("Init - Read SFDP Failed");
|
||||
return -1;
|
||||
|
|
@ -677,7 +677,7 @@ int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, s
|
|||
{
|
||||
uint8_t param_table[SFDP_DEFAULT_BASIC_PARAMS_TABLE_SIZE_BYTES]; /* Up To 16 DWORDS = 64 Bytes */
|
||||
|
||||
qspi_status_t status = _qspi_send_read_sfdp_command(basic_table_addr, (char*) param_table, basic_table_size);
|
||||
qspi_status_t status = _qspi_send_read_sfdp_command(basic_table_addr, (char *) param_table, basic_table_size);
|
||||
if (status != QSPI_STATUS_OK) {
|
||||
tr_error("Init - Read SFDP First Table Failed");
|
||||
return -1;
|
||||
|
|
@ -693,7 +693,7 @@ int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, s
|
|||
uint32_t density_bits = ((param_table[7] << 24) |
|
||||
(param_table[6] << 16) |
|
||||
(param_table[5] << 8) |
|
||||
param_table[4]);
|
||||
param_table[4]);
|
||||
_device_size_bytes = (density_bits + 1) / 8;
|
||||
|
||||
// Set Page Size (QSPI write must be done on Page limits)
|
||||
|
|
@ -1108,7 +1108,7 @@ int QSPIFBlockDevice::_sfdp_detect_reset_protocol_and_reset(uint8_t *basic_param
|
|||
// Issue instruction 66h to enable resets on the device
|
||||
// Then issue instruction 99h to reset the device
|
||||
qspi_status_t qspi_status = _qspi_send_general_command(0x66, QSPI_NO_ADDRESS_COMMAND, // Send reset enable instruction
|
||||
NULL, 0, NULL, 0);
|
||||
NULL, 0, NULL, 0);
|
||||
if (qspi_status == QSPI_STATUS_OK) {
|
||||
qspi_status = _qspi_send_general_command(0x99, QSPI_NO_ADDRESS_COMMAND, // Send reset instruction
|
||||
NULL, 0, NULL, 0);
|
||||
|
|
@ -1119,7 +1119,7 @@ int QSPIFBlockDevice::_sfdp_detect_reset_protocol_and_reset(uint8_t *basic_param
|
|||
status = QSPIF_BD_ERROR_PARSING_FAILED;
|
||||
}
|
||||
|
||||
if (status == QSPIF_BD_ERROR_OK){
|
||||
if (status == QSPIF_BD_ERROR_OK) {
|
||||
if (false == _is_mem_ready()) {
|
||||
tr_error("Device not ready, reset failed");
|
||||
status = QSPIF_BD_ERROR_READY_FAILED;
|
||||
|
|
@ -1198,8 +1198,8 @@ int QSPIFBlockDevice::_clear_block_protection()
|
|||
|
||||
/* Read Manufacturer ID (1byte), and Device ID (2bytes) */
|
||||
qspi_status_t status = _qspi_send_general_command(QSPIF_INST_RDID, QSPI_NO_ADDRESS_COMMAND,
|
||||
NULL, 0,
|
||||
(char *) vendor_device_ids, QSPI_RDID_DATA_LENGTH);
|
||||
NULL, 0,
|
||||
(char *) vendor_device_ids, QSPI_RDID_DATA_LENGTH);
|
||||
if (QSPI_STATUS_OK != status) {
|
||||
tr_error("Read Vendor ID Failed");
|
||||
return -1;
|
||||
|
|
@ -1523,8 +1523,8 @@ qspi_status_t QSPIFBlockDevice::_qspi_read_status_registers(uint8_t *reg_buffer)
|
|||
{
|
||||
// Read Status Register 1
|
||||
qspi_status_t status = _qspi_send_general_command(QSPIF_INST_RSR1, QSPI_NO_ADDRESS_COMMAND,
|
||||
NULL, 0,
|
||||
(char *) ®_buffer[0], 1);
|
||||
NULL, 0,
|
||||
(char *) ®_buffer[0], 1);
|
||||
if (QSPI_STATUS_OK == status) {
|
||||
tr_debug("Reading Status Register 1 Success: value = 0x%x", (int) reg_buffer[0]);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue