We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14ef837 commit 2d30b67Copy full SHA for 2d30b67
shared-bindings/memorymap/AddressRange.c
@@ -39,7 +39,7 @@
39
//| # Pad control register is updated using an MP-safe atomic XOR
40
//| pad_ctrl ^= (d << 4)
41
//| pad_ctrl &= 0x00000030
42
-//| pads_bank0[p*4+0x3004:p*4+0x3008] = pad_ctrl.to_bytes(4, "little")
+//| pads_bank0[p*4+0x1004:p*4+0x1008] = pad_ctrl.to_bytes(4, "little")
43
//|
44
//| def rp2040_get_pad_drive(p):
45
//| pads_bank0 = memorymap.AddressRange(start=0x4001C000, length=0x4000)
@@ -51,6 +51,10 @@
51
52
//| # print GPIO16 pad drive strength
53
//| print(rp2040_get_pad_drive(16))
54
+//|
55
+//| Note that the above example does **not** work on RP2350 because base
56
+//| address and organization of the "pads0" registers changed compared
57
+//| to the RP2040.
58
//| """
59
60
0 commit comments