summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rvcontroller.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/rvcontroller.lua b/rvcontroller.lua
index 831d2d8..2370906 100644
--- a/rvcontroller.lua
+++ b/rvcontroller.lua
@@ -187,12 +187,12 @@ MMIO:
Base address is selected by CSR 0x801 above.
Base + 0: Mesecons I/O Direction
-Format: [0000dbca] (WARL)
+Format: [0000dcba] (WARL)
0 in the bit corresponding to an I/O pin selects input, 1 selects output.
Changing a pin from output to input while the output is active may cause unusual behavior due to Luacontroller limitations.
Base + 1: Mesecons I/O Data
-Format: [0000dbca] (Input bits are RO, output bits are RW)
+Format: [0000dcba] (Input bits are RO, output bits are RW)
For inputs: Each bit contains the state of the corresponding input. Writes are ignored.
For outputs: Each bit contains the state of the corresponding output. Writing to these bits turns the output on/off.