|

楼主 |
发表于 2022-1-18 17:48:38
|
显示全部楼层
uint32_t GetSingleChannelVoltage_DMA(uint32_t channel)
{
uint32_t GetChannelVoltage;
GetDMAChannelSample(channel);
GetChannelVoltage = ((uint64_t)DMAResult[0] * ADC_VREF * 3000) / (DMAResult[1] * 4095);
return GetChannelVoltage;
}
DMAResult[0]跟DMAResult[1] 对调一下就好了 那就是库函数有问题 |
|