Rev 362 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 362 | Rev 1855 | ||
|---|---|---|---|
| Line 2... | Line 2... | ||
| 2 | #include <avr/io.h> |
2 | #include <avr/io.h> |
| 3 | #include <avr/interrupt.h> |
3 | #include <avr/interrupt.h> |
| - | 4 | #include <avr/wdt.h> |
|
| 4 | #include <config.h> |
5 | #include <config.h> |
| 5 | #include <drivers/can/can.h> |
6 | #include <drivers/can/can.h> |
| 6 | #include CAN_DRIVER_H |
7 | #include CAN_DRIVER_H |
| 7 | 8 | ||
| 8 | //--------------------------------------------------------------------------- |
9 | //--------------------------------------------------------------------------- |
| Line 10... | Line 11... | ||
| 10 | // These must all start with 'BIOS_' to be included in the library. |
11 | // These must all start with 'BIOS_' to be included in the library. |
| 11 | 12 | ||
| 12 | void BIOS_Reset(void) { |
13 | void BIOS_Reset(void) { |
| 13 | // Just loop and let the watchdog reset |
14 | // Just loop and let the watchdog reset |
| 14 | cli(); |
15 | cli(); |
| - | 16 | wdt_enable(WDTO_120MS); |
|
| 15 | while(1); |
17 | while(1); |
| 16 | } |
18 | } |
| 17 | 19 | ||
| 18 | Can_Return_t BIOS_CanSend(Can_Message_t* msg) { |
20 | Can_Return_t BIOS_CanSend(Can_Message_t* msg) { |
| 19 | return Can_Send(msg); |
21 | return Can_Send(msg); |