Project

General

Profile

Revision 1189

Eliminated stationCode folder by merging necessary components into station folder.

View differences:

hardware_rbom.c
31 31
{
32 32
	// FIXME implement
33 33
}
34

  
35
void rbom_debug (void)
36
{
37
	usb_puts("# Debugging RBOM\n");
38

  
39
	while(1) {
40
		pUsr(0x0, 0x10, 500);
41
	}
42

  
43
	exit(1);	/* Control should never reach here */
44
}
45

  
46
static void pDataDump(int startPort, int stopPort, unsigned int delay) {
47

  
48
	char buf[16];
49
	int i;
50
	
51
	usb_puts("# port:\t\tval:\n\n");
52

  
53
	for (i = startPort; i <= stopPort; i++) {
54

  
55
		usb_puts(itoa(analog10(i), buf, 10));
56
		usb_puts("\n");	
57
	}
58

  
59
	delay_ms(delay);
60

  
61
}
62

  
63

  
64
static void pUsr(int startPort, int stopPort, unsigned int delay) {
65

  
66
	char buf[16];
67
	int i;
68
	
69
	usb_puts("# port:\t\tval:\n\n");
70

  
71
	for (i = startPort; i <= stopPort; i++) {
72

  
73
		usb_puts(itoa(i, buf, 10));
74
		usb_puts("\t\t");
75
		usb_puts(itoa(analog10(i), buf, 10));
76
		usb_puts("\n");
77
	
78
	}
79

  
80
	delay_ms(delay);
81

  
82
}

Also available in: Unified diff