Skip to content

Commit 5236648

Browse files
authored
F1: update STM32ADC.h to fix #801
1 parent 9b81135 commit 5236648

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

STM32F1/libraries/STM32ADC/src/STM32ADC.h

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ class STM32ADC{
3434
*/
3535
void setDMA(uint16 * Buf, uint32 dmaFlags, voidFuncPtr func);
3636
void startDMA(uint16 BufLen);
37+
38+
void setDMA(uint16 * Buf, uint16 BufLen, uint32 dmaFlags, voidFuncPtr func) {
39+
setDMA(Buf, dmaFlags, func);
40+
startDMA(BufLen);
41+
}
3742

3843
/*
3944
This function is used to setup DMA with the ADC.

0 commit comments

Comments
 (0)