mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-15 13:40:01 +00:00
apps/blehci: Add support for BabbleSim
This commit is contained in:
+15
-3
@@ -17,11 +17,10 @@
|
|||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
#include "os/mynewt.h"
|
#include "os/mynewt.h"
|
||||||
|
|
||||||
int
|
static int
|
||||||
main(void)
|
main_fn(int argc, char **argv)
|
||||||
{
|
{
|
||||||
/* Initialize OS */
|
/* Initialize OS */
|
||||||
sysinit();
|
sysinit();
|
||||||
@@ -31,3 +30,16 @@ main(void)
|
|||||||
}
|
}
|
||||||
return 0;
|
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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user