diff options
Diffstat (limited to 'apps/examples/pwm')
-rw-r--r-- | apps/examples/pwm/pwm_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/pwm/pwm_main.c b/apps/examples/pwm/pwm_main.c index 956ff04c5..e264b9927 100644 --- a/apps/examples/pwm/pwm_main.c +++ b/apps/examples/pwm/pwm_main.c @@ -273,7 +273,11 @@ static void parse_args(FAR struct pwm_state_s *pwm, int argc, FAR char **argv) * Name: pwm_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int pwm_main(int argc, char *argv[]) +#endif { struct pwm_info_s info; int fd; |