[k32w] Project CHIP fixes (#6099)

- enable 15.4 to work together with BLE
- include an additional configure file
This commit is contained in:
doru91
2021-01-21 08:18:29 -08:00
committed by GitHub
parent 8de7b4881c
commit a8265a5628
2 changed files with 9 additions and 7 deletions
+8 -7
View File
@@ -203,10 +203,11 @@ static teRxOption sRxOpt = E_MMAC_RX_START_NOW | /* RX Options */
E_MMAC_RX_ALIGN_NORMAL | E_MMAC_RX_USE_AUTO_ACK | E_MMAC_RX_NO_MALFORMED | E_MMAC_RX_ALIGN_NORMAL | E_MMAC_RX_USE_AUTO_ACK | E_MMAC_RX_NO_MALFORMED |
E_MMAC_RX_NO_FCS_ERROR | E_MMAC_RX_ADDRESS_MATCH; E_MMAC_RX_NO_FCS_ERROR | E_MMAC_RX_ADDRESS_MATCH;
tsRxFrameFormat sTxMacFrame; /* TX Frame */ tsRxFrameFormat sTxMacFrame; /* TX Frame */
static tsRxFrameFormat sRxAckFrame; /* Frame used for keeping the ACK */ static tsRxFrameFormat sRxAckFrame; /* Frame used for keeping the ACK */
static otRadioFrame sRxOtFrame; /* Used for TX/RX frame conversion */ static otRadioFrame sRxOtFrame; /* Used for TX/RX frame conversion */
static uint8 sRxData[OT_RADIO_FRAME_MAX_SIZE]; /* mPsdu buffer for sRxOtFrame */ static uint8 sRxData[OT_RADIO_FRAME_MAX_SIZE]; /* mPsdu buffer for sRxOtFrame */
static tsRxFrameFormat *pLastRxFrame;
static bool sRadioInitForLp = FALSE; static bool sRadioInitForLp = FALSE;
static bool sPromiscuousEnable = FALSE; static bool sPromiscuousEnable = FALSE;
@@ -1277,13 +1278,13 @@ static void K32WEnableReceive(bool_t isNewFrameNeeded)
{ {
if ((pRxFrame = K32WGetFrame(sRxFrame, &sRxFrameIndex)) != NULL) if ((pRxFrame = K32WGetFrame(sRxFrame, &sRxFrameIndex)) != NULL)
{ {
vMMAC_SetRxFrame(pRxFrame); pLastRxFrame = pRxFrame;
K32WRestartRx(); vMMAC_StartMacReceive(&pRxFrame->sFrameBody, sRxOpt);
} }
} }
else else
{ {
K32WRestartRx(); vMMAC_StartMacReceive(&pLastRxFrame->sFrameBody, sRxOpt);
} }
} }
+1
View File
@@ -32,6 +32,7 @@
* *
*/ */
#include "board.h" #include "board.h"
#include "clock_config.h"
#include "pin_mux.h" #include "pin_mux.h"
#include "platform-k32w.h" #include "platform-k32w.h"
#include "openthread/platform/uart.h" #include "openthread/platform/uart.h"