From aab40e07f36d5e392be74623309cca49890a9256 Mon Sep 17 00:00:00 2001 From: Kyle Kearney Date: Tue, 15 Oct 2019 11:20:16 -0700 Subject: [PATCH] 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. --- drivers/QSPI.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/QSPI.h b/drivers/QSPI.h index 560bdccbf4..d655ad4523 100644 --- a/drivers/QSPI.h +++ b/drivers/QSPI.h @@ -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 *