Project

General

Profile

Revision 245

changed macros a bit to only compile what i want

View differences:

proj/src/test7.c
36 36
	int ret = SUCCESS;
37 37
    if((ret = ser_test_set(base_addr, bits, stop, parity, rate))) return ret;
38 38
	if(tx == 0){
39
		/*
39 40
		char c;
40 41
		if((ret = uart_get_char(base_addr, &c))) return ret;
41 42
		while(c != '.'){
42 43
			printf("%c", c);
43 44
			if((ret = uart_get_char(base_addr, &c))) return ret;
44 45
		}
46
		*/
45 47
	}else{
48
		/*
46 49
		for(int i = 0; i < stringc; ++i){
47 50
			int j = 0;
48 51
			while(stringc[i][j] != 0)
......
50 53
			if(i+1 != stringc) if((ret = uart_send_char(base_addr, ' '))) return ret;
51 54
		}
52 55
		if((ret = uart_send_char(base_addr, '.'))) return ret;
56
		*/
53 57
	}
54 58
	return SUCCESS;
55 59
}

Also available in: Unified diff