Subversion Repositories HomeAutomation

Rev

Rev 228 | Blame | Last modification | View Log | SVN | RSS feed

  1. #ifndef BIOS_FUNS_H_
  2. #define BIOS_FUNS_H_
  3.  
  4. #define BIOS_BUILDTYPE_BIOS
  5. #define BIOS_VERSION 0x1002
  6.  
  7. #include "bios.h"
  8.  
  9. //---------------------------------------------------------------------------
  10. // Function prototypes for the exported interface
  11.  
  12. static void reset(void);
  13. static void bios_putchar(char c);
  14. static char bios_getchar(void);
  15. static long timebase_get(void);
  16. static Can_Return_t can_send(Can_Message_t* msg);
  17. //static Can_Return_t can_receive(Can_Message_t *msg);
  18.  
  19. static bios_t bios_functions = {
  20.     BIOS_VERSION,
  21.     reset,
  22.     can_send,
  23.     0,
  24.     bios_putchar,
  25.     bios_getchar,
  26.     timebase_get
  27. };
  28.  
  29. //---------------------------------------------------------------------------
  30. // Special CAN masks
  31.  
  32. // completely bogus
  33. #define CAN_FUNCT_MASK  0x00000F
  34. #define CAN_MSG_TYPE_BIOS   0x0
  35. #define CAN_MSG_TYPE_APP    0x1
  36. #define CAN_MSG_TYPE_BAJS   0x4
  37. #define CAN_MSG_TYPE_LOPRIO 0xf
  38.  
  39. #endif /*BIOS_FUNS_H_*/
  40.