aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 4b46764..4921aed 100644
--- a/src/main.c
+++ b/src/main.c
@@ -34,10 +34,15 @@
#include "target.h"
int
-main(void)
+main(int argc, char **argv)
{
+#if defined(LIBFTDI)
+ assert(platform_init(argc, argv) == 0);
+#else
+ (void) argc;
+ (void) argv;
assert(platform_init() == 0);
-
+#endif
PLATFORM_SET_FATAL_ERROR_RECOVERY();
gdb_main();