* Enter in realtime and start the CAN receiver loop
* @param port
*/
-void unixtimer_canReceiveLoop(CAN_PORT port)
+void* unixtimer_canReceiveLoop(void* port)
{
/*get signal*/
signal(SIGTERM, canReceiveLoop_signal);
- unixtimer_ReceiveLoop_task_proc(port);
+ unixtimer_ReceiveLoop_task_proc((CAN_PORT)port);
}
void CreateReceiveTask(CAN_PORT port, TASK_HANDLE* Thread, void* ReceiveLoopPtr)
#include "canfestival.h"
#include "TestMasterMicroMod.h"
#include "TestMaster.h"
-UNS8 slavenodeid;
+unsigned int slavenodeid;
/*****************************************************************************/
{
UNS32 PDO1_COBID = 0x0180 + slavenodeid;
UNS32 PDO2_COBID = 0x0200 + slavenodeid;
- UNS8 size = sizeof(UNS32);
+ UNS32 size = sizeof(UNS32);
eprintf("TestMaster_initialisation\n");
#include "canfestival.h"
#include "TestMasterMicroMod.h"
#include "TestMaster.h"
-UNS8 slavenodeid = 0x40;
+unsigned int slavenodeid = 0x40;
/*****************************************************************************/
{
UNS32 PDO1_COBID = 0x0180 + slavenodeid;
UNS32 PDO2_COBID = 0x0200 + slavenodeid;
- UNS8 size = sizeof(UNS32);
+ UNS32 size = sizeof(UNS32);
eprintf("TestMaster_initialisation\n");
{
UNS32 PDO1_COBID = 0x0182;
UNS32 PDO2_COBID = 0x0282;
- UNS8 size = sizeof(UNS32);
+ UNS32 size = sizeof(UNS32);
UNS32 SINC_cicle=0;
UNS8 data_type = 0;