Rev 939 | Rev 965 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 939 | Rev 959 | ||
|---|---|---|---|
| Line 17... | Line 17... | ||
| 17 | * Call this function from your initiation routine |
17 | * Call this function from your initiation routine |
| 18 | * |
18 | * |
| 19 | *--------------------------------------------------------------------------*/ |
19 | *--------------------------------------------------------------------------*/ |
| 20 | void CanPrintf_Init(void) |
20 | void CanPrintf_Init(void) |
| 21 | { |
21 | { |
| 22 | StdCan_Set_class(printfTxMsg.Header, |
22 | StdCan_Set_class(printfTxMsg.Header, CAN_MODULE_CLASS_TST); |
| 23 | StdCan_Set_direction(printfTxMsg.Header, |
23 | StdCan_Set_direction(printfTxMsg.Header, DIRECTIONFLAG_FROM_OWNER); |
| 24 | printfTxMsg.Header.ModuleType = 0; |
24 | printfTxMsg.Header.ModuleType = 0; |
| 25 | printfTxMsg.Header.ModuleId = 0; |
25 | printfTxMsg.Header.ModuleId = 0; |
| 26 | printfTxMsg.Header.Command = |
26 | printfTxMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_ASCII; |
| 27 | bufpoint = 0; |
27 | bufpoint = 0; |
| 28 | stdout = &canstdout; //set the output stream |
28 | stdout = &canstdout; //set the output stream |
| 29 | } |
29 | } |
| 30 | 30 | ||
| 31 | /*---------------------------------------------------------------------------- |
31 | /*---------------------------------------------------------------------------- |