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

DroneCAN: added software control of CAN termination #118

Merged
merged 1 commit into from
Nov 17, 2024

Conversation

tridge
Copy link
Member

@tridge tridge commented Nov 13, 2024

This allows for CAN_TERM_PIN and CAN_TERM_POLARITY in targets.h to give a GPIO which enables a termination resistor

Note that I have made setup_portpin() be CAN specific for now. I'd like to consider making it a standard API available for all MCUs in the future. It simplifies setting up of pins for things that are not timing critical, and makes it easier to specify a port+pin in targets.h

@tridge tridge force-pushed the pr-CAN-term-enable branch from 73301e4 to 5ac10af Compare November 17, 2024 19:24
@AlkaMotors AlkaMotors merged commit ceca083 into am32-firmware:main Nov 17, 2024
2 checks passed
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.

2 participants