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

atmega32u4: Add missing pin PF7 #150

Merged
merged 1 commit into from
Jan 28, 2024
Merged

atmega32u4: Add missing pin PF7 #150

merged 1 commit into from
Jan 28, 2024

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented Jan 28, 2024

For some reason, the ATDF file does not show the PF7 pin. But as this pin does exist for the MCU, use a patch to add it.

Diff:

diff --color -Nur svd-orig/atmega32u4.svd.patched svd/atmega32u4.svd.patched
--- svd-orig/atmega32u4.svd.patched	2024-01-28 20:05:48.682604785 +0100
+++ svd/atmega32u4.svd.patched	2024-01-28 20:05:53.675998585 +0100
@@ -3040,7 +3040,8 @@
               <bitRange>[6:6]</bitRange>
               <access>read-write</access>
             </field>
-          </fields>
+          <field><name>PF7</name><description>Pin F7</description><bitRange>[7:7]</bitRange><access>read-write</access></field>
+            </fields>
         </register>
         <register>
           <name>PINF</name>
@@ -3079,7 +3080,8 @@
               <bitRange>[6:6]</bitRange>
               <access>read-write</access>
             </field>
-          </fields>
+          <field><name>PF7</name><description>Pin F7</description><bitRange>[7:7]</bitRange><access>read-write</access></field>
+            </fields>
         </register>
         <register>
           <name>PORTF</name>
@@ -3118,7 +3120,8 @@
               <bitRange>[6:6]</bitRange>
               <access>read-write</access>
             </field>
-          </fields>
+          <field><name>PF7</name><description>Pin F7</description><bitRange>[7:7]</bitRange><access>read-write</access></field>
+            </fields>
         </register>
       </registers>
     </peripheral>

(Needed for Rahix/avr-hal#500)

For some reason, the ATDF file does not show the PF7 pin.  But as this
pin does exist for the MCU, use a patch to add it.
@Rahix Rahix merged commit b19a2a8 into main Jan 28, 2024
2 checks passed
@Rahix Rahix deleted the fix-atmega32u4-pf7 branch January 28, 2024 19:11
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