gpio_v2: expand docs on AFRx register pair to describe indexing.

This commit is contained in:
Cliff L. Biffle 2023-06-28 11:06:26 -07:00
parent e2cad81497
commit d8592bdd8c

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