Changeset 10698 for firmware/FSC/src/w5100_spi_interface.c
- Timestamp:
- 05/13/11 12:39:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FSC/src/w5100_spi_interface.c
r10697 r10698 300 300 // returns number of words, transmitted into TX - buffer. 301 301 U16 w5100_set_TX(U08* string, U16 NumBytes) { 302 302 303 U16 freesize = get_S0_TX_FSR(); 303 304 if (freesize == 0) … … 305 306 return 0; 306 307 } 308 usart_write_str((U08*)"sending via eth: with pointer:"); 309 usart_write_U16_hex(string); 310 usart_write_str((U08*)" #of bytes: "); 311 usart_write_U16(NumBytes,4 ); 312 usart_write_char(' \n'); 307 313 308 314 U16 last_TX_write_pointer = get_S0_TX_WR(); … … 312 318 313 319 U16 upper_size, lower_size; 320 /* 314 321 if (NumBytes > ETH_WRITE_BUFFER_SIZE) 315 322 { … … 320 327 return 0; 321 328 } 322 else if ( freesize < NumBytes ) 329 else */ 330 if ( freesize < NumBytes ) 323 331 { 324 332 NumBytes = freesize;
Note:
See TracChangeset
for help on using the changeset viewer.