Changeset 10911 for firmware/FSC/src/parser.c
- Timestamp:
- 06/05/11 18:37:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FSC/src/parser.c
r10910 r10911 315 315 void parse_w5300_incoming( U08 bytes_in_w5100_rx_buffer ) { 316 316 317 usart_writeln_str((pU08)"parsget:"); 318 for (U08 i =0; i< ETH_READ_BUFFER_SIZE ; i++) { 319 usart_write_U08_hex(eth_read_buffer[i]); 320 usart_write_char((U08)eth_read_buffer[i]); 321 322 } 323 usart_write_crlf(); 324 317 325 if (bytes_in_w5100_rx_buffer == 0) // it was stupid to call this parser without having any bytes downloaded 318 326 return; … … 329 337 330 338 case 't': // measure *t*emperature (resistance) channels only 339 ad7719_values_printed = false; 331 340 reset_resistance_done(); 332 341 simple_acknowledge(); … … 334 343 335 344 case 'v': // measure *v*oltage channels only 345 adc_values_printed = false; 336 346 reset_voltage_done(); 337 347 simple_acknowledge(); … … 349 359 break; 350 360 361 case 'k': 362 eth_write_stuff(); 363 break; 364 351 365 case 'z': // re*z*et ATmega32 and peripherals 352 366 eth_write_buffer[0]='!'; … … 475 489 476 490 } 491 492 void eth_write_stuff(void) { 493 S08 buf []="Test Ah Alarm!!\n"; 494 for (U08 i =0 ; i<7 ; i++) { 495 eth_write_str(buf); 496 } 497 }
Note:
See TracChangeset
for help on using the changeset viewer.