Skip to content

Commit

Permalink
Update 802.15.4 RF drivers
Browse files Browse the repository at this point in the history
Update atmel-rf-driver to version v3.0.9
Update mcr20a-rf-driver to v1.0.8
  • Loading branch information
Arto Kinnunen committed Feb 21, 2020
1 parent 3fd01ed commit 1a5cf1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ static void rf_if_reset_radio(void)
#else
rf->spi.frequency(MBED_CONF_ATMEL_RF_LOW_SPI_SPEED);
#endif
rf->IRQ.rise(0);
rf->IRQ.rise(nullptr);
rf->RST = 1;
ThisThread::sleep_for(2);
rf->RST = 0;
Expand Down
13 changes: 7 additions & 6 deletions components/802.15.4_RF/mcr20a-rf-driver/source/MCR20Drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI && DEVICE_INTERRUPTIN && defined(MBED_CONF_RTOS_PRESENT)

#include "platform/mbed_critical.h"
#include <string.h>

/*****************************************************************************
* PRIVATE VARIABLES *
Expand Down Expand Up @@ -165,7 +166,7 @@ void MCR20Drv_DirectAccessSPIMultiByteWrite
{
uint8_t txData;

if ((numOfBytes == 0) || (byteArray == 0)) {
if ((numOfBytes == 0) || (byteArray == NULL)) {
return;
}

Expand Down Expand Up @@ -230,7 +231,7 @@ void MCR20Drv_PB_SPIBurstWrite
{
uint8_t txData;

if ((numOfBytes == 0) || (byteArray == 0)) {
if ((numOfBytes == 0) || (byteArray == NULL)) {
return;
}

Expand Down Expand Up @@ -301,7 +302,7 @@ uint8_t MCR20Drv_DirectAccessSPIMultiByteRead
uint8_t txData;
uint8_t phyIRQSTS1;

if ((numOfBytes == 0) || (byteArray == 0)) {
if ((numOfBytes == 0) || (byteArray == NULL)) {
return 0;
}

Expand Down Expand Up @@ -338,7 +339,7 @@ uint8_t MCR20Drv_PB_SPIBurstRead
uint8_t txData;
uint8_t phyIRQSTS1;

if ((numOfBytes == 0) || (byteArray == 0)) {
if ((numOfBytes == 0) || (byteArray == NULL)) {
return 0;
}

Expand Down Expand Up @@ -406,7 +407,7 @@ void MCR20Drv_IndirectAccessSPIMultiByteWrite
{
uint16_t txData;

if ((numOfBytes == 0) || (byteArray == 0)) {
if ((numOfBytes == 0) || (byteArray == NULL)) {
return;
}

Expand Down Expand Up @@ -473,7 +474,7 @@ void MCR20Drv_IndirectAccessSPIMultiByteRead
{
uint16_t txData;

if ((numOfBytes == 0) || (byteArray == 0)) {
if ((numOfBytes == 0) || (byteArray == NULL)) {
return;
}

Expand Down

0 comments on commit 1a5cf1f

Please sign in to comment.