forked from xuos/xiuos
change LoraDataFormat to SX127xDataFormat for sx127x on nuttx
This commit is contained in:
parent
76a080b130
commit
35ab6fcf8f
|
@ -58,7 +58,7 @@ config LPWAN_SX127X_RXFIFO_LEN
|
|||
|
||||
config LPWAN_SX127X_RXFIFO_DATA_LEN
|
||||
int "SX127X RX FIFO data length"
|
||||
default 128
|
||||
default 256
|
||||
|
||||
endif #LPWAN_SX127X_RXSUPPORT
|
||||
|
||||
|
|
|
@ -903,8 +903,10 @@ static ssize_t sx127x_read(FAR struct file *filep, FAR char *buffer,
|
|||
}
|
||||
|
||||
/* Get RX data from fifo */
|
||||
|
||||
|
||||
wlinfo("buflen=%d \n", buflen);
|
||||
ret = sx127x_rxfifo_get(dev, (uint8_t *)buffer, buflen);
|
||||
|
||||
sx127x_writeregbyte(dev, SX127X_LRM_IRQ, 8);
|
||||
|
||||
nxsem_post(&dev->dev_sem);
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
#ifdef CONFIG_ADAPTER_LORA_SX1278
|
||||
/* Framework connect Lora data */
|
||||
|
||||
struct LoraDataFormat
|
||||
struct SX127xDataFormat
|
||||
{
|
||||
uint8_t flame_head;
|
||||
uint32_t length;
|
||||
|
@ -134,7 +134,7 @@ struct sx127x_read_hdr_s
|
|||
int16_t rssi;
|
||||
uint8_t reserved[3];
|
||||
#ifdef CONFIG_ADAPTER_LORA_SX1278
|
||||
struct LoraDataFormat data;
|
||||
struct SX127xDataFormat data;
|
||||
#else
|
||||
uint8_t data[SX127X_READ_DATA_MAX];
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue