Changes between Version 42 and Version 43 of kernel_syscalls


Ignore:
Timestamp:
Sep 16, 2015, 5:43:53 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_syscalls

    v42 v43  
    8181It test the _tty_rx_full[tty_id] variable, read the _tty_rx_buf[tty_id] buffer, writes this character to the target buffer, and resets the_tty_rx_full[tty_id] register. The length argument is not used.
    8282Returns -1 if no TTY terminal allocated to the calling task. Returns  the number of characters that have been read if a terminal is allocated (can be 0 or 1).
    83 
    84 === 4) int '''_sys_tty_get_lock'''( unsigned int  channel,   unsigned int* save_sr_ptr ) ===
    85 This blocking function try to take the lock protecting exclusive access to TTY terminal identified by the "channel" argument. It enters a critical section before taking the lock, and save the SR value at address defined by the ''save_sr_ptr'' argument. Returns -1 if no TTY terminal allocated to the calling task. If a TTY terminal is allocated, it returns only when the lock has been successfully taken.
    86 
    87 === 5) int '''_sys_tty_release_lock'''( unsigned int  channel,  unsigned int* save_sr_ptr ) ===
    88 This function releases the lock protecting exclusive access to TTY terminal identified by the ''channel'' argument.
    89 It exit the critical section after lock release, and restore SR value from address defined by the ''save_sr_ptr'' argument. Returns -1 if no TTY terminal allocated to the calling task.
    9083
    9184