Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 181 | andfri | 1 | #ifndef BIOS_FUNS_H_ |
| 2 | #define BIOS_FUNS_H_ |
||
| 3 | |||
| 4 | #define BIOS_BUILDTYPE_BIOS |
||
| 223 | andfri | 5 | #define BIOS_VERSION 0x1002 |
| 181 | andfri | 6 | |
| 7 | #include "bios.h" |
||
| 8 | |||
| 9 | //--------------------------------------------------------------------------- |
||
| 10 | // Function prototypes for the exported interface |
||
| 11 | |||
| 223 | andfri | 12 | static void reset(void); |
| 13 | static void bios_putchar(char c); |
||
| 14 | static char bios_getchar(void); |
||
| 15 | static long timebase_get(void); |
||
| 250 | andfri | 16 | static Can_Return_t can_send(Can_Message_t* msg); |
| 17 | //static Can_Return_t can_receive(Can_Message_t *msg); |
||
| 181 | andfri | 18 | |
| 19 | static bios_t bios_functions = { |
||
| 223 | andfri | 20 | BIOS_VERSION, |
| 21 | reset, |
||
| 250 | andfri | 22 | can_send, |
| 23 | 0, |
||
| 181 | andfri | 24 | bios_putchar, |
| 25 | bios_getchar, |
||
| 223 | andfri | 26 | timebase_get |
| 181 | andfri | 27 | }; |
| 28 | |||
| 250 | andfri | 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 | |||
| 181 | andfri | 39 | #endif /*BIOS_FUNS_H_*/ |