#include "project.h" void dump_bits(char *wot,uint8_t *bits) { char buf[128]; char *ptr=buf; unsigned i=60; ptr+=sprintf(buf,"%s bits: ",wot); while (i--) *(ptr++)=*(bits++) ? '1':'0'; *(ptr++)='\r'; *(ptr++)='\n'; *ptr=0; usart1_write(buf,(unsigned) (ptr-buf),1); }