Rev 25 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 25 | Rev 50 | ||
|---|---|---|---|
| Line 14... | Line 14... | ||
| 14 | #define CANDEFS_H |
14 | #define CANDEFS_H |
| 15 | 15 | ||
| 16 | #include "../Include/compiler.h" |
16 | #include "../Include/compiler.h" |
| 17 | 17 | ||
| 18 | #define CAN_BAUD 0.250000 //in Mbits/s |
18 | #define CAN_BAUD 0.250000 //in Mbits/s |
| 19 |
|
19 | //#define CAN_LOOPBACK_MODE |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | // TQ(us) = (2 * (BRP + 1))/FOSC(MHz) |
22 | // TQ(us) = (2 * (BRP + 1))/FOSC(MHz) |
| 23 | // Nominal Bit Rate(kbit/s) = 1 / TBIT = 1 / (TQ(us) * 8) |
23 | // Nominal Bit Rate(kbit/s) = 1 / TBIT = 1 / (TQ(us) * 8) |
| 24 | // Where 8 is nominal bit time. |
24 | // Where 8 is nominal bit time. |