Author: sebastien.lelong
Date: Sat Mar  7 10:24:55 2009
New Revision: 835

Modified:
    trunk/include/peripheral/usart/serial_hw_int_cts.jal
    trunk/sample/by_device/16f88/16f88_serial_hw_int_cts_echo.jal

Log:
add pragma inline while calling deprecated procedure "serial_receive_byte"  
to save stack + remove doc since deprecated + update test

Modified: trunk/include/peripheral/usart/serial_hw_int_cts.jal
==============================================================================
--- trunk/include/peripheral/usart/serial_hw_int_cts.jal        (original)
+++ trunk/include/peripheral/usart/serial_hw_int_cts.jal        Sat Mar  7  
10:24:55 2009
@@ -28,9 +28,6 @@
  --                                              -- (called automatically)
  --  - serial_send_byte(byte out <byte>)         -- send byte
  --                                              -- returns the transmitted  
byte
---  - serial_receive_byte(byte in <byte>) returns bit  -- receive byte
---                                              -- returns TRUE with data,
---                                              -- FALSE when no data  
available
  --  - serial_hw_read(byte out <byte>) return bit  -- receive byte
  --                                              -- returns TRUE with data,
  --                                              -- FALSE when no data  
available
@@ -296,6 +293,7 @@
  end function

  function  serial_receive_byte(byte out data) return bit is
+   pragma inline
     -- depricated function, for compatibility only
     return serial_hw_read(data)
  end function

Modified: trunk/sample/by_device/16f88/16f88_serial_hw_int_cts_echo.jal
==============================================================================
--- trunk/sample/by_device/16f88/16f88_serial_hw_int_cts_echo.jal       
(original)
+++ trunk/sample/by_device/16f88/16f88_serial_hw_int_cts_echo.jal       Sat Mar 
  
7 10:24:55 2009
@@ -69,7 +69,7 @@

  forever loop

-   if (serial_receive_byte(x) == true) then     -- byte available
+   if (serial_hw_read(x) == true) then     -- byte available
        for SERIAL_XMTBUFSIZE + 10 loop           -- more than xmt buffer!
          x = serial_send_byte(x)                 -- echo many 'x'
        end loop

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to