diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-06 09:19:15 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-06 09:19:15 -0600 |
commit | 47bea0e67e4093d4482e8781782b98abda134801 (patch) | |
tree | 950f50b0f2119e9785e89becdaf239bb298d5146 /apps/system/cdcacm | |
parent | dfbcec0bde2500b34356050537ca9d85c694412b (diff) | |
download | nuttx-47bea0e67e4093d4482e8781782b98abda134801.tar.gz nuttx-47bea0e67e4093d4482e8781782b98abda134801.tar.bz2 nuttx-47bea0e67e4093d4482e8781782b98abda134801.zip |
With kernel build, entry point to all tasks is main, not some xyz_main
Diffstat (limited to 'apps/system/cdcacm')
-rw-r--r-- | apps/system/cdcacm/cdcacm_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/system/cdcacm/cdcacm_main.c b/apps/system/cdcacm/cdcacm_main.c index 724e8fd14..ee6b545ac 100644 --- a/apps/system/cdcacm/cdcacm_main.c +++ b/apps/system/cdcacm/cdcacm_main.c @@ -79,7 +79,11 @@ struct cdcacm_state_s g_cdcacm; * ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int sercon_main(int argc, char *argv[]) +#endif { int ret; @@ -118,10 +122,14 @@ int sercon_main(int argc, char *argv[]) * * Description: * This is a program entry point that will disconnect the CDC/ACM serial +#ifdef CONFIG_BUILD_KERNEL * device. +int main(int argc, FAR char **argv) * +#else ****************************************************************************/ +#endif int serdis_main(int argc, char *argv[]) { /* First check if the USB mass storage device is already connected */ |