os/services/testbed/testbed.c
static uint8_t
push(uint8_t *rx_pkt, uint8_t len)
{
  if(tb_tx_fifo_pos >= TB_TX_FIFO_LEN) {
    LOG_ERR("E2-W FIFO FULL!\n");
    return 0;
  }
  memcpy(tb_tx_fifo[tb_tx_fifo_pos], rx_pkt, len);
  tb_tx_fifo_pos++;
  LOG_DBG("E2-T++ %u\n", tb_tx_fifo_pos);
  return tb_tx_fifo_pos;
}
/*---------------------------------------------------------------------------*/
// Push a packet to be written to the testbed EEPROM
Push a packet to be written to the testbed EEPROM
Push a packet to be written to the testbed EEPROM
static uint8_t
push(uint8_t *rx_pkt, uint8_t len)
{
  if(tb_tx_fifo_pos >= TB_TX_FIFO_LEN) {
    LOG_ERR("E2-W FIFO FULL!\n");
    return 0;
  }
  memcpy(tb_tx_fifo[tb_tx_fifo_pos], rx_pkt, len);
  tb_tx_fifo_pos++;
  LOG_DBG("E2-T++ %u\n", tb_tx_fifo_pos);
  return tb_tx_fifo_pos;
}
static uint8_t push ( uint8_t * rx_pkt , uint8_t len ) { if ( tb_tx_fifo_pos >= TB_TX_FIFO_LEN ) { LOG_ERR ( " \n " ) ; return 0 ; } memcpy ( tb_tx_fifo [ tb_tx_fifo_pos ] , rx_pkt , len ) ; tb_tx_fifo_pos ++ ; LOG_DBG ( " \n " , tb_tx_fifo_pos ) ; return tb_tx_fifo_pos ; }
Push a packet to be written to the testbed EEPROM
Push a packet to be written to the testbed EEPROM