mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
cc110x_ng: use radio_packet_length_t
This commit is contained in:
parent
78237c3fba
commit
5098273d2a
@ -36,8 +36,8 @@ radio_address_t ignored_addr[IGN_MAX];
|
||||
static uint8_t is_ignored(radio_address_t addr);
|
||||
#endif
|
||||
|
||||
static uint8_t receive_packet_variable(uint8_t *rxBuffer, uint8_t length);
|
||||
static uint8_t receive_packet(uint8_t *rxBuffer, uint8_t length);
|
||||
static uint8_t receive_packet_variable(uint8_t *rxBuffer, radio_packet_length_t length);
|
||||
static uint8_t receive_packet(uint8_t *rxBuffer, radio_packet_length_t length);
|
||||
|
||||
rx_buffer_t cc110x_rx_buffer[RX_BUF_SIZE]; ///< RX buffer
|
||||
volatile uint8_t rx_buffer_next; ///< Next packet in RX queue
|
||||
@ -127,7 +127,7 @@ void cc110x_rx_handler(void)
|
||||
}
|
||||
|
||||
|
||||
static uint8_t receive_packet_variable(uint8_t *rxBuffer, uint8_t length)
|
||||
static uint8_t receive_packet_variable(uint8_t *rxBuffer, radio_packet_length_t length)
|
||||
{
|
||||
uint8_t status[2];
|
||||
uint8_t packetLength = 0;
|
||||
@ -177,7 +177,7 @@ static uint8_t receive_packet_variable(uint8_t *rxBuffer, uint8_t length)
|
||||
}
|
||||
}
|
||||
|
||||
static uint8_t receive_packet(uint8_t *rxBuffer, uint8_t length)
|
||||
static uint8_t receive_packet(uint8_t *rxBuffer, radio_packet_length_t length)
|
||||
{
|
||||
uint8_t pkt_len_cfg = cc110x_read_reg(CC1100_PKTCTRL0) & PKT_LENGTH_CONFIG;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user