Changeset 350 for soft/giet_vm/giet_drivers/tty_driver.c
- Timestamp:
- Jun 29, 2014, 12:53:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/tty_driver.c
r345 r350 39 39 #endif 40 40 41 #if !defined(GIET_NO_HARD_CC) 42 # error: You must define GIET_NO_HARD_CC in the giet_config.h file 43 #endif 44 41 45 #if (NB_TTY_CHANNELS < 1) 42 46 # error: NB_TTY_CHANNELS cannot be smaller than 1! 43 47 #endif 44 48 49 ////////////////////////////////////////////////////////////////////////////// 50 // TTY global variables 51 ////////////////////////////////////////////////////////////////////////////// 52 45 53 #define in_unckdata __attribute__((section (".unckdata"))) 46 54 #define in_kdata __attribute__((section (".kdata"))) 47 55 48 ////////////////////////////////////////////////////////////////////////////// 49 // TTY global variables 50 ////////////////////////////////////////////////////////////////////////////// 51 56 #if GIET_NO_HARD_CC 52 57 in_unckdata volatile unsigned int _tty_rx_buf[NB_TTY_CHANNELS]; 53 54 in_unckdata volatile unsigned int _tty_rx_full[NB_TTY_CHANNELS] 55 = { [0 ... NB_TTY_CHANNELS - 1] = 0 }; 56 57 in_unckdata unsigned int _tty_lock[NB_TTY_CHANNELS] 58 = { [0 ... NB_TTY_CHANNELS - 1] = 0 }; 58 in_unckdata volatile unsigned int _tty_rx_full[NB_TTY_CHANNELS]; 59 in_unckdata giet_lock_t _tty_lock[NB_TTY_CHANNELS] __attribute__((aligned(64))); 60 #else 61 in_kdata volatile unsigned int _tty_rx_buf[NB_TTY_CHANNELS]; 62 in_kdata volatile unsigned int _tty_rx_full[NB_TTY_CHANNELS]; 63 in_kdata giet_lock_t _tty_lock[NB_TTY_CHANNELS] __attribute__((aligned(64))); 64 #endif 59 65 60 66 //////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.