Project

General

Profile

Revision 933

Added unimplemented message to simulator library.

View differences:

branches/simulator/projects/simulator/libsim/analog.c
1 1
#include "analog.h"
2 2

  
3
#include "util.h"
4

  
3 5
void analog_init(int startConversion)
4 6
{
5
	
7
	UNIMPLEMENTED
6 8
}
7 9

  
8 10
void analog_start_loop(void)
9 11
{
10

  
12
	UNIMPLEMENTED
11 13
}
12 14

  
13 15
void analog_stop_loop(void)
14 16
{
15

  
17
	UNIMPLEMENTED
16 18
}
17 19

  
18 20
unsigned int analog8(int which)
19 21
{
20

  
22
	UNIMPLEMENTED
21 23
}
22 24

  
23 25
unsigned int analog10(int which)
24 26
{
25

  
27
	UNIMPLEMENTED
26 28
}
27 29

  
28 30
int wheel(void)
29 31
{
30

  
32
	UNIMPLEMENTED
31 33
}
32 34

  
33 35
unsigned int analog_get8(int which)
34 36
{
35

  
37
	UNIMPLEMENTED
36 38
}
37 39

  
38 40
unsigned int analog_get10(int which)
39 41
{
40

  
42
	UNIMPLEMENTED
41 43
}
42 44

  
branches/simulator/projects/simulator/libsim/buzzer.c
2 2

  
3 3
void buzzer_init(void)
4 4
{
5

  
5
	UNIMPLEMENTED
6 6
}
7 7

  
8 8
void buzzer_set_val(unsigned int buzz_val)
9 9
{
10

  
10
	UNIMPLEMENTED
11 11
}
12 12

  
13 13
void buzzer_set_freq(unsigned int buzzer_freq)
14 14
{
15

  
15
	UNIMPLEMENTED
16 16
}
17 17

  
18 18
void buzzer_chirp(unsigned int ms, unsigned int buzz_freq)
19 19
{
20

  
20
	UNIMPLEMENTED
21 21
}
22 22

  
23 23
void buzzer_off(void)
24 24
{
25

  
25
	UNIMPLEMENTED
26 26
}
27 27

  
branches/simulator/projects/simulator/libsim/encoders.c
2 2

  
3 3
void encoders_init(void)
4 4
{
5

  
5
	UNIMPLEMENTED
6 6
}
7 7

  
8 8
int encoder_read(char encoder)
9 9
{
10

  
10
	UNIMPLEMENTED
11 11
}
12 12

  
13 13
int encoder_get_dx(char encoder)
14 14
{
15

  
15
	UNIMPLEMENTED
16 16
}
17 17

  
18 18
void encoder_rst_dx(char encoder)
19 19
{
20

  
20
	UNIMPLEMENTED
21 21
}
22 22

  
23 23
int encoder_get_tc(void)
24 24
{
25

  
25
	UNIMPLEMENTED
26 26
}
27 27

  
28 28
void encoder_rst_tc(void)
29 29
{
30

  
30
	UNIMPLEMENTED
31 31
}
32 32

  
33 33
void encoder_wait( int nReadings )
34 34
{
35

  
35
	UNIMPLEMENTED
36 36
}
37 37

  
branches/simulator/projects/simulator/libsim/lcd.c
2 2

  
3 3
void lcd_init(void)
4 4
{
5

  
5
	UNIMPLEMENTED
6 6
}
7 7

  
8 8
void lcd_clear_screen( void )
9 9
{
10

  
10
	UNIMPLEMENTED
11 11
}
12 12

  
13 13
void lcd_putc(char c)
14 14
{
15

  
15
	UNIMPLEMENTED
16 16
}
17 17

  
18 18
void lcd_puts(char *s)
19 19
{
20

  
20
	UNIMPLEMENTED
21 21
}
22 22

  
23 23
void lcd_puti(int value)
24 24
{
25

  
25
	UNIMPLEMENTED
26 26
}
27 27

  
28 28
void lcd_gotoxy(int x, int y)
29 29
{
30

  
30
	UNIMPLEMENTED
31 31
}
32 32

  
branches/simulator/projects/simulator/libsim/util.h
1

  
2
#define UNIMPLEMENTED printf("Function %s is unimplemented in the simulator.\n", __func__);
3

  
branches/simulator/projects/simulator/libsim/motors.c
2 2

  
3 3
void motors_init(void)
4 4
{
5

  
5
	UNIMPLEMENTED
6 6
}
7 7

  
8 8
void motor1_set(int direction, int speed)
9 9
{
10

  
10
	UNIMPLEMENTED
11 11
}
12 12

  
13 13
void motor2_set(int direction, int speed)
14 14
{
15

  
15
	UNIMPLEMENTED
16 16
}
17 17

  
18 18
void motors_off(void)
19 19
{
20

  
20
	UNIMPLEMENTED
21 21
}
22 22

  
branches/simulator/projects/simulator/libsim/orbs.c
2 2

  
3 3
void orb_init(void)
4 4
{
5

  
5
	UNIMPLEMENTED
6 6
}
7 7

  
8 8
void orb_set(unsigned char red_led, unsigned char green_led,
9 9
		unsigned char blue_led)
10 10
{
11

  
11
	UNIMPLEMENTED
12 12
}
13 13

  
14 14
void orb1_set(unsigned char red_led, unsigned char green_led,
15 15
		unsigned char blue_led)
16 16
{
17

  
17
	UNIMPLEMENTED
18 18
}
19 19

  
20 20
void orb2_set(unsigned char red_led, unsigned char green_led,
21 21
		unsigned char blue_led)
22 22
{
23

  
23
	UNIMPLEMENTED
24 24
}
25 25

  
26 26
void orb_set_color(int col)
27 27
{
28

  
28
	UNIMPLEMENTED
29 29
}
30 30

  
31 31
void orb1_set_color(int col)
32 32
{
33

  
33
	UNIMPLEMENTED
34 34
}
35 35

  
36 36
void orb2_set_color(int col)
37 37
{
38

  
38
	UNIMPLEMENTED
39 39
}
40 40

  
41 41
void orb_disable(void)
42 42
{
43

  
43
	UNIMPLEMENTED
44 44
}
45 45

  
46 46
void orb_enable(void)
47 47
{
48

  
48
	UNIMPLEMENTED
49 49
}
50 50

  
branches/simulator/projects/simulator/libsim/eeprom.c
2 2

  
3 3
int eeprom_put_byte(unsigned int addr, unsigned char byte)
4 4
{
5

  
5
	UNIMPLEMENTED
6 6
}
7 7

  
8 8
int eeprom_get_byte(unsigned int addr, unsigned char *byte)
9 9
{
10

  
10
	UNIMPLEMENTED
11 11
}
12 12

  
13 13
unsigned char get_robotid(void)
14 14
{
15

  
15
	UNIMPLEMENTED
16 16
}
17 17

  
branches/simulator/projects/simulator/libsim/battery.c
2 2

  
3 3
int battery8(void)
4 4
{
5

  
5
	UNIMPLEMENTED
6 6
}
7 7

  
8 8
int battery(void)
9 9
{
10

  
10
	UNIMPLEMENTED
11 11
}
12 12

  
13 13
char battery_low(void)
14 14
{
15

  
15
	UNIMPLEMENTED
16 16
}
17 17

  
18 18
int battery8_avg(int n_samples)
19 19
{
20

  
20
	UNIMPLEMENTED
21 21
}
22 22

  
branches/simulator/projects/simulator/libsim/dio.c
2 2

  
3 3
int digital_input(int port)
4 4
{
5

  
5
	UNIMPLEMENTED
6 6
}
7 7

  
8 8
void digital_output(int port, int val)
9 9
{
10

  
10
	UNIMPLEMENTED
11 11
}
12 12

  
13 13
void digital_pull_up(int port)
14 14
{
15

  
15
	UNIMPLEMENTED
16 16
}
17 17

  
18 18
int button1_read(void)
19 19
{
20

  
20
	UNIMPLEMENTED
21 21
}
22 22

  
23 23
int button1_click(void)
24 24
{
25

  
25
	UNIMPLEMENTED
26 26
}
27 27

  
28 28
void button1_wait(void)
29 29
{
30

  
30
	UNIMPLEMENTED
31 31
}
32 32

  
33 33
int button2_read(void)
34 34
{
35

  
35
	UNIMPLEMENTED
36 36
}
37 37

  
38 38
int button2_click(void)
branches/simulator/projects/simulator/libsim/bom.c
2 2

  
3 3
void bom_init(char type)
4 4
{
5

  
5
	UNIMPLEMENTED
6 6
}
7 7

  
8 8
void bom_refresh(int bitfield)
9 9
{
10

  
10
	UNIMPLEMENTED
11 11
}
12 12

  
13 13
int bom_get(int which)
14 14
{
15

  
15
	UNIMPLEMENTED
16 16
}
17 17

  
18 18
int bom_get_max(void)
19 19
{
20

  
20
	UNIMPLEMENTED
21 21
}
22 22

  
23 23
void bom_leds_on(int bit_field)
24 24
{
25

  
25
	UNIMPLEMENTED
26 26
}
27 27

  
28 28
void bom_leds_off(int bit_field)
29 29
{
30

  
30
	UNIMPLEMENTED
31 31
}
32 32

  
33 33
void bom_on(void)
34 34
{
35

  
35
	UNIMPLEMENTED
36 36
}
37 37

  
38 38
void bom_off(void)
39 39
{
40

  
40
	UNIMPLEMENTED
41 41
}
42 42

  
branches/simulator/projects/simulator/libsim/i2c.c
2 2

  
3 3
int i2c_init(char addr, fun_mrecv_t master_recv, fun_srecv_t slave_recv, fun_send_t slave_send)
4 4
{
5

  
5
	UNIMPLEMENTED
6 6
}
7 7

  
8 8
int i2c_send(char dest, char* data, size_t bytes)
9 9
{
10

  
10
	UNIMPLEMENTED
11 11
}
12 12

  
13 13
int i2c_request(char dest)
14 14
{
15

  
15
	UNIMPLEMENTED
16 16
}
17 17

  

Also available in: Unified diff