Rev 1855 | Details | Compare with Previous | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 361 | andfri | 1 | #include <inttypes.h> |
| 2 | #include <avr/io.h> |
||
| 3 | #include <avr/interrupt.h> |
||
| 1855 | arune | 4 | #include <avr/wdt.h> |
| 361 | andfri | 5 | #include <config.h> |
| 6 | #include <drivers/can/can.h> |
||
| 7 | #include CAN_DRIVER_H |
||
| 8 | |||
| 9 | //--------------------------------------------------------------------------- |
||
| 10 | // Function definitions for the exported interface |
||
| 11 | // These must all start with 'BIOS_' to be included in the library. |
||
| 12 | |||
| 13 | void BIOS_Reset(void) { |
||
| 14 | // Just loop and let the watchdog reset |
||
| 15 | cli(); |
||
| 1855 | arune | 16 | wdt_enable(WDTO_120MS); |
| 361 | andfri | 17 | while(1); |
| 18 | } |
||
| 19 | |||
| 20 | Can_Return_t BIOS_CanSend(Can_Message_t* msg) { |
||
| 21 | return Can_Send(msg); |
||
| 22 | } |
||
| 23 | |||
| 1908 | arune | 24 | uint32_t BIOS_GetHwId(void) { |
| 25 | return NODE_HW_ID; |
||
| 26 | } |