Remove the unnecessary cast for main_t, NULL and argv
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
7923ea3bef
commit
6b31918b42
113 changed files with 149 additions and 159 deletions
|
|
@ -55,7 +55,7 @@ extern up_vector_t _svectors[];
|
|||
|
||||
static up_vector_t g_vectorinittab[] =
|
||||
{
|
||||
(up_vector_t)NULL,
|
||||
NULL,
|
||||
arm_vectorundefinsn,
|
||||
arm_vectorsvc,
|
||||
arm_vectorprefetch,
|
||||
|
|
|
|||
|
|
@ -606,7 +606,7 @@ static int lpc54_eth_transmit(struct lpc54_ethdriver_s *priv,
|
|||
/* Prepare the Tx descriptor for transmission */
|
||||
|
||||
txdesc->buffer1 = (uint32_t)buffer;
|
||||
txdesc->buffer2 = (uint32_t)NULL;
|
||||
txdesc->buffer2 = 0;
|
||||
|
||||
/* One buffer, no timestamp, interrupt on completion */
|
||||
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ DMA_HANDLE max326_dma_channel(void)
|
|||
}
|
||||
|
||||
spin_unlock_irqrestore(NULL, flags);
|
||||
return (DMA_HANDLE)NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -684,10 +684,8 @@ static int ameba_attach(struct uart_dev_s *dev)
|
|||
static void ameba_detach(struct uart_dev_s *dev)
|
||||
{
|
||||
struct ameba_s *priv = (struct ameba_s *)dev->priv;
|
||||
hal_uart_stubs.hal_uart_txtd_hook(&priv->adapter,
|
||||
NULL, (uintptr_t)NULL, 0);
|
||||
hal_uart_stubs.hal_uart_rxind_hook(&priv->adapter,
|
||||
NULL, (uintptr_t)NULL, 0);
|
||||
hal_uart_stubs.hal_uart_txtd_hook(&priv->adapter, NULL, 0, 0);
|
||||
hal_uart_stubs.hal_uart_rxind_hook(&priv->adapter, NULL, 0, 0);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -1964,7 +1964,7 @@ DMA_HANDLE sam_dmachannel(uint8_t dmacno, uint32_t chflags)
|
|||
{
|
||||
dmaerr("ERROR: Bad DMAC number: %d\n", dmacno);
|
||||
DEBUGPANIC();
|
||||
return (DMA_HANDLE)NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Search for an available DMA channel with at least the requested FIFO
|
||||
|
|
|
|||
|
|
@ -2095,7 +2095,7 @@ DMA_HANDLE sam_dmachannel(uint8_t dmacno, uint32_t chflags)
|
|||
{
|
||||
dmaerr("ERROR: Bad XDMAC number: %d\n", dmacno);
|
||||
DEBUGPANIC();
|
||||
return (DMA_HANDLE)NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Search for an available DMA channel with at least the requested FIFO
|
||||
|
|
|
|||
|
|
@ -1909,7 +1909,7 @@ TIMER_HANDLE tiva_gptm_configure(const struct tiva_gptmconfig_s *config)
|
|||
#endif
|
||||
|
||||
default:
|
||||
return (TIMER_HANDLE)NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Initialize the state structure */
|
||||
|
|
@ -1989,7 +1989,7 @@ TIMER_HANDLE tiva_gptm_configure(const struct tiva_gptmconfig_s *config)
|
|||
#else
|
||||
tmrinfo("tiva_gptm_configure:");
|
||||
tmrinfo(" Error: alternate clock only available on TM4C129 devices\n");
|
||||
return (TIMER_HANDLE)NULL;
|
||||
return NULL;
|
||||
#endif /* CONFIG_ARCH_CHIP_TM4C129 */
|
||||
}
|
||||
else
|
||||
|
|
@ -2019,7 +2019,7 @@ TIMER_HANDLE tiva_gptm_configure(const struct tiva_gptmconfig_s *config)
|
|||
ret = tiva_timer32_configure(priv, &config32->config);
|
||||
}
|
||||
#else
|
||||
return (TIMER_HANDLE)NULL;
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
|
@ -2061,13 +2061,13 @@ TIMER_HANDLE tiva_gptm_configure(const struct tiva_gptmconfig_s *config)
|
|||
TIMER16B);
|
||||
}
|
||||
#else
|
||||
return (TIMER_HANDLE)NULL;
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Return the timer handler if successfully configured */
|
||||
|
||||
return ret < 0 ? (TIMER_HANDLE)NULL : (TIMER_HANDLE)priv;
|
||||
return ret < 0 ? NULL : (TIMER_HANDLE)priv;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -1886,8 +1886,8 @@ static void rx65n_interrupt_work(FAR void *arg)
|
|||
|
||||
if (phylinknotification.phandler != NULL)
|
||||
{
|
||||
phylinknotification.phandler(irqno, (FAR void *)NULL,
|
||||
(FAR void *)phylinknotification.pclient);
|
||||
phylinknotification.phandler(irqno, NULL,
|
||||
phylinknotification.pclient);
|
||||
priv->prevlinkstatus = regval;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -457,9 +457,9 @@ dtc_static_transfer_data_cfg_t tx_cfg =
|
|||
.response_interrupt = DTC_INTERRUPT_AFTER_ALL_COMPLETE,
|
||||
.repeat_block_side = DTC_REPEAT_BLOCK_DESTINATION,
|
||||
.dest_addr_mode = DTC_DES_ADDR_FIXED,
|
||||
.source_addr = (uint32_t)NULL, /* This will set dynamically */
|
||||
.dest_addr = (uint32_t)NULL, /* Set data register address */
|
||||
.transfer_count = 0, /* This will set dynamically */
|
||||
.source_addr = 0, /* This will set dynamically */
|
||||
.dest_addr = 0, /* Set data register address */
|
||||
.transfer_count = 0, /* This will set dynamically */
|
||||
#if CONFIG_RX65N_RSPI_BUF_SIZE > 1
|
||||
.block_size = CONFIG_RX65N_RSPI_BUF_SIZE, /* Looks like tx fifo size */
|
||||
#else
|
||||
|
|
@ -486,9 +486,9 @@ dtc_static_transfer_data_cfg_t rx_cfg =
|
|||
.response_interrupt = DTC_INTERRUPT_AFTER_ALL_COMPLETE,
|
||||
.repeat_block_side = DTC_REPEAT_BLOCK_SOURCE,
|
||||
.dest_addr_mode = DTC_DES_ADDR_INCR,
|
||||
.source_addr = (uint32_t)NULL, /* Set data register address */
|
||||
.dest_addr = (uint32_t)NULL, /* This will set dynamically */
|
||||
.transfer_count = 0, /* This will set dynamically */
|
||||
.source_addr = 0, /* Set data register address */
|
||||
.dest_addr = 0, /* This will set dynamically */
|
||||
.transfer_count = 0, /* This will set dynamically */
|
||||
#if CONFIG_RX65N_RSPI_BUF_SIZE > 1
|
||||
.block_size = CONFIG_RX65N_RSPI_BUF_SIZE, /* Looks like tx fifo size */
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ static void slab_init(uintptr_t start)
|
|||
static uintptr_t slab_alloc(void)
|
||||
{
|
||||
pgalloc_slab_t *slab = (pgalloc_slab_t *)sq_remfirst(&g_free_slabs);
|
||||
return slab ? (uintptr_t)slab->memory : (uintptr_t)NULL;
|
||||
return slab ? (uintptr_t)slab->memory : 0;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ static void slab_init(uintptr_t start)
|
|||
static uintptr_t slab_alloc(void)
|
||||
{
|
||||
pgalloc_slab_t *slab = (pgalloc_slab_t *)sq_remfirst(&g_free_slabs);
|
||||
return slab ? (uintptr_t)slab->memory : (uintptr_t)NULL;
|
||||
return slab ? (uintptr_t)slab->memory : 0;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ static void slab_init(uintptr_t start)
|
|||
static uintptr_t slab_alloc(void)
|
||||
{
|
||||
pgalloc_slab_t *slab = (pgalloc_slab_t *)sq_remfirst(&g_free_slabs);
|
||||
return slab ? (uintptr_t)slab->memory : (uintptr_t)NULL;
|
||||
return slab ? (uintptr_t)slab->memory : 0;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -233,14 +233,14 @@ int esp_himem_init(void)
|
|||
|
||||
/* Looks weird; last arg is empty so it expands to 'return ;' */
|
||||
|
||||
HIMEM_CHECK(g_ram_descriptor != NULL, "already initialized", (int) NULL);
|
||||
HIMEM_CHECK(g_ram_descriptor != NULL, "already initialized", 0);
|
||||
|
||||
HIMEM_CHECK(g_range_descriptor != NULL, "already initialized", (int) NULL);
|
||||
HIMEM_CHECK(g_range_descriptor != NULL, "already initialized", 0);
|
||||
|
||||
/* need to have some reserved banks */
|
||||
|
||||
HIMEM_CHECK(SPIRAM_BANKSWITCH_RESERVE == 0, "No banks reserved for \
|
||||
himem", (int) NULL);
|
||||
himem", 0);
|
||||
|
||||
/* Start and end of physical reserved memory. Note it starts slightly under
|
||||
* the 4MiB mark as the reserved banks can't have an unity mapping to be
|
||||
|
|
|
|||
|
|
@ -621,7 +621,7 @@ void get_pwon_out_param(as_aca_pulco_out_param_t *param)
|
|||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron(void)
|
||||
{
|
||||
if (fw_as_acacontrol(AS_ACA_CHECK_ID, (uint32_t)NULL) != 0)
|
||||
if (fw_as_acacontrol(AS_ACA_CHECK_ID, 0) != 0)
|
||||
{
|
||||
return CXD56_AUDIO_ECODE_ANA_CHKID;
|
||||
}
|
||||
|
|
@ -647,7 +647,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweron(void)
|
|||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff(void)
|
||||
{
|
||||
if (fw_as_acacontrol(AS_ACA_POWER_OFF_COMMON, (uint32_t)NULL) != 0)
|
||||
if (fw_as_acacontrol(AS_ACA_POWER_OFF_COMMON, 0) != 0)
|
||||
{
|
||||
return CXD56_AUDIO_ECODE_ANA_PWOFF;
|
||||
}
|
||||
|
|
@ -657,7 +657,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff(void)
|
|||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_micbias(void)
|
||||
{
|
||||
if (fw_as_acacontrol(AS_ACA_POWER_ON_MICBIAS, (uint32_t)NULL) != 0)
|
||||
if (fw_as_acacontrol(AS_ACA_POWER_ON_MICBIAS, 0) != 0)
|
||||
{
|
||||
return CXD56_AUDIO_ECODE_ANA_PWON_MBIAS;
|
||||
}
|
||||
|
|
@ -712,7 +712,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_output(void)
|
|||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff_input(void)
|
||||
{
|
||||
if (fw_as_acacontrol(AS_ACA_POWER_OFF_INPUT, (uint32_t)NULL) != 0)
|
||||
if (fw_as_acacontrol(AS_ACA_POWER_OFF_INPUT, 0) != 0)
|
||||
{
|
||||
return CXD56_AUDIO_ECODE_ANA_PWOFF_INPUT;
|
||||
}
|
||||
|
|
@ -722,7 +722,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff_input(void)
|
|||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff_output(void)
|
||||
{
|
||||
if (fw_as_acacontrol(AS_ACA_POWER_OFF_OUTPUT, (uint32_t)NULL) != 0)
|
||||
if (fw_as_acacontrol(AS_ACA_POWER_OFF_OUTPUT, 0) != 0)
|
||||
{
|
||||
return CXD56_AUDIO_ECODE_ANA_PWOFF_OUTPUT;
|
||||
}
|
||||
|
|
@ -769,7 +769,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_set_micgain(
|
|||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_notify_micbootdone(void)
|
||||
{
|
||||
if (fw_as_acacontrol(AS_ACA_SET_AMIC_BOOT_DONE, (uint32_t)NULL) != 0)
|
||||
if (fw_as_acacontrol(AS_ACA_SET_AMIC_BOOT_DONE, 0) != 0)
|
||||
{
|
||||
return CXD56_AUDIO_ECODE_ANA_NOTIFY_MICBOOT;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ int imxrt_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ int imxrt_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ int imxrt_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -480,7 +480,7 @@ int k28_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
return pid < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_MCB1700_USBHOST_PRIO,
|
||||
CONFIG_MCB1700_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_LPC1766STK_USBHOST_PRIO,
|
||||
CONFIG_LPC1766STK_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ int lpc31_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ int lpc31_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO, i
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ int sam_watchdog_initialize(void)
|
|||
int taskid = kthread_create(CONFIG_WDT_THREAD_NAME,
|
||||
CONFIG_WDT_THREAD_PRIORITY,
|
||||
CONFIG_WDT_THREAD_STACKSIZE,
|
||||
(main_t)wdog_daemon, (char * const *)NULL);
|
||||
wdog_daemon, NULL);
|
||||
|
||||
DEBUGASSERT(taskid > 0);
|
||||
UNUSED(taskid);
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ int sam_usbhost_initialize(void)
|
|||
ret = kthread_create("OHCI Monitor",
|
||||
CONFIG_SAMA5D27_GIANT_BOARD_USBHOST_PRIO,
|
||||
CONFIG_SAMA5D27_GIANT_BOARD_USBHOST_STACKSIZE,
|
||||
(main_t)ohci_waiter, (char * const *)NULL);
|
||||
ohci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ohci_waiter task: %d\n", ret);
|
||||
|
|
@ -316,7 +316,7 @@ int sam_usbhost_initialize(void)
|
|||
ret = kthread_create("EHCI Monitor",
|
||||
CONFIG_SAMA5D27_GIANT_BOARD_USBHOST_PRIO,
|
||||
CONFIG_SAMA5D27_GIANT_BOARD_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ int sam_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("OHCI Monitor", CONFIG_SAMA5D2XULT_USBHOST_PRIO,
|
||||
CONFIG_SAMA5D2XULT_USBHOST_STACKSIZE,
|
||||
(main_t)ohci_waiter, (char * const *)NULL);
|
||||
ohci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ohci_waiter task: %d\n", ret);
|
||||
|
|
@ -362,7 +362,7 @@ int sam_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("EHCI Monitor", CONFIG_SAMA5D2XULT_USBHOST_PRIO,
|
||||
CONFIG_SAMA5D2XULT_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ int sam_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("OHCI Monitor", CONFIG_SAMA5D3XPLAINED_USBHOST_PRIO,
|
||||
CONFIG_SAMA5D3XPLAINED_USBHOST_STACKSIZE,
|
||||
(main_t)ohci_waiter, (char * const *)NULL);
|
||||
ohci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ohci_waiter task: %d\n", ret);
|
||||
|
|
@ -370,7 +370,7 @@ int sam_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("EHCI Monitor", CONFIG_SAMA5D3XPLAINED_USBHOST_PRIO,
|
||||
CONFIG_SAMA5D3XPLAINED_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -347,7 +347,7 @@ int sam_usbhost_initialize(void)
|
|||
ret = kthread_create("OHCI Monitor",
|
||||
CONFIG_SAMA5D3XEK_USBHOST_PRIO,
|
||||
CONFIG_SAMA5D3XEK_USBHOST_STACKSIZE,
|
||||
(main_t)ohci_waiter, (char * const *)NULL);
|
||||
ohci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ohci_waiter task: %d\n", ret);
|
||||
|
|
@ -369,7 +369,7 @@ int sam_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("EHCI Monitor", CONFIG_SAMA5D3XEK_USBHOST_PRIO,
|
||||
CONFIG_SAMA5D3XEK_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -346,7 +346,7 @@ int sam_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("OHCI Monitor", CONFIG_SAMA5D4EK_USBHOST_PRIO,
|
||||
CONFIG_SAMA5D4EK_USBHOST_STACKSIZE,
|
||||
(main_t)ohci_waiter, (char * const *)NULL);
|
||||
ohci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ohci_waiter task: %d\n", ret);
|
||||
|
|
@ -368,7 +368,7 @@ int sam_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("EHCI Monitor", CONFIG_SAMA5D4EK_USBHOST_PRIO,
|
||||
CONFIG_SAMA5D4EK_USBHOST_STACKSIZE,
|
||||
(main_t)ehci_waiter, (char * const *)NULL);
|
||||
ehci_waiter, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ int samd_usbhost_initialize(void)
|
|||
uinfo("Start usbhost_waiter\n");
|
||||
ret = kthread_create("usbhost", CONFIG_METRO_M4_USBHOST_PRIO,
|
||||
CONFIG_METRO_M4_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char *const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ int stm32_usbhost_initialize(void)
|
|||
uinfo("Start usbhost_waiter\n");
|
||||
ret = kthread_create("usbhost", CONFIG_AXOLOTI_USBHOST_PRIO,
|
||||
CONFIG_AXOLOTI_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char *const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_NUCLEOF207ZG_USBHOST_PRIO,
|
||||
CONFIG_NUCLEOF207ZG_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32F411DISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32F411DISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32F4DISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32F4DISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32F4DISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32F4DISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32H407_USBHOST_PRIO,
|
||||
CONFIG_STM32H407_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ int stm32_usbhost_setup(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_OLIMEXP407_USBHOST_PRIO,
|
||||
CONFIG_OLIMEXP407_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_OMNIBUSF4_USBHOST_PRIO,
|
||||
CONFIG_OMNIBUSF4_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ int photon_watchdog_initialize(void)
|
|||
int taskid = kthread_create(CONFIG_PHOTON_WDG_THREAD_NAME,
|
||||
CONFIG_PHOTON_WDG_THREAD_PRIORITY,
|
||||
CONFIG_PHOTON_WDG_THREAD_STACKSIZE,
|
||||
(main_t)wdog_daemon, (char * const *)NULL);
|
||||
wdog_daemon, NULL);
|
||||
|
||||
if (taskid <= 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32F411MINIMUM_USBHOST_PRIO,
|
||||
CONFIG_STM32F411MINIMUM_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32F411DISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32F411DISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32F429IDISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32F429IDISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32F4DISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32F4DISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_NUCLEO144_USBHOST_PRIO,
|
||||
CONFIG_NUCLEO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32F7F4DISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32F7F4DISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_NUCLEOH743ZI_USBHOST_PRIO,
|
||||
CONFIG_NUCLEOH743ZI_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32H747XI_DISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32H747XI_DISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ int stm32_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32F4DISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32F4DISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ int stm32l4_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32L4DISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32L4DISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ int stm32l4_usbhost_initialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_STM32L4DISCO_USBHOST_PRIO,
|
||||
CONFIG_STM32L4DISCO_USBHOST_STACKSIZE,
|
||||
(main_t)usbhost_waiter, (char * const *)NULL);
|
||||
usbhost_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -315,7 +315,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -315,7 +315,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (FAR char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
syslog(LOG_INFO, "USBHost: Created pid = %d\n", ret);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ static int nsh_usbhostinitialize(void)
|
|||
|
||||
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
(main_t)nsh_waiter, (FAR char * const *)NULL);
|
||||
nsh_waiter, NULL);
|
||||
syslog(LOG_INFO, "USBHost: Created pid = %d\n", ret);
|
||||
return ret < 0 ? -ENOEXEC : OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ int xx3803_watchdog_initialize(void)
|
|||
int taskid = kthread_create(CONFIG_XX3803_WDG_THREAD_NAME,
|
||||
CONFIG_XX3803_WDG_THREAD_PRIORITY,
|
||||
CONFIG_XX3803_WDG_THREAD_STACKSIZE,
|
||||
(main_t)wdog_daemon, (char * const *)NULL);
|
||||
wdog_daemon, NULL);
|
||||
|
||||
DEBUGASSERT(taskid > 0);
|
||||
UNUSED(taskid);
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ const struct userspace_s userspace locate_data(".userspace") =
|
|||
{
|
||||
/* General memory map */
|
||||
|
||||
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
|
||||
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
|
||||
.us_textstart = (uintptr_t)_stext,
|
||||
.us_textend = (uintptr_t)_etext,
|
||||
.us_datasource = (uintptr_t)_eronly,
|
||||
|
|
|
|||
|
|
@ -1819,7 +1819,7 @@ static int cxd56_power_on_aca(uint32_t samplerate)
|
|||
uint8_t mic_sel;
|
||||
uint8_t i;
|
||||
|
||||
if (fw_as_acacontrol(CXD56_ACA_CTL_CHECK_ID, (uint32_t)NULL) != 0)
|
||||
if (fw_as_acacontrol(CXD56_ACA_CTL_CHECK_ID, 0) != 0)
|
||||
{
|
||||
return -ENXIO;
|
||||
}
|
||||
|
|
@ -2047,7 +2047,7 @@ static int cxd56_power_on_micbias(FAR struct cxd56_dev_s *dev)
|
|||
{
|
||||
struct timespec start;
|
||||
|
||||
if (fw_as_acacontrol(CXD56_ACA_CTL_POWER_ON_MICBIAS, (uint32_t)NULL) != 0)
|
||||
if (fw_as_acacontrol(CXD56_ACA_CTL_POWER_ON_MICBIAS, 0) != 0)
|
||||
{
|
||||
return -EBUSY;
|
||||
}
|
||||
|
|
@ -2535,7 +2535,7 @@ static int cxd56_power_off(FAR struct cxd56_dev_s *dev)
|
|||
|
||||
cxd56_audio_clock_disable();
|
||||
|
||||
if (fw_as_acacontrol(CXD56_ACA_CTL_POWER_OFF_COMMON, (uint32_t)NULL) != 0)
|
||||
if (fw_as_acacontrol(CXD56_ACA_CTL_POWER_OFF_COMMON, 0) != 0)
|
||||
{
|
||||
return -EBUSY;
|
||||
}
|
||||
|
|
@ -2979,7 +2979,7 @@ static int cxd56_stop_dma(FAR struct cxd56_dev_s *priv)
|
|||
/* Disable input */
|
||||
|
||||
if (fw_as_acacontrol(CXD56_ACA_CTL_POWER_OFF_INPUT,
|
||||
(uint32_t)NULL) != 0)
|
||||
0) != 0)
|
||||
{
|
||||
return -EBUSY;
|
||||
}
|
||||
|
|
@ -3003,7 +3003,7 @@ static int cxd56_stop_dma(FAR struct cxd56_dev_s *priv)
|
|||
write_reg(REG_AC_PDN_SMSTR, 1);
|
||||
|
||||
if (fw_as_acacontrol(CXD56_ACA_CTL_POWER_OFF_OUTPUT,
|
||||
(uint32_t)NULL) != 0)
|
||||
0) != 0)
|
||||
{
|
||||
return -EBUSY;
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue