Changeset 438 for trunk/kernel/devices/dev_txt.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_txt.c
r436 r438 38 38 extern chdev_directory_t chdev_dir; // allocated in kernel_init.c 39 39 40 #if ( CONFIG_DEBUG_SYS_READ & 1)40 #if (DEBUG_SYS_READ & 1) 41 41 extern uint32_t enter_txt_read; 42 42 extern uint32_t exit_txt_read; 43 43 #endif 44 44 45 #if ( CONFIG_DEBUG_SYS_WRITE & 1)45 #if (DEBUG_SYS_WRITE & 1) 46 46 extern uint32_t enter_txt_write; 47 47 extern uint32_t exit_txt_write; … … 161 161 { 162 162 163 #if ( CONFIG_DEBUG_SYS_WRITE & 1)163 #if (DEBUG_SYS_WRITE & 1) 164 164 enter_txt_write = hal_time_stamp(); 165 165 #endif 166 166 167 #if CONFIG_DEBUG_DEV_TXT_TX167 #if DEBUG_DEV_TXT_TX 168 168 uint32_t cycle = (uint32_t)hal_get_cycles(); 169 if( CONFIG_DEBUG_DEV_TXT_TX < cycle )169 if( DEBUG_DEV_TXT_TX < cycle ) 170 170 printk("\n[DBG] %s : thread %x enters / cycle %d\n", __FUNCTION__, CURRENT_THREAD, cycle ); 171 171 #endif … … 173 173 return dev_txt_access( TXT_WRITE , channel , buffer , count ); 174 174 175 #if CONFIG_DEBUG_DEV_TXT_TX175 #if DEBUG_DEV_TXT_TX 176 176 cycle = (uint32_t)hal_get_cycles(); 177 if( CONFIG_DEBUG_DEV_TXT_TX < cycle )177 if( DEBUG_DEV_TXT_TX < cycle ) 178 178 printk("\n[DBG] %s : thread %x exit / cycle %d\n", __FUNCTION__, CURRENT_THREAD, cycle ); 179 179 #endif 180 180 181 #if ( CONFIG_DEBUG_SYS_WRITE & 1)181 #if (DEBUG_SYS_WRITE & 1) 182 182 exit_txt_write = hal_time_stamp(); 183 183 #endif … … 190 190 { 191 191 192 #if ( CONFIG_DEBUG_SYS_READ & 1)192 #if (DEBUG_SYS_READ & 1) 193 193 enter_txt_read = hal_time_stamp(); 194 194 #endif 195 195 196 #if CONFIG_DEBUG_DEV_TXT_RX196 #if DEBUG_DEV_TXT_RX 197 197 uint32_t cycle = (uint32_t)hal_get_cycles(); 198 if( CONFIG_DEBUG_DEV_TXT_RX < cycle )198 if( DEBUG_DEV_TXT_RX < cycle ) 199 199 printk("\n[DBG] %s : thread %x enters / cycle %d\n", __FUNCTION__, CURRENT_THREAD, cycle ); 200 200 #endif … … 202 202 return dev_txt_access( TXT_READ , channel , buffer , 1 ); 203 203 204 #if CONFIG_DEBUG_DEV_TXT_RX204 #if DEBUG_DEV_TXT_RX 205 205 cycle = (uint32_t)hal_get_cycles(); 206 if( CONFIG_DEBUG_DEV_TXT_RX < cycle )206 if( DEBUG_DEV_TXT_RX < cycle ) 207 207 printk("\n[DBG] %s : thread %x exit / cycle %d\n", __FUNCTION__, CURRENT_THREAD, cycle ); 208 208 #endif 209 209 210 #if ( CONFIG_DEBUG_SYS_READ & 1)210 #if (DEBUG_SYS_READ & 1) 211 211 exit_txt_read = hal_time_stamp(); 212 212 #endif
Note: See TracChangeset
for help on using the changeset viewer.