15 #if defined(BUILD_MODULE) 16 #include "module_cfg.h" 18 #include "kernel_cfg.h" 29 static int g_bluetooth_command = 0;
30 static FILE *g_bluetooth = NULL;
36 g_bluetooth = ev3_serial_open_file( EV3_SERIAL_BT );
37 assert( g_bluetooth != NULL );
43 msg_f(
"ET-Robocon2017 Hirakobasample", 1);
44 msg_f(
" create from github.com/korosuke613/etrobocon2017", 2);
47 etrobocon.
start( g_bluetooth_command );
52 fclose( g_bluetooth );
68 uint8_t c = fgetc( g_bluetooth );
72 g_bluetooth_command = 1;
77 fputc( c, g_bluetooth );
void main_task(intptr_t unused)
void bt_task(intptr_t unused)
void msg_f(const char *str, int32_t line)