Skip to content

Commit

Permalink
Merge pull request arduino-libraries#23 from FRASTM/wb55_ble
Browse files Browse the repository at this point in the history
Timeout returned when configuring BLE stack for SharedMem transport
  • Loading branch information
cparata authored Feb 3, 2021
2 parents 4867274 + 3a063df commit 5ceaf45
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/utility/STM32Cube_FW/shci_tl.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
/* Includes ------------------------------------------------------------------*/
#include "stm32_wpan_common.h"

#include <Arduino.h>

#include "stm_list.h"
#include "shci_tl.h"
#include "stm32_def.h"
Expand Down Expand Up @@ -323,11 +325,12 @@ static void OutputEvtTrace(TL_EvtPacket_t *phcievtbuffer)
/* Weak implementation ----------------------------------------------------------------*/
__WEAK void shci_cmd_resp_wait(uint32_t timeout)
{
(void)timeout;

CmdRspStatusFlag = SHCI_TL_CMD_RESP_WAIT;
while (CmdRspStatusFlag != SHCI_TL_CMD_RESP_RELEASE);

for (unsigned long start = millis(); (millis() - start) < timeout;) {
if (CmdRspStatusFlag == SHCI_TL_CMD_RESP_RELEASE) {
break;
}
}
return;
}

Expand Down

0 comments on commit 5ceaf45

Please sign in to comment.