apps/blehci: Add support for BabbleSim
* under the License.
*/
-#include <assert.h>
#include "os/mynewt.h"
-int
-main(void)
+static int
+main_fn(int argc, char **argv)
{
/* Initialize OS */
sysinit();
@@ -31,3 +30,16 @@ main(void)
}
return 0;
}
+
+int
+main(int argc, char **argv)
+{
+#if BABBLESIM
+ extern void bsim_init(int argc, char** argv, void *main_fn);
+ bsim_init(argc, argv, main_fn);
+#else
+ main_fn(argc, argv);
+#endif
+
+ return 0;
+}
\ No newline at end of file
