switch_test/User/dac.h

17 lines
275 B
C

#ifndef __DAC_H
#define __DAC_H
#include "stm32f4xx.h"
#define DAC_DHR12RD_Address (uint32_t)(DAC_BASE+0x20) //DAC通道数据输出寄存器地址 0x40007420//
void DAC_Config(void);
void DAC1_SetVol(float voltage);
void DAC2_SetVol(float voltage);
#endif /* __DAC_H */