Fix some compile problems found in build testing.
This commit is contained in:
parent
8222156b25
commit
4fa6106b57
@ -820,6 +820,7 @@ static const uintptr_t g_layerenable[LCDC_NLAYERS] =
|
||||
#endif
|
||||
};
|
||||
|
||||
#if 0 /* Not used */
|
||||
static const uintptr_t g_layerdisable[LCDC_NLAYERS] =
|
||||
{
|
||||
SAM_LCDC_BASECHDR,
|
||||
@ -830,7 +831,9 @@ static const uintptr_t g_layerdisable[LCDC_NLAYERS] =
|
||||
, SAM_LCDC_HCRCHDR
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
#if 0 /* #if defined(SAMA5_HAVE_POSITION) && defined(SAMA5_HAVE_SIZE) -- not used */
|
||||
static const uintptr_t g_layerstatus[LCDC_NLAYERS] =
|
||||
{
|
||||
SAM_LCDC_BASECHSR,
|
||||
@ -841,6 +844,7 @@ static const uintptr_t g_layerstatus[LCDC_NLAYERS] =
|
||||
, SAM_LCDC_HCRCHSR
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
static const uintptr_t g_layerblend[LCDC_NLAYERS] =
|
||||
{
|
||||
@ -908,6 +912,7 @@ static const uintptr_t g_layercfg[LCDC_NLAYERS] =
|
||||
#endif
|
||||
};
|
||||
|
||||
#if 0 /* Not used */
|
||||
static const uintptr_t g_layercolor[LCDC_NLAYERS] =
|
||||
{
|
||||
SAM_LCDC_BASECFG1,
|
||||
@ -918,6 +923,7 @@ static const uintptr_t g_layercolor[LCDC_NLAYERS] =
|
||||
, SAM_LCDC_HCRCFG1
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef SAMA5_HAVE_POSITION
|
||||
static const uintptr_t g_layerpos[LCDC_NLAYERS] =
|
||||
|
@ -1374,7 +1374,7 @@ static inline int sam_reminted(struct sam_ed_s *ed)
|
||||
|
||||
/* Save the new minimum interval */
|
||||
|
||||
if ((ed->hw.ctrl && ED_CONTROL_D_MASK) == ED_CONTROL_D_IN)
|
||||
if ((ed->hw.ctrl & ED_CONTROL_D_MASK) == ED_CONTROL_D_IN)
|
||||
{
|
||||
g_ohci.ininterval = interval;
|
||||
}
|
||||
|
@ -1648,7 +1648,7 @@ static int cc3000_wait_data(FAR struct cc3000_dev_s *priv, int sockfd)
|
||||
cc3000_devtake(priv);
|
||||
sched_unlock();
|
||||
|
||||
if (!priv->sockets[s].sd == sockfd)
|
||||
if (priv->sockets[s].sd != sockfd)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user