Changes between Version 18 and Version 19 of library_stdio
- Timestamp:
- Oct 25, 2014, 2:38:27 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v18 v19 46 46 == __3) TTY related system calls__ == 47 47 48 === unsigned int'''giet_tty_printf'''( char* format, ... ) ===48 === void '''giet_tty_printf'''( char* format, ... ) === 49 49 This function print formated text on a private terminal that must have been allocated to the calling task in the mapping (''use_tty'' argument). Therefore, it does not take the TTY lock. 50 50 Only a limited number of formats are supported: … … 58 58 Exit in case of illegal format. 59 59 60 === unsigned int'''giet_shr_printf'''( char* format, ... ) ===60 === void '''giet_shr_printf'''( char* format, ... ) === 61 61 This function print formated text on the shared terminal arbitrarily allocated by the kernel. It takes the TTY lock 62 62 for exclusive access. It supports the same formats as the giet_tty_printf() function. … … 64 64 Exit in case of illegal format. 65 65 66 === unsigned int'''giet_tty_getc'''( char* byte ) ===66 === void '''giet_tty_getc'''( char* byte ) === 67 67 This blocking function fetches a single character from the private terminal that must have been allocated to the calling task in the application mapping. It uses the TTY_RX_IRQ interrupt, and the associated kernel buffer. 68 68 69 69 Exit if private TTY index not defined. 70 70 71 === unsigned int'''giet_tty_getw'''( unsigned int* val ) ===71 === void '''giet_tty_getw'''( unsigned int* val ) === 72 72 This blocking function fetches a string of decimal characters (most significant digit first) to build a 32-bits unsigned integer from the private TTY terminal that must have been allocated to the calling task in the application mapping. It uses the TTY_RX_IRQ interrupt, and the associated kernel buffer. 73 73 The non-blocking system function _tty_read is called several times, and the decimal characters are written in a 32 characters buffer until a <LF> character is read. It ignores non-decimal characters, and displays an echo