raspberrypi / pico-extras

BSD 3-Clause "New" or "Revised" License
468 stars 117 forks source link

scanvideo.c claims fixed resources #60

Open Memotech-Bill opened 1 year ago

Memotech-Bill commented 1 year ago

scanvideo.c makes claims for fixed hardware resources, specifically PIO0, low numbered DMA channels and low numbered state machines. However these may have already been claimed for other services.

Ideally the code should be modified to use the claim_unused routines.

If that is not possible, at least used fixed high number DMA channels and state machines, which would be the last resources to be claimed by the claim_unused routines.

kilograham commented 1 year ago

yeah, dynamic claiming would be a bit of a change (that may slow things down), but we should at least allow the user to override all the #defines