Remove type casting to wdentry_t (boards/)
This commit is contained in:
parent
776e469b02
commit
2ca9681b00
@ -382,7 +382,7 @@ static void sam_lcd_dump(struct sam_dev_s *priv);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void sam_lcd_endwait(struct sam_dev_s *priv, int result);
|
static void sam_lcd_endwait(struct sam_dev_s *priv, int result);
|
||||||
static void sam_lcd_dmatimeout(int argc, uint32_t arg);
|
static void sam_lcd_dmatimeout(int argc, uint32_t arg, ...);
|
||||||
static int sam_lcd_dmawait(FAR struct sam_dev_s *priv, uint32_t timeout);
|
static int sam_lcd_dmawait(FAR struct sam_dev_s *priv, uint32_t timeout);
|
||||||
static void sam_lcd_dmacallback(DMA_HANDLE handle, void *arg, int result);
|
static void sam_lcd_dmacallback(DMA_HANDLE handle, void *arg, int result);
|
||||||
static int sam_lcd_txtransfer(FAR struct sam_dev_s *priv,
|
static int sam_lcd_txtransfer(FAR struct sam_dev_s *priv,
|
||||||
@ -939,7 +939,7 @@ static void sam_lcd_endwait(struct sam_dev_s *priv, int result)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void sam_lcd_dmatimeout(int argc, uint32_t arg)
|
static void sam_lcd_dmatimeout(int argc, uint32_t arg, ...)
|
||||||
{
|
{
|
||||||
struct sam_dev_s *priv = (struct sam_dev_s *)arg;
|
struct sam_dev_s *priv = (struct sam_dev_s *)arg;
|
||||||
|
|
||||||
@ -981,7 +981,7 @@ static int sam_lcd_dmawait(FAR struct sam_dev_s *priv, uint32_t timeout)
|
|||||||
|
|
||||||
/* Started ... setup the timeout */
|
/* Started ... setup the timeout */
|
||||||
|
|
||||||
ret = wd_start(priv->dmadog, timeout, (wdentry_t)sam_lcd_dmatimeout,
|
ret = wd_start(priv->dmadog, timeout, sam_lcd_dmatimeout,
|
||||||
1, (uint32_t)priv);
|
1, (uint32_t)priv);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
|
@ -202,7 +202,7 @@ static int gpint_enable(FAR struct gpio_dev_s *dev, bool enable)
|
|||||||
{
|
{
|
||||||
gpioinfo("Start 1 second timer\n");
|
gpioinfo("Start 1 second timer\n");
|
||||||
wd_start(simgpint->wdog, SEC2TICK(1),
|
wd_start(simgpint->wdog, SEC2TICK(1),
|
||||||
(wdentry_t)sim_interrupt, 1, (wdparm_t)dev);
|
sim_interrupt, 1, (wdparm_t)dev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user