#379 Bug prevents calling adcStartConversionI() within ISR

closed-fixed
2014-05-09
2013-02-17
InMarket
No

Calling adcStartConversionI() within the callback ISR for the ADC causes the ADC to be active but its grpp element to be NULL which results in very strange problems (driver dependant).

Fix included in attached file adc.h

Also in same macro there is a small bug which prevents odd sized sample buffers being used. Use of the replacement macro in included adc.h allows the check for odd size buffers to be removed from adc.c

Discussion

  • InMarket

    InMarket - 2013-02-17

    replacement adc.h

     
  • Giovanni Di Sirio

    Hi,

    Thanks for the fix however the buffer is meant to be even-sized, there is also an assertion checking that. The other fix has been added.

    Will be fixed in 2.4.4stable and 2.5.2unstable, fixed in repository.

     
  • Giovanni Di Sirio

    • assigned_to: nobody --> gdisirio
    • priority: 5 --> 4
    • milestone: --> 2.4.0
    • status: open --> open-fixed
     
  • InMarket

    InMarket - 2013-02-26
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks