You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using a fork of the DMA code here and find it works well.
The exception is that my application involves reading from two chained PWM counters in A B A B A order. To do this, I am chaining one DMA channel to another. To decrease the size of the control blocks, I am using the aliases of the DMA control registers which is pretty awkward in the current API.
To help with his, I have added the following code that allows me to get any alias of any register from a DMA channel as a volatile.Register32. This lets me use the bit banging capabilities of a register to easily manipulate these values. I also have a related function that gives me the address of each register as a uint32 using a parallel API which is important for chaining. I think that this additional function is pretty much orthogonal to the other stuff you have in the package.
I can package this as a proper pull request, but I am unsure how you guys are running tests on code that is hardware dependent. Advice would be appreciated.
I have been using a fork of the DMA code here and find it works well.
The exception is that my application involves reading from two chained PWM counters in A B A B A order. To do this, I am chaining one DMA channel to another. To decrease the size of the control blocks, I am using the aliases of the DMA control registers which is pretty awkward in the current API.
To help with his, I have added the following code that allows me to get any alias of any register from a DMA channel as a
volatile.Register32
. This lets me use the bit banging capabilities of a register to easily manipulate these values. I also have a related function that gives me the address of each register as auint32
using a parallel API which is important for chaining. I think that this additional function is pretty much orthogonal to the other stuff you have in the package.I can package this as a proper pull request, but I am unsure how you guys are running tests on code that is hardware dependent. Advice would be appreciated.
The text was updated successfully, but these errors were encountered: