Skip to content

Commit

Permalink
Fixed all compile errors and blatant warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
egordon committed Mar 4, 2019
1 parent 8eacc01 commit fab4814
Show file tree
Hide file tree
Showing 80 changed files with 90,314 additions and 615 deletions.
11 changes: 6 additions & 5 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CFLAGS += -DPEAK_CAN
endif

ifeq ($(CAN_HARDWARE),socket)
LDFLAGS += -lrtdm
LDFLAGS += -ltrank
CFLAGS += -DSOCKET_CAN
endif

Expand All @@ -42,8 +42,9 @@ endif

ifeq ($(TARGET_OS),xenomai)
CFLAGS += -DXENOMAI
CFLAGS += -I/usr/xenomai/include/trank
CFLAGS += -I/usr/xenomai/include
LDFLAGS += -L/usr/xenomai/lib -rdynamic -lnative
LDFLAGS += -L/usr/xenomai/lib -rdynamic -lalchemy
SKIN = xeno
### Xenomai directory, xeno-config and library directory ###########
XENO_DIR ?= /usr/xenomai
Expand All @@ -58,9 +59,9 @@ CFLAGS += -Dxeno_conform
endif

### User space application compile options #########################
USERAPP_LIBS ?= -lnative
USERAPP_LDFLAGS ?= $(shell $(XENO_CONFIG) --skin=native --ldflags) -L$(XENO_LIB_DIR)
USERAPP_CFLAGS ?= $(shell $(XENO_CONFIG) --skin=native --cflags)
USERAPP_LIBS ?= -lalchemy
USERAPP_LDFLAGS ?= $(shell $(XENO_CONFIG) --skin=alchemy --ldflags) -L$(XENO_LIB_DIR)
USERAPP_CFLAGS ?= $(shell $(XENO_CONFIG) --skin=alchemy --cflags)

#USERAPP_LDFLAGS ?= $(shell $(XENO_CONFIG) --$(SKIN)-ldflags) -L$(XENO_LIB_DIR)
#USERAPP_CFLAGS ?= $(shell $(XENO_CONFIG) --$(SKIN)-cflags)
Expand Down
Binary file added examples/ex1-jointposition/ex1
Binary file not shown.
8,441 changes: 8,441 additions & 0 deletions examples/ex1-jointposition/ex1.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions examples/ex1-jointposition/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
/* Allow us to catch the Ctrl-C signal and exit gracefully */
#include <signal.h>

/* usleep */
#include <unistd.h>

/* Provides mlockall(), prevent process memory from being swapped out to disk */
#include <sys/mman.h>

Expand Down
Binary file added examples/ex1-jointposition/main.o
Binary file not shown.
Binary file added examples/ex2-gcomp/ex2
Binary file not shown.
8,550 changes: 8,550 additions & 0 deletions examples/ex2-gcomp/ex2.map

Large diffs are not rendered by default.

Loading

0 comments on commit fab4814

Please sign in to comment.