mirror of https://github.com/ARMmbed/mbed-os.git
Change qspi_inst_t typdef to int
Existing code may a dependency on the old behavior of "-1" to mean "no instruction". Therefore, update the typedef, and the value of QSPI_NO_INST, to avoid breaking those uses.pull/11604/head
parent
52332f9437
commit
555140a1cc
|
@ -28,7 +28,7 @@
|
|||
|
||||
#define ONE_MHZ 1000000
|
||||
|
||||
#define QSPI_NO_INST 0x00
|
||||
#define QSPI_NO_INST (-1)
|
||||
|
||||
namespace mbed {
|
||||
/** \defgroup drivers-public-api-spi SPI
|
||||
|
@ -43,7 +43,7 @@ namespace mbed {
|
|||
|
||||
/** Type representing a QSPI instruction
|
||||
*/
|
||||
typedef char qspi_inst_t;
|
||||
typedef int qspi_inst_t;
|
||||
|
||||
/** A QSPI Driver, used for communicating with QSPI slave devices
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue