Ejemplo n.º 1
0
void owInit()
{
  syslinkInit();
  vSemaphoreCreateBinary(waitForReply);
  lockCmdBuf = xSemaphoreCreateMutex();

  // Put reply semaphore in right state.
  xSemaphoreTake(waitForReply, portMAX_DELAY);
}
Ejemplo n.º 2
0
void radiolinkInit(void)
{
  if (isInit)
    return;

  syslinkInit();

  crtpPacketDelivery = xQueueCreate(5, sizeof(CRTPPacket));

  if (crtpPacketDelivery == 0)
  {
    return;
  }

  radiolinkSetChannel(configblockGetRadioChannel());
  radiolinkSetDatarate(configblockGetRadioSpeed());

  isInit = true;
}
Ejemplo n.º 3
0
void radiolinkInit(void)
{
  if (isInit)
    return;

  txQueue = xQueueCreate(RADIOLINK_TX_QUEUE_SIZE, sizeof(SyslinkPacket));
  DEBUG_QUEUE_MONITOR_REGISTER(txQueue);
  crtpPacketDelivery = xQueueCreate(5, sizeof(CRTPPacket));
  DEBUG_QUEUE_MONITOR_REGISTER(crtpPacketDelivery);


  ASSERT(crtpPacketDelivery);

  syslinkInit();

  radiolinkSetChannel(configblockGetRadioChannel());
  radiolinkSetDatarate(configblockGetRadioSpeed());
  radiolinkSetAddress(configblockGetRadioAddress());

  isInit = true;
}