Changeset 9158
- Timestamp:
- 08/03/08 01:18:40
- Files:
-
- usrp2/trunk/firmware/apps/app_common_v2.c (modified) (1 diff)
- usrp2/trunk/firmware/apps/app_passthru_v2.c (modified) (1 diff)
- usrp2/trunk/firmware/apps/eth_serdes.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
usrp2/trunk/firmware/apps/app_common_v2.c
r9150 r9158 88 88 } 89 89 90 if ( 1){90 if (0){ 91 91 printf("sending_reply to port %d, len = %d\n", cpu_tx_buf_dest_port, reply_len); 92 92 print_buffer(buffer_ram(CPU_TX_BUF), reply_len/4); usrp2/trunk/firmware/apps/app_passthru_v2.c
r9150 r9158 167 167 end_of_subpackets: 168 168 169 // add the EOP marker 170 subpktlen = add_eop(reply_payload, reply_payload_space); 171 subpktlen = (subpktlen + 3) & ~3; // bump to a multiple of 4 172 reply_payload += subpktlen; 173 reply_payload_space -= subpktlen; 174 175 send_reply(reply, reply_payload - reply); 169 if (handled_it){ 170 // add the EOP marker 171 subpktlen = add_eop(reply_payload, reply_payload_space); 172 subpktlen = (subpktlen + 3) & ~3; // bump to a multiple of 4 173 reply_payload += subpktlen; 174 reply_payload_space -= subpktlen; 175 176 send_reply(reply, reply_payload - reply); 177 } 176 178 177 179 return handled_it; usrp2/trunk/firmware/apps/eth_serdes.c
r9150 r9158 126 126 fw_sets_seqno_inspector(dbsm_t *sm, int buf_this) // returns false 127 127 { 128 #if 0 128 129 uint32_t *p = buffer_ram(buf_this); 129 130 uint32_t last_line = buffer_pool_status->last_line[buf_this] - sm->last_line_adj; … … 132 133 133 134 print_buffer(p, (last_line + 1)); 135 #endif 134 136 135 137 #if 0 … … 153 155 uint32_t status = buffer_pool_status->status; 154 156 155 if ( status & ~BPS_IDLE_ALL){157 if (0 && (status & ~BPS_IDLE_ALL)){ 156 158 putstr("status = "); 157 159 puthex32_nl(status); … … 172 174 ethernet_init(); 173 175 174 clocks_mimo_config(MC_WE_LOCK_TO_SMA | MC_PROVIDE_CLK_TO_MIMO); 176 // clocks_mimo_config(MC_WE_LOCK_TO_SMA | MC_PROVIDE_CLK_TO_MIMO); 177 clocks_mimo_config(MC_WE_DONT_LOCK | MC_PROVIDE_CLK_TO_MIMO); 175 178 176 179 #if 0 … … 213 216 214 217 215 // kick off the state machine 218 // kick off the state machines 216 219 dbsm_start(&dsp_tx_sm); 220 dbsm_start(&dsp_rx_sm); 217 221 218 222 //int which = 0;
