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:
patacongo
2012-08-30 20:13:50 +00:00
parent 6ab6c46f2f
commit b121fbbb00
254 changed files with 777 additions and 613 deletions
+6 -6
View File
@@ -258,32 +258,32 @@ static int wlan_waiter(int argc, char *argv[])
}
/****************************************************************************
* Name: user_start
* Name: wlan_main
****************************************************************************/
int user_start(int argc, char *argv[])
int wlan_main(int argc, char *argv[])
{
pid_t pid;
int ret;
/* First, register all of the USB host Wireless LAN drivers */
printf("user_start: Register drivers\n");
printf("wlan_main: Register drivers\n");
ret = usbhost_wlaninit();
if (ret != OK)
{
printf("user_start: Failed to register the WLAN driver\n");
printf("wlan_main: Failed to register the WLAN driver\n");
}
/* Then get an instance of the USB host interface */
printf("user_start: Initialize USB host WLAN driver\n");
printf("wlan_main: Initialize USB host WLAN driver\n");
g_drvr = usbhost_initialize(0);
if (g_drvr)
{
/* Start a thread to handle device connection. */
printf("user_start: Start wlan_waiter\n");
printf("wlan_main: Start wlan_waiter\n");
#ifndef CONFIG_CUSTOM_STACK
pid = task_create("usbhost", CONFIG_EXAMPLES_WLAN_DEFPRIO,