removed run_loop_execute from embedded examples, call after btstack_main in main.c

This commit is contained in:
Matthias Ringwald 2015-03-31 14:01:58 +02:00
parent 03dff857f7
commit c13e0a893e
39 changed files with 21 additions and 112 deletions

View File

@ -1045,7 +1045,6 @@ int main(void){
// go!
run_loop_execute();
// happy compiler!
return 0;
}
\end{lstlisting}

View File

@ -205,9 +205,5 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -458,9 +458,5 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -827,10 +827,7 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -986,9 +986,5 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -427,8 +427,6 @@ int btstack_main(int argc, const char * argv[]){
btstack_stdin_setup(stdin_process);
/* Start mainloop */
run_loop_execute();
return 0;
}

View File

@ -828,7 +828,6 @@ int btstack_main(int argc, const char * argv[]){
// run_loop_set_timer(&heartbeat, HEARTBEAT_PERIOD_MS);
// run_loop_add_timer(&heartbeat);
run_loop_execute();
return 0;
}

View File

@ -79,6 +79,7 @@ int btstack_main(int argc, const char * argv[]){
hci_register_packet_handler(packet_handler);
// turn on!
hci_power_control(HCI_POWER_ON); run_loop_execute();
hci_power_control(HCI_POWER_ON);
return 0;
}

View File

@ -222,11 +222,7 @@ int btstack_main(int argc, const char * argv[]) {
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -225,10 +225,6 @@ int btstack_main(int argc, const char * argv[]) {
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -297,10 +297,7 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -272,10 +272,7 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -179,7 +179,5 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
return 0;
}

View File

@ -200,7 +200,5 @@ int btstack_main(int argc, const char * argv[]){
btstack_stdin_setup(stdin_process);
// go!
run_loop_execute();
return 0;
}

View File

@ -219,7 +219,5 @@ int btstack_main(int argc, const char * argv[]){
setup_cli();
// go!
run_loop_execute();
return 0;
}

View File

@ -170,6 +170,5 @@ int btstack_main(int argc, const char * argv[]){
hci_power_control(HCI_POWER_ON);
btstack_stdin_setup(stdin_process);
run_loop_execute();
return 0;
}

View File

@ -529,8 +529,6 @@ int btstack_main(int argc, const char * argv[]){
sdp_parser_init();
sdp_parser_register_callback(handle_sdp_client_query_result);
/* Start mainloop */
run_loop_execute();
return 0;
}

View File

@ -226,7 +226,5 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
return 0;
}

View File

@ -140,7 +140,5 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
return 0;
}

View File

@ -137,7 +137,5 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
return 0;
}

View File

@ -298,11 +298,7 @@ int btstack_main(void)
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -208,10 +208,6 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -188,10 +188,6 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -201,7 +201,5 @@ int btstack_main(int argc, const char * argv[]){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
return 0;
}

View File

@ -213,10 +213,6 @@ int btstack_main(int argc, const char * argv[]){
// default to discoverable
hci_discoverable_control(1);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -56,11 +56,6 @@ int btstack_main(int argc, const char * argv[]){
printf("Run...\n\r");
// turn on!
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -198,10 +198,6 @@ int btstack_main(int argc, const char * argv[]){
// make discoverable
hci_discoverable_control(1);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -65,7 +65,9 @@ int main(void)
btstack_main(0, NULL);
// happy compiler!
// go!
run_loop_execute();
return 0;
}

View File

@ -93,7 +93,11 @@ int main(int argc, const char * argv[]){
// handle CTRL-c
signal(SIGINT, sigint_handler);
// setup app
btstack_main(argc, argv);
// go
run_loop_execute();
return 0;
}

View File

@ -213,10 +213,6 @@ int btstack_main(int argc, const char * argv[]){
// default to discoverable
hci_discoverable_control(1);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -275,10 +275,6 @@ int btstack_main(int argc, const char * argv[]){
LED_PORT_OUT &= ~LED_2;
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -349,9 +349,6 @@ int main(void){
// turn on!
hci_power_control(HCI_POWER_ON);
// go!
run_loop_execute();
return 0;
}

View File

@ -56,11 +56,6 @@ int btstack_main(int argc, const char * argv[]){
printf("Run...\n\r");
// turn on!
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -198,10 +198,6 @@ int btstack_main(int argc, const char * argv[]){
// make discoverable
hci_discoverable_control(1);
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -70,7 +70,9 @@ int main(void){
btstack_setup();
btstack_main(0, NULL);
// happy compiler!
run_loop_execute();
return 0;
}

View File

@ -248,10 +248,6 @@ int btstack_main(int argc, const char * argv[]){
// LED_PORT_OUT &= ~LED_2;
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -56,11 +56,6 @@ int btstack_main(int argc, const char * argv[]){
timer_setup();
// go!
run_loop_execute();
// happy compiler!
return 0;
}

View File

@ -79,7 +79,8 @@ int main(void){
btstack_setup();
btstack_main(0, NULL);
// happy compiler!
run_loop_execute();
return 0;
}

View File

@ -433,5 +433,8 @@ int main(void)
// hand over to btstack embedded code
btstack_main();
// go
run_loop_execute();
return 0;
}