Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RingBufferDMA doesn't work with ADC_1 #34

Closed
jjmckee17 opened this issue Jun 28, 2018 · 1 comment
Closed

RingBufferDMA doesn't work with ADC_1 #34

jjmckee17 opened this issue Jun 28, 2018 · 1 comment
Assignees
Labels

Comments

@jjmckee17
Copy link

jjmckee17 commented Jun 28, 2018

Since ADC_Module.h is not included in RingBufferDMA.h, the ADC_NUM_ADCS is not defined so DMAMUX_SOURCE_ADC does not get set to DMAMUX_SOURCE_ADC1.

//RingBufferDMA.cpp
uint8_t DMAMUX_SOURCE_ADC = DMAMUX_SOURCE_ADC0;
#if ADC_NUM_ADCS>=2
if(ADC_number==1){
    //this block never gets executed if ADC_NUM_ADCS is not defined
    DMAMUX_SOURCE_ADC = DMAMUX_SOURCE_ADC1;
}
    #endif // ADC_NUM_ADCS
@pedvide
Copy link
Owner

pedvide commented Dec 24, 2019

See #42. We'll fix the whole DMA functionality soon.

@pedvide pedvide closed this as completed Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants