Beispiel #1
0
static portTASK_FUNCTION(RadioTask, pvParameters) {
  (void)pvParameters; /* not used */
  (void)RADIO_PowerUp();
  for(;;) {
    (void)RADIO_Process();
    FRTOS1_vTaskDelay(5/portTICK_RATE_MS);
  }
}
Beispiel #2
0
void vRemoteTask(void* pvParameters) {
  (void)pvParameters; /* not used */
  (void)RADIO_PowerUp();
  for(;;) {
    (void)RADIO_Process();
    RTOS_Wait(5);
  }
}
Beispiel #3
0
static void Process(void) {
  for(;;) {
    switch(appState) {
    case RNETA_INITIAL:
      appState = RNETA_POWERUP;
      continue;
      
    case RNETA_POWERUP:
      RadioPowerUp();
      appState = RNETA_TX_RX;
      break;
      
    case RNETA_TX_RX:
      (void)RADIO_Process();
      break;
  
    default:
      break;
    } /* switch */
    break; /* break for loop */
  } /* for */
}
Beispiel #4
0
static void Process(void) {
    for(;;) {
        switch(appState) {
        case RNETA_NONE:
            appState = RNETA_POWERUP;
            continue;

        case RNETA_POWERUP:
            RadioPowerUp();
            (void)RADIO_SetChannel(RADIO_CHANNEL_DATA);
            appState = RNETA_TX_RX;
            break;

        case RNETA_TX_RX:
            (void)RADIO_Process();
            break;

        default:
            break;
        } /* switch */
        break; /* break for loop */
    } /* for */
}
Beispiel #5
0
/*
** ===================================================================
**     Method      :  RNET1_Process (component RNet)
**     Description :
**         Processes the Radio Rx and Tx messages
**     Parameters  : None
**     Returns     :
**         ---             - Error code
** ===================================================================
*/
uint8_t RNET1_Process(void)
{
  return RADIO_Process();
}