Changeset 320 for soft/giet_vm/giet_drivers/tty_driver.c
- Timestamp:
- Jun 10, 2014, 12:33:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/tty_driver.c
r315 r320 16 16 // be stored in the context of the task by the boot code. 17 17 // 18 // The seg_tty_base must be defined in giet_vsegs.ldfile.18 // The SEG_TTY_BASE address must be defined in the hard_config.h file. 19 19 /////////////////////////////////////////////////////////////////////////////////// 20 20 // Implementation note: … … 31 31 #include <utils.h> 32 32 33 #if !defined(SEG_TTY_BASE) 34 # error: You must define SEG_TTY_BASE in the hard_config.h file 35 #endif 36 33 37 #if !defined(NB_TTY_CHANNELS) 34 38 # error: You must define NB_TTY_CHANNELS in the hard_config.h file … … 60 64 unsigned int index ) 61 65 { 62 unsigned int* vaddr = (unsigned int*) &seg_tty_base+ channel*TTY_SPAN + index;66 unsigned int* vaddr = (unsigned int*)SEG_TTY_BASE + channel*TTY_SPAN + index; 63 67 return _io_extended_read( vaddr ); 64 68 } … … 71 75 unsigned int value ) 72 76 { 73 unsigned int* vaddr = (unsigned int*) &seg_tty_base+ channel*TTY_SPAN + index;77 unsigned int* vaddr = (unsigned int*)SEG_TTY_BASE + channel*TTY_SPAN + index; 74 78 _io_extended_write( vaddr, value ); 75 79 }
Note: See TracChangeset
for help on using the changeset viewer.