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

UPDI pin mode or MVIO mode fuses for AVR-DD #62

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

tactical-snacks
Copy link

for AVR-DD's ...

  • adds setting mvio fuse support
  • enables updi pin bit by default

may help closing issues #60

@MCUdude
Copy link
Contributor

MCUdude commented Aug 21, 2023

The PR looks mostly good, but it would make it impossible to use PlatformIO to turn the UPDI pin into a GPIO pin.

You should probably do something like this instead (untested):

        if ("dd" in board.get("build.mcu").lower()):
             if pin == "updi":
                 updipin_bit = 1
             elif pin == "gpio":
                 updipin_bit = 0
         else:
             updipin_bit = 0            
         return 0xC0 | updipin_bit << 4 | rstpin_bit << 3 | eesave_bit

@tactical-snacks
Copy link
Author

how/where could i add board_hardware.updipin for the avr-dd since it has multipurpose reset and updi pins?

@tactical-snacks
Copy link
Author

should i close this?

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