@@ -59,7 +59,8 @@ enum qspif_bd_error {
59
59
QSPIF_BD_ERROR_WREN_FAILED = -4004 , /* Write Enable Failed */
60
60
QSPIF_BD_ERROR_INVALID_ERASE_PARAMS = -4005 , /* Erase command not on sector aligned addresses or exceeds device size */
61
61
QSPIF_BD_ERROR_DEVICE_NOT_UNIQUE = -4006 , /* Only one instance per csel is allowed */
62
- QSPIF_BD_ERROR_DEVICE_MAX_EXCEED = -4007 /* Max active QSPIF devices exceeded */
62
+ QSPIF_BD_ERROR_DEVICE_MAX_EXCEED = -4007 , /* Max active QSPIF devices exceeded */
63
+ QSPIF_BD_ERROR_INVALID_ARGUMENT = -4008 /* Invalid argument passed to function */
63
64
};
64
65
65
66
/* * Enum qspif polarity mode
@@ -248,7 +249,7 @@ class QSPIFBlockDevice : public mbed::BlockDevice {
248
249
*/
249
250
virtual const char *get_type () const ;
250
251
251
- private :
252
+ protected :
252
253
/* *******************************/
253
254
/* Different Device Csel Mgmt */
254
255
/* *******************************/
@@ -334,7 +335,7 @@ class QSPIFBlockDevice : public mbed::BlockDevice {
334
335
// Detect 4-byte addressing mode and enable it if supported
335
336
int _sfdp_detect_and_enable_4byte_addressing (uint8_t *basic_param_table_ptr, int basic_param_table_size);
336
337
337
- private :
338
+ protected :
338
339
enum qspif_clear_protection_method_t {
339
340
QSPIF_BP_ULBPR, // Issue global protection unlock instruction
340
341
QSPIF_BP_CLEAR_SR, // Clear protection bits in status register 1
0 commit comments