arch/arm/src/stm32/stm32_dac.c: Fix warning (#148)
Fix warning found in build testing: "warning: 'dac_interrupt' defined but not used [-Wunused-function]. The compiler is right, dac_interrupt is not used. It is, apparently, a placeholder for future interrupt support. Now conditioned out with #if 0 to suppress build test warnings. Co-authored-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
parent
ac1b59fb01
commit
1658d75005
@ -584,7 +584,7 @@ static void tim_modifyreg(FAR struct stm32_chan_s *chan, int offset,
|
||||
|
||||
/* Interrupt handler */
|
||||
|
||||
#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F4XXX)
|
||||
#if 0 /* defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F4XXX) */
|
||||
static int dac_interrupt(int irq, FAR void *context, FAR void *arg);
|
||||
#endif
|
||||
|
||||
@ -873,7 +873,7 @@ static void tim_modifyreg(FAR struct stm32_chan_s *chan, int offset,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F4XXX)
|
||||
#if 0 /* defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F4XXX) */
|
||||
static int dac_interrupt(int irq, FAR void *context, FAR void *arg)
|
||||
{
|
||||
#warning "Missing logic"
|
||||
|
Loading…
Reference in New Issue
Block a user