mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 20:13:33 +08:00
Add configurable application entry point
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5070 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -81,27 +81,15 @@
|
||||
# error "You must define CONFIG_NET_BROADCAST"
|
||||
#endif
|
||||
|
||||
/* If CONFIG_NSH_BUILTIN_APPS is defined, then it is assumed that you want
|
||||
* to execute the DHCPD daemon as an NSH built-in task.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_NSH_BUILTIN_APPS
|
||||
# define MAIN_NAME dhcpd_main
|
||||
# define MAIN_NAME_STRING "dhcpd_main"
|
||||
#else
|
||||
# define MAIN_NAME user_start
|
||||
# define MAIN_NAME_STRING "user_start"
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start/dhcpd_main
|
||||
* Name: dhcpd_main
|
||||
****************************************************************************/
|
||||
|
||||
int MAIN_NAME(int argc, char *argv[])
|
||||
int dhcpd_main(int argc, char *argv[])
|
||||
{
|
||||
struct in_addr addr;
|
||||
#if defined(CONFIG_EXAMPLE_DHCPD_NOMAC)
|
||||
|
||||
Reference in New Issue
Block a user