|
45 | 45 | #if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI && DEVICE_INTERRUPTIN && defined(MBED_CONF_RTOS_PRESENT) |
46 | 46 |
|
47 | 47 | #include "platform/mbed_critical.h" |
| 48 | +#include <string.h> |
48 | 49 |
|
49 | 50 | /***************************************************************************** |
50 | 51 | * PRIVATE VARIABLES * |
@@ -165,7 +166,7 @@ void MCR20Drv_DirectAccessSPIMultiByteWrite |
165 | 166 | { |
166 | 167 | uint8_t txData; |
167 | 168 |
|
168 | | - if ((numOfBytes == 0) || (byteArray == 0)) { |
| 169 | + if ((numOfBytes == 0) || (byteArray == NULL)) { |
169 | 170 | return; |
170 | 171 | } |
171 | 172 |
|
@@ -230,7 +231,7 @@ void MCR20Drv_PB_SPIBurstWrite |
230 | 231 | { |
231 | 232 | uint8_t txData; |
232 | 233 |
|
233 | | - if ((numOfBytes == 0) || (byteArray == 0)) { |
| 234 | + if ((numOfBytes == 0) || (byteArray == NULL)) { |
234 | 235 | return; |
235 | 236 | } |
236 | 237 |
|
@@ -301,7 +302,7 @@ uint8_t MCR20Drv_DirectAccessSPIMultiByteRead |
301 | 302 | uint8_t txData; |
302 | 303 | uint8_t phyIRQSTS1; |
303 | 304 |
|
304 | | - if ((numOfBytes == 0) || (byteArray == 0)) { |
| 305 | + if ((numOfBytes == 0) || (byteArray == NULL)) { |
305 | 306 | return 0; |
306 | 307 | } |
307 | 308 |
|
@@ -338,7 +339,7 @@ uint8_t MCR20Drv_PB_SPIBurstRead |
338 | 339 | uint8_t txData; |
339 | 340 | uint8_t phyIRQSTS1; |
340 | 341 |
|
341 | | - if ((numOfBytes == 0) || (byteArray == 0)) { |
| 342 | + if ((numOfBytes == 0) || (byteArray == NULL)) { |
342 | 343 | return 0; |
343 | 344 | } |
344 | 345 |
|
@@ -406,7 +407,7 @@ void MCR20Drv_IndirectAccessSPIMultiByteWrite |
406 | 407 | { |
407 | 408 | uint16_t txData; |
408 | 409 |
|
409 | | - if ((numOfBytes == 0) || (byteArray == 0)) { |
| 410 | + if ((numOfBytes == 0) || (byteArray == NULL)) { |
410 | 411 | return; |
411 | 412 | } |
412 | 413 |
|
@@ -473,7 +474,7 @@ void MCR20Drv_IndirectAccessSPIMultiByteRead |
473 | 474 | { |
474 | 475 | uint16_t txData; |
475 | 476 |
|
476 | | - if ((numOfBytes == 0) || (byteArray == 0)) { |
| 477 | + if ((numOfBytes == 0) || (byteArray == NULL)) { |
477 | 478 | return; |
478 | 479 | } |
479 | 480 |
|
|
0 commit comments