Changeset 10677 for firmware/FSC/src/output.c
- Timestamp:
- 05/12/11 17:47:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FSC/src/output.c
r10674 r10677 6 6 void print_status() { 7 7 usart_write_str((pU08)"adc status:\n"); 8 for (U08 i=0; i< V _BITMAP + I_BITMAP + H_BITMAP;++i) {8 for (U08 i=0; i< VOLTAGE_CHANNELS/8;++i) { 9 9 usart_write_U08_bin(adc_enables[i]); 10 10 usart_write_char(' '); 11 11 } 12 12 usart_write_char('\n'); 13 for (U08 i=0; i< V _BITMAP + I_BITMAP + H_BITMAP;++i){13 for (U08 i=0; i< VOLTAGE_CHANNELS/8;++i){ 14 14 usart_write_U08_bin(adc_channels_ready[i]); 15 15 usart_write_char(' '); … … 18 18 19 19 usart_write_str((pU08)"ad7719 status:\n"); 20 for (U08 i=0; i< CHANNEL_BITMAP;++i) {20 for (U08 i=0; i< RESISTANCE_CHANNELS/8;++i) { 21 21 usart_write_U08_bin(ad7719_enables[i]); 22 22 usart_write_char(' '); 23 23 } 24 24 usart_write_char('\n'); 25 for (U08 i=0; i< CHANNEL_BITMAP;++i){25 for (U08 i=0; i< RESISTANCE_CHANNELS/8;++i){ 26 26 usart_write_U08_bin(ad7719_channels_ready[i]); 27 27 usart_write_char(' '); … … 57 57 usart_write_str((pU08)"\n printing voltages in mV:\n"); 58 58 // output: U08 adc_values[V_CHANNELS + I_CHANNELS + H_CHANNELS]; 59 for (U08 i=0; i< V _CHANNELS + I_CHANNELS + H_CHANNELS;++i) {59 for (U08 i=0; i< VOLTAGE_CHANNELS;++i) { 60 60 if (i%8 == 0) usart_write_char('\n'); 61 61 adc_output(i, adc_values[i]); … … 72 72 usart_write_str((pU08)"\n printing measured resistance in kohms:\n"); 73 73 74 for (U08 i=0; i< TEMP_CHANNELS;++i) {74 for (U08 i=0; i< RESISTANCE_CHANNELS;++i) { 75 75 if (i%8 == 0) usart_write_char('\n'); 76 76
Note:
See TracChangeset
for help on using the changeset viewer.