Style changes for sam_adc.c and sam_tsd.c

This commit is contained in:
TimJTi 2022-12-01 22:25:49 +00:00 committed by Petro Karashchenko
parent 77aede7c87
commit b6c148e763
2 changed files with 4 additions and 4 deletions

View File

@ -2213,7 +2213,7 @@ struct adc_dev_s *sam_adc_initialize(void)
/* Initialize the public ADC device data structure */ /* Initialize the public ADC device data structure */
#ifdef SAMA5_ADC_HAVE_CHANNELS #ifdef SAMA5_ADC_HAVE_CHANNELS
g_adcdev.ad_ops = &g_adcops; g_adcdev.ad_ops = &g_adcops;
priv->dev = &g_adcdev; priv->dev = &g_adcdev;
#endif #endif
@ -2222,7 +2222,7 @@ struct adc_dev_s *sam_adc_initialize(void)
/* Initialize the private ADC device data structure */ /* Initialize the private ADC device data structure */
nxmutex_init(&priv->lock); nxmutex_init(&priv->lock);
priv->cb = NULL; priv->cb = NULL;
#ifdef CONFIG_SAMA5_ADC_DMA #ifdef CONFIG_SAMA5_ADC_DMA
/* Allocate a DMA channel from DMAC1 */ /* Allocate a DMA channel from DMAC1 */

View File

@ -138,7 +138,7 @@
#endif #endif
#ifndef BOARD_TSSCTIM #ifndef BOARD_TSSCTIM
# define BOARD_TSSCTIM 0 # define BOARD_TSSCTIM 0
#endif #endif
#ifndef BOARD_TSD_PENDETSENS #ifndef BOARD_TSD_PENDETSENS
@ -1382,7 +1382,7 @@ static void sam_tsd_tracking(struct sam_tsd_s *priv, uint32_t time)
tracktim--; tracktim--;
} }
} }
#elif defined (ATSAMA5D3) #elif defined(ATSAMA5D3)
tracktim = 0; tracktim = 0;
#else /* ATSAMA5D2*/ #else /* ATSAMA5D2*/
tracktim = MAX(time, 15); tracktim = MAX(time, 15);