mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-18 19:21:54 +00:00
define embedded_trigger to trigger run loop iteration and call from tick callback and hci h4 dma transport implementation
This commit is contained in:
parent
a130134ed3
commit
e96f52b81b
@ -98,7 +98,9 @@ void run_loop_execute(void);
|
||||
uint32_t embedded_get_ticks(void);
|
||||
uint32_t embedded_ticks_for_ms(uint32_t time_in_ms);
|
||||
#endif
|
||||
|
||||
#ifdef EMBEDDED
|
||||
void embedded_trigger(void);
|
||||
#endif
|
||||
#if defined __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -190,6 +190,8 @@ static void h4_block_received(void){
|
||||
case H4_W4_PAYLOAD:
|
||||
h4_state = H4_PACKET_RECEIVED;
|
||||
bytes_to_read = 0;
|
||||
// trigger run loop
|
||||
embedded_trigger();
|
||||
break;
|
||||
|
||||
default:
|
||||
@ -212,6 +214,8 @@ static void h4_block_sent(void){
|
||||
break;
|
||||
case TX_W4_PACKET_SENT:
|
||||
tx_state = TX_DONE;
|
||||
// trigger run loop
|
||||
embedded_trigger();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user