woody 0189987d91
add synwit swm341 bsp (#6235)
华芯微特SWM341芯片的bsp支持包
* 修改dac.c函数名称错误
* delete swm320-lq100 bsp
* 修复sdio读写块的地址偏移问题
* add synwit swm341 bsp
* 修复gcc下启动文件错误
* 为测试用例添加说明
2022-08-13 22:29:05 -04:00

16 lines
418 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __SWM341_DAC_H__
#define __SWM341_DAC_H__
#define DAC_FORMAT_LSB12B 0 //12位数据DHR[11:0] => DOR[11:0]
#define DAC_FORMAT_MSB12B 1 //12位数据DHR[15:4] => DOR[11:0]
#define DAC_FORMAT_8B 3 // 8位数据DHR[7 :0] => DOR[11:4]
void DAC_Init(DAC_TypeDef * DACx, uint32_t format);
void DAC_Open(DAC_TypeDef * DACx);
void DAC_Close(DAC_TypeDef * DACx);
#endif //__SWM341_DAC_H__