Author: jsuijs
Date: Mon Mar 2 10:33:21 2009
New Revision: 824
Modified:
trunk/include/peripheral/usart/serial_hardware.jal
trunk/include/peripheral/usart/serial_software.jal
Log:
Modified: trunk/include/peripheral/usart/serial_hardware.jal
==============================================================================
--- trunk/include/peripheral/usart/serial_hardware.jal (original)
+++ trunk/include/peripheral/usart/serial_hardware.jal Mon Mar 2 10:33:21
2009
@@ -143,13 +143,7 @@
-- }}}
--
procedure serial_hw_data'put(byte in data) is
- -- -----------------------------------------------
- -- BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG
- -- -----------------------------------------------
- -- this doesn't work (always?)
- serial_hw_write(data)
- -- tested by putting the next statement instead
- ; serial_hw_write(0x33)
+ serial_hw_write(data)
end procedure
Modified: trunk/include/peripheral/usart/serial_software.jal
==============================================================================
--- trunk/include/peripheral/usart/serial_software.jal (original)
+++ trunk/include/peripheral/usart/serial_software.jal Mon Mar 2 10:33:21
2009
@@ -21,6 +21,10 @@
-- (8 databits, 2 stopbits, no parity, no handshake)
--
+if (defined(serial_sw_invert) == false) then
+ -- default is low active-serial (like serial_hw)
+ const bit serial_sw_invert = true
+end if
procedure serial_sw_init() is
-- ouput/tx pin active or not according to invert
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---