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

pcap: simplify pcap_dma #137

Merged
merged 2 commits into from
Jul 24, 2023
Merged

pcap: simplify pcap_dma #137

merged 2 commits into from
Jul 24, 2023

Conversation

EmilioPeJu
Copy link
Contributor

  • state SWITCH_ADDR was deleted, as it is simpler to do the address switching in state IRQ
  • a procedure to start the dma transaction was added reducing code duplication
  • switch_block was renamed to a more meaningful name buffer_full
  • Remove conditional code that wouldn't work anyways

- state SWITCH_ADDR was deleted, as it is simpler to do the address
switching in state IRQ
- a procedure to start the dma transaction was added reducing code
duplication
- `switch_block` was renamed to a more meaningful name `buffer_full`
- Remove conditional code that wouldn't work anyways
The default sensitivity is LEVEL_HIGH which doesn't match pcap, thus, it
was changed to EDGE_RISING
@EmilioPeJu EmilioPeJu merged commit 80acda2 into master Jul 24, 2023
@EmilioPeJu EmilioPeJu deleted the simplify-dma branch July 24, 2023 10:26
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