Changeset 313 for soft/giet_vm/giet_drivers/tty_driver.c
- Timestamp:
- Apr 21, 2014, 5:46:38 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/tty_driver.c
r297 r313 40 40 41 41 #define in_unckdata __attribute__((section (".unckdata"))) 42 #define in_kdata __attribute__((section (".kdata"))) 42 43 43 44 ////////////////////////////////////////////////////////////////////////////// … … 46 47 47 48 in_unckdata volatile unsigned int _tty_rx_buf[NB_TTY_CHANNELS]; 49 48 50 in_unckdata volatile unsigned int _tty_rx_full[NB_TTY_CHANNELS] 49 51 = { [0 ... NB_TTY_CHANNELS - 1] = 0 }; 52 53 in_kdata unsigned int _tty_lock[NB_TTY_CHANNELS] 54 = { [0 ... NB_TTY_CHANNELS - 1] = 0 }; 50 55 51 56 ////////////////////////////////////////////////////////////////////////////// … … 150 155 { 151 156 if( channel >= NB_TTY_CHANNELS ) _exit(); 157 152 158 _it_disable( save_sr_ptr ); 153 while ( _tty_get_register( channel, TTY_CONFIG ) ); // busy waiting 159 160 // while ( _tty_get_register( channel, TTY_CONFIG ) ); // busy waiting 161 162 _get_lock( &_tty_lock[channel] ); 154 163 } 155 164 … … 165 174 if( channel >= NB_TTY_CHANNELS ) _exit(); 166 175 167 _tty_set_register( channel, TTY_CONFIG, 0 ); 176 // _tty_set_register( channel, TTY_CONFIG, 0 ); 177 178 _release_lock( &_tty_lock[channel] ); 179 168 180 _it_restore( save_sr_ptr ); 169 181 }
Note: See TracChangeset
for help on using the changeset viewer.