mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 00:28:18 +00:00
lwip: fix compile for NO_SYS
This commit is contained in:
parent
917f809a51
commit
45e58dda4d
@ -133,8 +133,7 @@ static void bnep_lwip_outgoing_reset_queue(void){
|
|||||||
static void bnep_lwip_outgoing_queue_packet(struct pbuf *p){
|
static void bnep_lwip_outgoing_queue_packet(struct pbuf *p){
|
||||||
#if NO_SYS
|
#if NO_SYS
|
||||||
// queue up
|
// queue up
|
||||||
void * pointer = (void * ) p;
|
btstack_ring_buffer_write(&bnep_lwip_outgoing_queue, (uint8_t *) &p, sizeof(struct pbuf *));
|
||||||
btstack_ring_buffer_write(&bnep_lwip_outgoing_queue, (uint8_t *) &pointer, sizeof(struct pbuf *));
|
|
||||||
#else
|
#else
|
||||||
// queue up
|
// queue up
|
||||||
xQueueSendToBack(bnep_lwip_outgoing_queue, &p, portMAX_DELAY);
|
xQueueSendToBack(bnep_lwip_outgoing_queue, &p, portMAX_DELAY);
|
||||||
@ -145,7 +144,7 @@ static struct pbuf * bnep_lwip_outgoing_pop_packet(void){
|
|||||||
struct pbuf * p = NULL;
|
struct pbuf * p = NULL;
|
||||||
#if NO_SYS
|
#if NO_SYS
|
||||||
uint32_t bytes_read = 0;
|
uint32_t bytes_read = 0;
|
||||||
btstack_ring_buffer_read(&bnep_lwip_outgoing_queue, (uint8_t *) &pointer, sizeof(struct pbuf *), &bytes_read);
|
btstack_ring_buffer_read(&bnep_lwip_outgoing_queue, (uint8_t *) &p, sizeof(struct pbuf *), &bytes_read);
|
||||||
(void) bytes_read;
|
(void) bytes_read;
|
||||||
#else
|
#else
|
||||||
xQueueReceive(bnep_lwip_outgoing_queue, &p, portMAX_DELAY);
|
xQueueReceive(bnep_lwip_outgoing_queue, &p, portMAX_DELAY);
|
||||||
|
Loading…
Reference in New Issue
Block a user