4 * Created on: 16 jun 2011
\r
12 //#define USE_LDEBUG_PRINTF // Uncomment this to turn debug statements on.
\r
15 // How many errors to keep in error log.
\r
16 #define ERROR_LOG_SIZE 20
\r
19 void StartupTask( void ) {
\r
20 LDEBUG_FPUTS("StartupTask start\n");
\r
22 // Call second phase of startup sequence.
\r
25 // Startup CanIf due to ComM is missing in this example
\r
26 CanIf_InitController(CANIF_Channel_1, CANIF_Channel_1_CONFIG_0);
\r
27 CanIf_SetControllerMode(CANIF_Channel_1, CANIF_CS_STARTED);
\r
29 // Make sure that the right PDU-groups are ready for communication.
\r
30 Com_IpduGroupStart(ComPduGroup, 0);
\r
32 // End of startup_task().
\r