mirror of https://github.com/ARMmbed/mbed-os.git
blockdevice: fix coding style
parent
d3e51fc3a0
commit
6d6c09bb80
|
@ -121,7 +121,10 @@ public:
|
||||||
|
|
||||||
/** Desctruct QSPIFBlockDevie
|
/** Desctruct QSPIFBlockDevie
|
||||||
*/
|
*/
|
||||||
~QSPIFBlockDevice() {deinit();}
|
~QSPIFBlockDevice()
|
||||||
|
{
|
||||||
|
deinit();
|
||||||
|
}
|
||||||
|
|
||||||
/** Read blocks from a block device
|
/** Read blocks from a block device
|
||||||
*
|
*
|
||||||
|
@ -266,8 +269,8 @@ private:
|
||||||
/* SFDP Detection and Parsing Functions */
|
/* SFDP Detection and Parsing Functions */
|
||||||
/****************************************/
|
/****************************************/
|
||||||
// Parse SFDP Headers and retrieve Basic Param and Sector Map Tables (if exist)
|
// Parse SFDP Headers and retrieve Basic Param and Sector Map Tables (if exist)
|
||||||
int _sfdp_parse_sfdp_headers(uint32_t& basic_table_addr, size_t& basic_table_size,
|
int _sfdp_parse_sfdp_headers(uint32_t &basic_table_addr, size_t &basic_table_size,
|
||||||
uint32_t& sector_map_table_addr, size_t& sector_map_table_size);
|
uint32_t §or_map_table_addr, size_t §or_map_table_size);
|
||||||
|
|
||||||
// Parse and Detect required Basic Parameters from Table
|
// Parse and Detect required Basic Parameters from Table
|
||||||
int _sfdp_parse_basic_param_table(uint32_t basic_table_addr, size_t basic_table_size);
|
int _sfdp_parse_basic_param_table(uint32_t basic_table_addr, size_t basic_table_size);
|
||||||
|
@ -276,8 +279,8 @@ private:
|
||||||
int _sfdp_parse_sector_map_table(uint32_t sector_map_table_addr, size_t sector_map_table_size);
|
int _sfdp_parse_sector_map_table(uint32_t sector_map_table_addr, size_t sector_map_table_size);
|
||||||
|
|
||||||
// Detect fastest read Bus mode supported by device
|
// Detect fastest read Bus mode supported by device
|
||||||
int _sfdp_detect_best_bus_read_mode(uint8_t *basic_param_table_ptr, int basic_param_table_size, bool& set_quad_enable,
|
int _sfdp_detect_best_bus_read_mode(uint8_t *basic_param_table_ptr, int basic_param_table_size, bool &set_quad_enable,
|
||||||
bool& is_qpi_mode, unsigned int& read_inst);
|
bool &is_qpi_mode, unsigned int &read_inst);
|
||||||
|
|
||||||
// Enable Quad mode if supported (1-1-4, 1-4-4, 4-4-4 bus modes)
|
// Enable Quad mode if supported (1-1-4, 1-4-4, 4-4-4 bus modes)
|
||||||
int _sfdp_set_quad_enabled(uint8_t *basic_param_table_ptr);
|
int _sfdp_set_quad_enabled(uint8_t *basic_param_table_ptr);
|
||||||
|
@ -290,7 +293,7 @@ private:
|
||||||
|
|
||||||
// Detect all supported erase types
|
// Detect all supported erase types
|
||||||
int _sfdp_detect_erase_types_inst_and_size(uint8_t *basic_param_table_ptr, int basic_param_table_size,
|
int _sfdp_detect_erase_types_inst_and_size(uint8_t *basic_param_table_ptr, int basic_param_table_size,
|
||||||
unsigned int& erase4k_inst,
|
unsigned int &erase4k_inst,
|
||||||
unsigned int *erase_type_inst_arr, unsigned int *erase_type_size_arr);
|
unsigned int *erase_type_inst_arr, unsigned int *erase_type_size_arr);
|
||||||
|
|
||||||
/***********************/
|
/***********************/
|
||||||
|
@ -301,7 +304,7 @@ private:
|
||||||
|
|
||||||
// Iterate on all supported Erase Types of the Region to which the offset belong to.
|
// Iterate on all supported Erase Types of the Region to which the offset belong to.
|
||||||
// Iterates from highest type to lowest
|
// Iterates from highest type to lowest
|
||||||
int _utils_iterate_next_largest_erase_type(uint8_t& bitfield, int size, int offset, int boundry);
|
int _utils_iterate_next_largest_erase_type(uint8_t &bitfield, int size, int offset, int boundry);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Internal Members
|
// Internal Members
|
||||||
|
|
Loading…
Reference in New Issue