Changeset 295 for soft/giet_vm/giet_drivers/tty_driver.h
- Timestamp:
- Mar 26, 2014, 6:44:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/tty_driver.h
r258 r295 24 24 25 25 /////////////////////////////////////////////////////////////////////////////////// 26 // TTY access functions andvariables26 // TTY variables 27 27 /////////////////////////////////////////////////////////////////////////////////// 28 28 … … 31 31 extern volatile unsigned char _tty_get_full[]; 32 32 33 /////// rather high level access functions /////////////////////////////////////// 33 ////////////////////////////////////////////////////////////////////////////////// 34 // TTY access functions 35 ////////////////////////////////////////////////////////////////////////////////// 34 36 35 37 extern unsigned int _tty_write( const char* buffer, 36 unsigned int length, // number of characters37 unsigned int channel ); // channel index38 unsigned int length, 39 unsigned int channel ); 38 40 39 41 extern unsigned int _tty_read( char* buffer, 40 unsigned int length, // unused41 unsigned int channel ); // channel index42 unsigned int length, 43 unsigned int channel ); 42 44 43 /////// very low level access functions ////////////////////////////////////////// 45 extern void _tty_get_lock( unsigned int channel, 46 unsigned int* save_sr_ptr ); 44 47 45 extern void _tty_write_data( unsigned int channel, char byte ); 48 extern void _tty_release_lock( unsigned int channel, 49 unsigned int* save_sr_ptr ); 46 50 47 extern unsigned int _tty_read_data( unsigned int channel ); 51 extern void _tty_rx_isr( unsigned int irq_type, 52 unsigned int irq_id, 53 unsigned int channel ); 48 54 49 extern unsigned int _tty_get_status( unsigned int channel ); 50 51 extern void _tty_get_lock( unsigned int channel ); 52 53 extern void _tty_release_lock( unsigned int channel ); 55 extern void _tty_tx_isr( unsigned int irq_type, 56 unsigned int irq_id, 57 unsigned int channel ); 54 58 55 59 /////////////////////////////////////////////////////////////////////////////////// 60 // low-level access functions 61 /////////////////////////////////////////////////////////////////////////////////// 56 62 63 extern unsigned int _tty_get_register( unsigned int channel, 64 unsigned int index ); 65 66 extern void _tty_set_register( unsigned int channel, 67 unsigned int index, 68 unsigned int value ); 57 69 58 70 #endif
Note: See TracChangeset
for help on using the changeset viewer.