diff options
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_dac.h')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_dac.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_dac.h b/nuttx/arch/arm/src/stm32/stm32_dac.h index 64942b05e..41d681ee7 100644 --- a/nuttx/arch/arm/src/stm32/stm32_dac.h +++ b/nuttx/arch/arm/src/stm32/stm32_dac.h @@ -47,5 +47,40 @@ #include <nuttx/analog/dac.h> +/************************************************************************************ + * Public Function Prototypes + ************************************************************************************/ + +#ifndef __ASSEMBLY__ +#ifdef __cplusplus +#define EXTERN extern "C" +extern "C" { +#else +#define EXTERN extern +#endif + +/**************************************************************************** + * Name: stm32_dacinitialize + * + * Description: + * Initialize the DAC + * + * Input Parameters: + * intf - The DAC interface number. + * + * Returned Value: + * Valid dac device structure reference on succcess; a NULL on failure + * + ****************************************************************************/ + +struct dac_dev_s; +EXTERN FAR struct dac_dev_s *stm32_dacinitialize(int intf); + +#undef EXTERN +#ifdef __cplusplus +} +#endif +#endif /* __ASSEMBLY__ */ + #endif /* __ARCH_ARM_SRC_STM32_STM32_DAC_H */ |