xref: /btstack/port/windows-h4/main.c (revision 4e630824c7dca7c1fc788695dd11e6601e8883d0)
1 #include <stdint.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <string.h>
5 #include <signal.h>
6 
7 #include "btstack_config.h"
8 
9 #include "btstack_debug.h"
10 #include "btstack_event.h"
11 #include "btstack_memory.h"
12 #include "btstack_run_loop.h"
13 #include "btstack_run_loop_windows.h"
14 #include "hci.h"
15 #include "hci_dump.h"
16 #include "hal_led.h"
17 // #include "btstack_link_key_db_fs.h"
18 // #include "stdin_support.h"
19 
20 static int led_state = 0;
21 void hal_led_toggle(void){
22     led_state = 1 - led_state;
23     printf("LED State %u\n", led_state);
24 }
25 
26 int main(int argc, char * argv[]){
27 	printf("BTstack on windows booting up\n");
28 
29 	/// GET STARTED with BTstack ///
30 	btstack_memory_init();
31     btstack_run_loop_init(btstack_run_loop_windows_get_instance());
32 
33     while(1){
34     	printf("time ms %u\n", btstack_run_loop_get_time_ms());
35     }
36 	return 0;
37 }
38