From bc039700b6381040f9b907613654e201c83e17e5 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 14 Jun 2026 00:06:13 -0500 Subject: Fix typo in documentation --- rvcontroller.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rvcontroller.lua') 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. -- cgit v1.2.3