Style changes for sam_adc.c and sam_tsd.c
This commit is contained in:
parent
77aede7c87
commit
b6c148e763
@ -2213,7 +2213,7 @@ struct adc_dev_s *sam_adc_initialize(void)
|
||||
/* Initialize the public ADC device data structure */
|
||||
|
||||
#ifdef SAMA5_ADC_HAVE_CHANNELS
|
||||
g_adcdev.ad_ops = &g_adcops;
|
||||
g_adcdev.ad_ops = &g_adcops;
|
||||
priv->dev = &g_adcdev;
|
||||
#endif
|
||||
|
||||
@ -2222,7 +2222,7 @@ struct adc_dev_s *sam_adc_initialize(void)
|
||||
/* Initialize the private ADC device data structure */
|
||||
|
||||
nxmutex_init(&priv->lock);
|
||||
priv->cb = NULL;
|
||||
priv->cb = NULL;
|
||||
|
||||
#ifdef CONFIG_SAMA5_ADC_DMA
|
||||
/* Allocate a DMA channel from DMAC1 */
|
||||
|
@ -138,7 +138,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_TSSCTIM
|
||||
# define BOARD_TSSCTIM 0
|
||||
# define BOARD_TSSCTIM 0
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_TSD_PENDETSENS
|
||||
@ -1382,7 +1382,7 @@ static void sam_tsd_tracking(struct sam_tsd_s *priv, uint32_t time)
|
||||
tracktim--;
|
||||
}
|
||||
}
|
||||
#elif defined (ATSAMA5D3)
|
||||
#elif defined(ATSAMA5D3)
|
||||
tracktim = 0;
|
||||
#else /* ATSAMA5D2*/
|
||||
tracktim = MAX(time, 15);
|
||||
|
Loading…
Reference in New Issue
Block a user