Project

General

Profile

Revision 942

Simulator library compiles but doesn't do anything.

View differences:

dio.c
1 1
#include "dio.h"
2
#include "util.h"
2 3

  
3 4
int digital_input(int port)
4 5
{
5 6
	UNIMPLEMENTED
7
	return -1;
6 8
}
7 9

  
8 10
void digital_output(int port, int val)
......
18 20
int button1_read(void)
19 21
{
20 22
	UNIMPLEMENTED
23
	return -1;
21 24
}
22 25

  
23 26
int button1_click(void)
24 27
{
25 28
	UNIMPLEMENTED
29
	return -1;
26 30
}
27 31

  
28 32
void button1_wait(void)
......
33 37
int button2_read(void)
34 38
{
35 39
	UNIMPLEMENTED
40
	return -1;
36 41
}
37 42

  
38 43
int button2_click(void)
39 44
{
40

  
45
	UNIMPLEMENTED
46
	return -1;
41 47
}
42 48

  
43 49
void button2_wait(void)
44 50
{
45

  
51
	UNIMPLEMENTED
46 52
}
47 53

  

Also available in: Unified diff