# HG changeset patch # User etisserant # Date 1237244664 -3600 # Node ID 6857b6ffb7a77dfab2b9fb267763ed283fa8bead # Parent 187058b4a4b86b5889901fc75f02ce4b6b2b7668 Removed some warnings. diff -r 187058b4a4b8 -r 6857b6ffb7a7 drivers/timers_unix/timers_unix.c --- a/drivers/timers_unix/timers_unix.c Tue Mar 17 00:03:18 2009 +0100 +++ b/drivers/timers_unix/timers_unix.c Tue Mar 17 00:04:24 2009 +0100 @@ -83,12 +83,12 @@ * 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) diff -r 187058b4a4b8 -r 6857b6ffb7a7 examples/DS401_Master/TestMasterMicroMod.c --- a/examples/DS401_Master/TestMasterMicroMod.c Tue Mar 17 00:03:18 2009 +0100 +++ b/examples/DS401_Master/TestMasterMicroMod.c Tue Mar 17 00:04:24 2009 +0100 @@ -38,7 +38,7 @@ #include "canfestival.h" #include "TestMasterMicroMod.h" #include "TestMaster.h" -UNS8 slavenodeid; +unsigned int slavenodeid; /*****************************************************************************/ @@ -56,7 +56,7 @@ { UNS32 PDO1_COBID = 0x0180 + slavenodeid; UNS32 PDO2_COBID = 0x0200 + slavenodeid; - UNS8 size = sizeof(UNS32); + UNS32 size = sizeof(UNS32); eprintf("TestMaster_initialisation\n"); diff -r 187058b4a4b8 -r 6857b6ffb7a7 examples/TestMasterMicroMod/TestMasterMicroMod.c --- a/examples/TestMasterMicroMod/TestMasterMicroMod.c Tue Mar 17 00:03:18 2009 +0100 +++ b/examples/TestMasterMicroMod/TestMasterMicroMod.c Tue Mar 17 00:04:24 2009 +0100 @@ -38,7 +38,7 @@ #include "canfestival.h" #include "TestMasterMicroMod.h" #include "TestMaster.h" -UNS8 slavenodeid = 0x40; +unsigned int slavenodeid = 0x40; /*****************************************************************************/ @@ -56,7 +56,7 @@ { UNS32 PDO1_COBID = 0x0180 + slavenodeid; UNS32 PDO2_COBID = 0x0200 + slavenodeid; - UNS8 size = sizeof(UNS32); + UNS32 size = sizeof(UNS32); eprintf("TestMaster_initialisation\n"); diff -r 187058b4a4b8 -r 6857b6ffb7a7 examples/TestMasterSlave/Master.c --- a/examples/TestMasterSlave/Master.c Tue Mar 17 00:03:18 2009 +0100 +++ b/examples/TestMasterSlave/Master.c Tue Mar 17 00:04:24 2009 +0100 @@ -40,7 +40,7 @@ { UNS32 PDO1_COBID = 0x0182; UNS32 PDO2_COBID = 0x0282; - UNS8 size = sizeof(UNS32); + UNS32 size = sizeof(UNS32); UNS32 SINC_cicle=0; UNS8 data_type = 0;