define embedded_trigger to trigger run loop iteration and call from tick callback and hci h4 dma transport implementation

This commit is contained in:
matthias.ringwald 2011-08-05 15:50:55 +00:00
parent a130134ed3
commit e96f52b81b
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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;