Project

General

Profile

Revision cc9ca04e

IDcc9ca04e4d58158606627a644331754a3fd64e91

Added by Thomas Mullins over 11 years ago

Fixed pins to work with 128rfa1 instead of 2560

View differences:

scout_avr/src/bom.h
22 22

  
23 23
// i/o pins
24 24
// if these are changed, remember to change bom_init and/or ISRs
25
#define BOM_SIG PINB
26
#define BOM_SIG0 PB0
27
#define BOM_SIG1 PB1
28
#define BOM_SIG2 PB2
29
#define BOM_SIG3 PB3
30
#define BOM_EMIT PORTH
31
#define BOM_EMIT0 PH4
32
#define BOM_EMIT1 PH5
33
#define BOM_EMIT2 PH6
34
#define BOM_EMIT3 PH7
25
#define PIN_BOM_SIG PINB
26
#define P_BOM_SIG0 PB0
27
#define P_BOM_SIG1 PB1
28
#define P_BOM_SIG2 PB2
29
#define P_BOM_SIG3 PB3
30

  
31
#define PORT_BOM_EMIT PORTF
32
#define P_BOM_EMIT0 PF4
33
#define P_BOM_EMIT1 PF5
34
#define P_BOM_EMIT2 PF6
35
#define P_BOM_EMIT3 PF7
35 36

  
36 37
typedef uint8_t bom_msg_t;
37 38

  
......
48 49
void set_robot_id(char id);
49 50
char get_robot_id(void);
50 51

  
51
// NOTE: call range_init before bom_init to ensure timer 1 is set up!
52
// NOTE: call range_init before bom_init to ensure timer 5 is set up!
52 53
void bom_init(void);
53 54
void bom_send(char dir);
54 55
int bom_get(char dir);

Also available in: Unified diff