summaryrefslogtreecommitdiff
path: root/nuttx/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers')
-rw-r--r--nuttx/drivers/net/slip.c12
-rw-r--r--nuttx/drivers/usbdev/usbmsc.c2
-rw-r--r--nuttx/drivers/usbhost/usbhost_hidkbd.c5
-rw-r--r--nuttx/drivers/usbhost/usbhost_hidmouse.c5
4 files changed, 2 insertions, 22 deletions
diff --git a/nuttx/drivers/net/slip.c b/nuttx/drivers/net/slip.c
index b09a79753..799a12f56 100644
--- a/nuttx/drivers/net/slip.c
+++ b/nuttx/drivers/net/slip.c
@@ -960,13 +960,8 @@ int slip_initialize(int intf, FAR const char *devname)
argv[0] = buffer;
argv[1] = NULL;
-#ifndef CONFIG_CUSTOM_STACK
priv->rxpid = task_create("rxslip", CONFIG_SLIP_DEFPRIO,
CONFIG_SLIP_STACKSIZE, (main_t)slip_rxtask, argv);
-#else
- priv->rxpid = task_create("rxslip", CONFIG_SLIP_DEFPRIO,
- (main_t)slip_rxtask, argv);
-#endif
if (priv->rxpid < 0)
{
ndbg("ERROR: Failed to start receiver task\n");
@@ -979,13 +974,8 @@ int slip_initialize(int intf, FAR const char *devname)
/* Start the SLIP transmitter task */
-#ifndef CONFIG_CUSTOM_STACK
priv->txpid = task_create("txslip", CONFIG_SLIP_DEFPRIO,
- CONFIG_SLIP_STACKSIZE, (main_t)slip_txtask, argv);
-#else
- priv->txpid = task_create("txslip", CONFIG_SLIP_DEFPRIO,
- (main_t)slip_txtask, argv);
-#endif
+ CONFIG_SLIP_STACKSIZE, (main_t)slip_txtask, argv);
if (priv->txpid < 0)
{
ndbg("ERROR: Failed to start receiver task\n");
diff --git a/nuttx/drivers/usbdev/usbmsc.c b/nuttx/drivers/usbdev/usbmsc.c
index 6bcd33fcd..05fd8e771 100644
--- a/nuttx/drivers/usbdev/usbmsc.c
+++ b/nuttx/drivers/usbdev/usbmsc.c
@@ -1646,7 +1646,7 @@ int usbmsc_exportluns(FAR void *handle)
g_usbmsc_handoff = priv;
uvdbg("Starting SCSI worker thread\n");
- priv->thpid = KERNEL_THREAD("scsid", CONFIG_USBMSC_SCSI_PRIO,
+ priv->thpid = kernel_thread("scsid", CONFIG_USBMSC_SCSI_PRIO,
CONFIG_USBMSC_SCSI_STACKSIZE,
usbmsc_scsi_main, NULL);
if (priv->thpid <= 0)
diff --git a/nuttx/drivers/usbhost/usbhost_hidkbd.c b/nuttx/drivers/usbhost/usbhost_hidkbd.c
index 763c3151c..53cd15561 100644
--- a/nuttx/drivers/usbhost/usbhost_hidkbd.c
+++ b/nuttx/drivers/usbhost/usbhost_hidkbd.c
@@ -1577,14 +1577,9 @@ static inline int usbhost_devinit(FAR struct usbhost_state_s *priv)
usbhost_takesem(&g_exclsem);
g_priv = priv;
-#ifndef CONFIG_CUSTOM_STACK
priv->pollpid = task_create("kbdpoll", CONFIG_HIDKBD_DEFPRIO,
CONFIG_HIDKBD_STACKSIZE,
(main_t)usbhost_kbdpoll, (FAR char * const *)NULL);
-#else
- priv->pollpid = task_create("kbdpoll", CONFIG_HIDKBD_DEFPRIO,
- (main_t)usbhost_kbdpoll, (FAR char * const *)NULL);
-#endif
if (priv->pollpid == ERROR)
{
/* Failed to started the poll thread... probably due to memory resources */
diff --git a/nuttx/drivers/usbhost/usbhost_hidmouse.c b/nuttx/drivers/usbhost/usbhost_hidmouse.c
index 5fdf181fa..d79d94fd0 100644
--- a/nuttx/drivers/usbhost/usbhost_hidmouse.c
+++ b/nuttx/drivers/usbhost/usbhost_hidmouse.c
@@ -1649,14 +1649,9 @@ static inline int usbhost_devinit(FAR struct usbhost_state_s *priv)
usbhost_takesem(&g_exclsem);
g_priv = priv;
-#ifndef CONFIG_CUSTOM_STACK
priv->pollpid = task_create("mouse", CONFIG_HIDMOUSE_DEFPRIO,
CONFIG_HIDMOUSE_STACKSIZE,
(main_t)usbhost_mouse_poll, (FAR char * const *)NULL);
-#else
- priv->pollpid = task_create("mouse", CONFIG_HIDMOUSE_DEFPRIO,
- (main_t)usbhost_mouse_poll, (FAR char * const *)NULL);
-#endif
if (priv->pollpid == ERROR)
{
/* Failed to started the poll thread... probably due to memory resources */