This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-blinky.git
The following commit(s) were added to refs/heads/master by this push:
new 7b6afdc Use mynewt_main instead of main
7b6afdc is described below
commit 7b6afdcff5726d02d86145b52f3d82127c4cfa7f
Author: Szymon Janc <[email protected]>
AuthorDate: Wed Jun 21 14:44:20 2023 +0200
Use mynewt_main instead of main
Latest Mynewt has renamed main function and thus mcu_sim_parse_args
is no longer needed.
---
apps/blinky/src/main.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/apps/blinky/src/main.c b/apps/blinky/src/main.c
index 896a448..04c7edf 100755
--- a/apps/blinky/src/main.c
+++ b/apps/blinky/src/main.c
@@ -24,9 +24,6 @@
#include "os/os.h"
#include "bsp/bsp.h"
#include "hal/hal_gpio.h"
-#ifdef ARCH_sim
-#include "mcu/mcu_sim.h"
-#endif
static volatile int g_task1_loops;
@@ -42,14 +39,10 @@ int g_led_pin;
* @return int NOTE: this function should never return!
*/
int
-main(int argc, char **argv)
+mynewt_main(int argc, char **argv)
{
int rc;
-#ifdef ARCH_sim
- mcu_sim_parse_args(argc, argv);
-#endif
-
sysinit();
g_led_pin = LED_BLINK_PIN;