Rev 1648 | Rev 1651 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1648 | Rev 1650 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | ############################################################################*/ |
2 | ############################################################################*/ |
Line 3... | Line 3... | ||
3 | 3 | ||
Line 4... | Line 4... | ||
4 | #include "main.h" |
4 | #include "main.h" |
5 | 5 | ||
6 | volatile unsigned char twi_state = 0; |
6 | volatile unsigned char twi_state = 0; |
7 | unsigned char motor = 0; |
7 | volatile unsigned char motor = 0; |
Line 8... | Line 8... | ||
8 | unsigned char motorread = 0,MissingMotor = 0; |
8 | volatile unsigned char motorread = 0,MissingMotor = 0; |
9 | unsigned char BLFlags = 0; |
9 | volatile unsigned char BLFlags = 0; |
Line 10... | Line -... | ||
10 | - | ||
Line 11... | Line 10... | ||
11 | MotorData_t Motor[MAX_MOTORS]; |
10 | |
Line 12... | Line 11... | ||
12 | BLConfig_t BLConfig[MAX_MOTORS]; |
11 | MotorData_t Motor[MAX_MOTORS]; |
Line 65... | Line 64... | ||
65 | 64 | ||
66 | //############################################################################ |
65 | //############################################################################ |
67 | SIGNAL (TWI_vect) |
66 | SIGNAL (TWI_vect) |
68 | //############################################################################ |
67 | //############################################################################ |
69 | { |
68 | { |
- | 69 | static unsigned char missing_motor = 0, byte_counter = 0, crc = 0, read_more = 0, motorread_temperature = 0; |
|
- | 70 | static unsigned char *pTxBuff; |
|
70 | static unsigned char missing_motor = 0, byte_counter = 0, crc = 0, read_more = 0, motorread_temperature = 0; |
71 | |
71 | J4High; |
72 | J4High; |
72 | switch(twi_state++) |
73 | switch(twi_state++) |
73 | { |
74 | { |
74 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
75 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |