examples/TestMasterMicroMod/TestMaster.h
author gabriele at naustech dot com
Thu, 12 Jun 2014 14:07:16 +0200
changeset 791 7740ac6fdedc
parent 432 b4d313998bee
permissions -rw-r--r--
Fix : libcanfestival_unix.a not built if examples are not compiled

Problem: when building Canfestival with unix timers 'libcanfestiva_unix.a'
is built only if you build examples too.

Test case:

$ ./configure --timers=unix --can=socket --target=unix
$ make canfestival

...

no errors but 'libcanfestival_unix.a' is not built:
$ find . -name "*.a"
./src/libcanfestival.a

Changing line 90 of 'drivers/unix/Makefile.in' to:
#driver: $(OBJS)
driver: libcanfestival_$(TARGET).a

solves the problem:

$ ./configure --timers=unix --can=socket --target=unix
$ make canfestival

...

$ find . -name "*.a"
./drivers/unix/libcanfestival_unix.a
./src/libcanfestival.a
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     1
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     2
/* File generated by gen_cfile.py. Should not be modified. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     3
230
aa5ac69398bb Fixed tipo
etisserant
parents: 201
diff changeset
     4
#ifndef TESTMASTER_H
aa5ac69398bb Fixed tipo
etisserant
parents: 201
diff changeset
     5
#define TESTMASTER_H
aa5ac69398bb Fixed tipo
etisserant
parents: 201
diff changeset
     6
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     7
#include "data.h"
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     8
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     9
/* Prototypes of function provided by object dictionnary */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    10
UNS32 TestMaster_valueRangeTest (UNS8 typeValue, void * value);
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    11
const indextable * TestMaster_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks);
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    12
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    13
/* Master node data struct */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    14
extern CO_Data TestMaster_Data;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    15
extern UNS8 DO;		/* Mapped at index 0x2000, subindex 0x00*/
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    16
extern UNS8 DI1;		/* Mapped at index 0x200F, subindex 0x00*/
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    17
extern UNS8 DI2;		/* Mapped at index 0x2010, subindex 0x00*/
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    18
extern UNS8 DI3;		/* Mapped at index 0x2011, subindex 0x00*/
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    19
extern UNS8 DI4;		/* Mapped at index 0x2012, subindex 0x00*/
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    20
extern UNS8 DI5;		/* Mapped at index 0x2013, subindex 0x00*/
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    21
extern UNS8 DI6;		/* Mapped at index 0x2014, subindex 0x00*/
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    22
extern UNS8 DI7;		/* Mapped at index 0x2015, subindex 0x00*/
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    23
extern UNS8 DI8;		/* Mapped at index 0x2016, subindex 0x00*/
230
aa5ac69398bb Fixed tipo
etisserant
parents: 201
diff changeset
    24
aa5ac69398bb Fixed tipo
etisserant
parents: 201
diff changeset
    25
#endif // TESTMASTER_H