Merge pull request #207 from cbiffle/gpio-v2-afr-array-docs

gpio_v2: expand docs on AFRx register pair to describe indexing.
This commit is contained in:
Dario Nieuwenhuis 2023-06-28 18:11:29 +00:00 committed by GitHub
commit a80ddd6acd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ block/GPIO:
byte_offset: 28 byte_offset: 28
fieldset: LCKR fieldset: LCKR
- name: AFR - name: AFR
description: "GPIO alternate function register (low, high)" description: "GPIO alternate function registers. The register described in the datasheet as AFRL is index 0 in this array, and AFRH is index 1. Note that when operating on AFRH, you need to subtract 8 from any operations on the field array it contains -- the alternate function for pin 9 is at index 1, for instance."
array: array:
len: 2 len: 2
stride: 4 stride: 4