Skip to content

Conversation

@ardnew
Copy link

@ardnew ardnew commented Jan 31, 2024

  • Describe the scope of your change--i.e. what the change does and what parts
    of the code were modified.

    The API prior this change only supports deallocating DMA channels (via method (void)Adafruit_ZeroDMA::free(void)), but it did not and could not deallocate the descriptor linked lists written to them. An optional parameter was added to this method to also free the descriptor chain — but not by default — to retain backwards-compatibility.

  • Describe any known limitations with your change.
    None

  • Please run any tests or examples that can exercise your modified code.
    Verified examples zerodma_spi1 and zerodma_spi2 were functional on an ItsyBitsy M4

The API prior this change only supports deallocating DMA channels (via method `(void)Adafruit_ZeroDMA::free(void)`), but it did not and **could not** deallocate the descriptor linked lists written to them. An _optional_ parameter was added to this method to also free the descriptor chain — but not by default — to retain backwards-compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant