diff options
Diffstat (limited to 'microwire.lua')
-rw-r--r-- | microwire.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/microwire.lua b/microwire.lua new file mode 100644 index 0000000..e177731 --- /dev/null +++ b/microwire.lua @@ -0,0 +1,14 @@ +-- functions to write registers over microwire interface +-- it resembles SPI but need exrta pin which sends Load Enable (LE) pulse +-- otherwise SPI sequence is sent into 24 bit FIFO buffer + +function setup_interface () + -- Pins assignment + local sda = TBA; -- microwire DATA pin + local scl = TBA; -- microwire Clock (CLK) pin + local sle = TBA; -- microwire Load Enable pin +end + +function microwire_write_data( data ) +end + |