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
Kyle Kearney 2019-10-15 11:20:16 -07:00
parent 52332f9437
commit 555140a1cc
1 changed files with 2 additions and 2 deletions

View File

@ -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
*