Subversion Repositories HomeAutomation

Rev

Rev 1855 | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. #include <inttypes.h>
  2. #include <avr/io.h>
  3. #include <avr/interrupt.h>
  4. #include <avr/wdt.h>
  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();
  16.     wdt_enable(WDTO_120MS);
  17.     while(1);
  18. }
  19.  
  20. Can_Return_t BIOS_CanSend(Can_Message_t* msg) {
  21.     return Can_Send(msg);
  22. }
  23.  
  24. uint32_t BIOS_GetHwId(void) {
  25.     return NODE_HW_ID;
  26. }
  27.