Commit 5db473e9 authored by Federico Vaga's avatar Federico Vaga

rename: files wrnc -> mockturtle

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 75d1f4f8
......@@ -5,7 +5,7 @@ CROSS_COMPILE_TARGET ?= lm32-elf-
INSTALL_PREFIX ?= .
PATH_COMMON_RT ?= .
PATH_COMMON_H ?= ../include
WRNC ?= ../../
TRTL ?= ../../
CC = $(CROSS_COMPILE_TARGET)gcc
LD = $(CROSS_COMPILE_TARGET)ld
......@@ -17,22 +17,22 @@ RT_GIT_VERSION = 0x$(shell cd ../../..; git rev-parse --short=8 HEAD)
CFLAGS += -Wall -DWRNODE_RT -g -Os -mmultiply-enabled -mbarrel-shift-enabled
CFLAGS += -I.
CFLAGS += -I$(WRNC)/applications/common/rt
CFLAGS += -I$(WRNC)/applications/common/include
CFLAGS += -I$(WRNC)/include
CFLAGS += -I$(TRTL)/applications/common/rt
CFLAGS += -I$(TRTL)/applications/common/include
CFLAGS += -I$(TRTL)/include
CFLAGS += -DGIT_VERSION=$(RT_GIT_VERSION)
CFLAGS += $(EXTRA_CFLAGS)
OBJS += $(WRNC)/applications/common/rt/wrn-crt0.o
OBJS += $(WRNC)/applications/common/rt/vsprintf-xint.o
OBJS += $(WRNC)/applications/common/rt/printf.o
OBJS += $(WRNC)/applications/common/rt/rt-common.o
OBJS += $(TRTL)/applications/common/rt/mockturtle-crt0.o
OBJS += $(TRTL)/applications/common/rt/vsprintf-xint.o
OBJS += $(TRTL)/applications/common/rt/printf.o
OBJS += $(TRTL)/applications/common/rt/mockturtle-rt-common.o
ifdef RT_USE_LIBRT
OBJS += $(WRNC)/applications/common/rt/librt.o
OBJS += $(TRTL)/applications/common/rt/libmockturtle-rt.o
endif
LDSCRIPT = $(WRNC)/applications/common/rt/wrnode.ld
LDSCRIPT = $(TRTL)/applications/common/rt/mockturtle.ld
all: clean $(OUTPUT)
......
......@@ -7,7 +7,7 @@
#include <stdint.h>
#include <errno.h>
#include <librt.h>
#include <libmockturtle-rt.h>
uint32_t msg_seq = 0;
struct rt_application *_app;
......
......@@ -9,11 +9,11 @@
#define __LIBRT_H__
#include <stdint.h>
#include "wrnc-common.h"
#include "hw/wrn_cpu_lr.h"
#include "rt-common.h"
#include "rt-mqueue.h"
#include "rt-message.h"
#include "mockturtle-common.h"
#include "hw/mockturtle_cpu_lr.h"
#include "mockturtle-rt-common.h"
#include "mockturtle-rt-mqueue.h"
#include "mockturtle-rt-message.h"
#include "pp-printf.h"
#define RT_VARIABLE_FLAG_REG (1 << 0)
......
......@@ -18,7 +18,7 @@
#include <string.h>
#include "pp-printf.h"
#include "rt-common.h"
#include "mockturtle-rt-common.h"
/**
* It sends a string over the debug interface
......
......@@ -20,7 +20,7 @@
#include <stdint.h>
#include <stdio.h>
#include "hw/wrn_cpu_lr.h"
#include "hw/mockturtle_cpu_lr.h"
/* Dedicated Peripheral base */
#define CPU_DP_BASE 0x200000
......
......@@ -17,7 +17,7 @@
#ifndef __RT_MESSAGE_H
#define __RT_MESSAGE_H
#include <wrnc-common.h>
#include <mockturtle-common.h>
#ifdef WRNODE_RT
......
......@@ -14,15 +14,15 @@
* rt.h: all common stuff in a single header
*/
#ifndef __WRN_RT_H
#define __WRN_RT_H
#ifndef __MOCKTURTLE_RT_H
#define __MOCKTURTLE_RT_H
#include <stdint.h>
#include "rt-mqueue.h"
#include "rt-message.h"
#include "rt-common.h"
#include "rt-smem.h"
#include "mockturtle-rt-mqueue.h"
#include "mockturtle-rt-message.h"
#include "mockturtle-rt-common.h"
#include "mockturtle-rt-smem.h"
#include "pp-printf.h"
#endif
......@@ -9,7 +9,7 @@
#ifndef __DEMO_COMMON_H
#define __DEMO_COMMON_H
#include <wrnc-common.h>
#include <mockturtle-common.h>
/* HMQ slots used for input */
#define DEMO_HMQ_IN 0
......
......@@ -3,12 +3,12 @@
# build a particular environment.
-include Makefile.specific
WRNC ?= ../../../
TRTL ?= ../../../
LIB = libdemo.a
LOBJ := libdemo.o
CFLAGS += -Wall -ggdb -O0 -I. -I../include -I$(WRNC)/include -I$(WRNC)/lib -I$(WRNC)/kernel $(EXTRACFLAGS)
CFLAGS += -Wall -ggdb -O0 -I. -I../include -I$(TRTL)/include -I$(TRTL)/lib -I$(TRTL)/kernel $(EXTRACFLAGS)
LDLIBS += -L. -ldemo
......
......@@ -11,7 +11,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <libwrnc.h>
#include <libmockturtle.h>
#include <libdemo-internal.h>
const char *demo_errors[] = {
......
OBJS = autodemo.o ../common/demo-smem-code.o
OUTPUT = autodemo
WRNC = ../../../../
TRTL = ../../../../
EXTRA_CFLAGS += -I../../include
EXTRA_CFLAGS += -I../common
EXTRA_CFLAGS += -DFPGA_APPLICATION_ID=0xd330d330
EXTRA_CFLAGS += -DRT_APPLICATION_ID=0x1236
include $(WRNC)/applications/common/rt/Makefile
include $(TRTL)/applications/common/rt/Makefile
......@@ -9,7 +9,7 @@
*/
#include <string.h>
#include "rt.h"
#include "mockturtle-rt.h"
#include <demo-common-rt.h>
#define GPIO_CODR 0x0
......
......@@ -9,7 +9,7 @@
#ifndef __DEMO_COMMON_RT_H__
#define __DEMO_COMMON_RT_H__
#include <rt-smem.h>
#include <mockturtle-rt-smem.h>
#include <demo-common.h>
extern volatile int autodemo_run;
......
......@@ -7,7 +7,7 @@
* Released according to the GNU GPL, version 2 or any later version.
*/
#include "rt.h"
#include "mockturtle-rt.h"
#include "demo-common-rt.h"
SMEM volatile int autodemo_run;
OBJS = rt-demo.o
OUTPUT = rt-demo
WRNC = ../../../../
TRTL = ../../../../
EXTRA_CFLAGS += -I../../include
EXTRA_CFLAGS += -I../common
......@@ -8,4 +8,4 @@ EXTRA_CFLAGS += -DRTPERFORMANCE
EXTRA_CFLAGS += -DLIBRT_DEBUG -DLIBRT_ERROR
RT_USE_LIBRT := 1
include $(WRNC)/applications/common/rt/Makefile
include $(TRTL)/applications/common/rt/Makefile
......@@ -8,9 +8,9 @@
*/
#include <string.h>
#include <rt.h>
#include <mockturtle-rt.h>
#include <demo-common-rt.h>
#include <librt.h>
#include <libmockturtle-rt.h>
#define GPIO_CODR 0x0 /* Clear Data Register */
#define GPIO_SODR 0x4 /* Set Data Register */
......
......@@ -5,12 +5,12 @@
DESTDIR ?= /usr/local
WRNC ?= ../../../
TRTL ?= ../../../
CFLAGS += -Wall -ggdb -I. -I../include -I$(WRNC)/include -I$(WRNC)/lib -I../lib
CFLAGS += -Wall -ggdb -I. -I../include -I$(TRTL)/include -I$(TRTL)/lib -I../lib
CFLAGS += $(EXTRACFLAGS)
LDLIBS += -Wl,-Bstatic -L../lib -ldemo -L$(WRNC)/lib -lwrnc
LDLIBS += -Wl,-Bstatic -L../lib -ldemo -L$(TRTL)/lib -lmockturtle
LDLIBS += -Wl,-Bdynamic
PROGS := demo
......
......@@ -10,7 +10,6 @@
#include <errno.h>
#include <string.h>
#include <getopt.h>
#include <libwrnc.h>
#include <libdemo.h>
#include <inttypes.h>
......
......@@ -3,7 +3,7 @@
# build a particular environment.
-include Makefile.specific
WRNC ?= ../../../
TRTL ?= ../../../
LIBTDC ?= ../fmc-tdc-sw/lib
LIBFD ?= ../fine-delay-sw/lib
......@@ -15,7 +15,7 @@ LOBJ += libwrtd-logging.o
LOBJ += libwrtd-input.o
LOBJ += libwrtd-output.o
CFLAGS += -Wall -ggdb -O2 -fPIC -I. -I../include -I$(WRNC)/include -I$(WRNC)/lib -I$(LIBFD) -I$(LIBTDC) -I$(LIBFD)/../kernel
CFLAGS += -Wall -ggdb -O2 -fPIC -I. -I../include -I$(TRTL)/include -I$(TRTL)/lib -I$(LIBFD) -I$(LIBTDC) -I$(LIBFD)/../kernel
CFLAGS += $(EXTRACFLAGS)
LDLIBS += -L. -lwrtd
......
......@@ -8,7 +8,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <libwrnc.h>
#include <libmockturtle.h>
#include <libwrtd-internal.h>
#include <wrtd-serializers.h>
......
......@@ -7,7 +7,7 @@
#include <stdlib.h>
#include <errno.h>
#include <libwrnc.h>
#include <libmockturtle.h>
#include "libwrtd-internal.h"
static const struct wrnc_proto_header wrtd_in_hdr_sync = {
......
......@@ -8,7 +8,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <libwrnc.h>
#include <libmockturtle.h>
#include "libwrtd-internal.h"
......
......@@ -9,7 +9,7 @@
#include <errno.h>
#include <string.h>
#include <poll.h>
#include <libwrnc.h>
#include <libmockturtle.h>
#include <libwrtd-internal.h>
#include <wrtd-serializers.h>
......
......@@ -8,7 +8,7 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <libwrnc.h>
#include <libmockturtle.h>
#include <libwrtd-internal.h>
#include "wrtd-serializers.h"
......
......@@ -15,7 +15,7 @@ extern "C" {
#include <stdint.h>
#include <stdio.h>
#include "libwrnc.h"
#include "libmockturtle.h"
/**
* @file wrtd-common.h
*/
......
......@@ -14,7 +14,7 @@
* loop-queue.c: Shared Memory-based Loopback queue.
*/
#include "rt.h"
#include "mockturtle-rt.h"
#include "wrtd-common.h"
#define LOOP_QUEUE_SIZE 16
......
......@@ -17,7 +17,7 @@
#ifndef __LOOP_QUEUE_H
#define __LOOP_QUEUE_H
#include "rt.h"
#include "mockturtle-rt.h"
#include "wrtd-common.h"
#define LOOP_QUEUE_SIZE 16
......
......@@ -3,7 +3,7 @@
OBJS := wrtd-rt-fd.o
OBJS += ../common/loop-queue.o
OUTPUT = wrtd-rt-fd
WRNC = ../../../../
TRTL = ../../../../
EXTRA_CFLAGS += -I../../include
EXTRA_CFLAGS += -I../common
......@@ -11,4 +11,4 @@ EXTRA_CFLAGS += -DLIBRT_ERROR
#EXTRA_CFLAGS += -DLIBRT_DEBUG
#EXTRA_CFLAGS += -DRTDEBUG
RT_USE_LIBRT := 1
include $(WRNC)/applications/common/rt/Makefile
include $(TRTL)/applications/common/rt/Makefile
......@@ -17,14 +17,14 @@
#include <string.h>
#include "rt.h"
#include "mockturtle-rt.h"
#include "wrtd-common.h"
#include "hw/fd_channel_regs.h"
#include "hw/fd_main_regs.h"
#include "loop-queue.h"
#include <librt.h>
#include <libmockturtle-rt.h>
#define OUT_TIMEOUT 10
......
......@@ -3,11 +3,11 @@
OBJS := wrtd-rt-tdc.o
OBJS += ../common/loop-queue.o
OUTPUT = wrtd-rt-tdc
WRNC = ../../../../
TRTL = ../../../../
EXTRA_CFLAGS += -I../../include
EXTRA_CFLAGS += -I../common
EXTRA_CFLAGS += -DLIBRT_ERROR
#EXTRA_CFLAGS += -DLIBRT_DEBUG
RT_USE_LIBRT := 1
include $(WRNC)/applications/common/rt/Makefile
include $(TRTL)/applications/common/rt/Makefile
......@@ -17,13 +17,13 @@
#include <string.h>
#include "rt.h"
#include "mockturtle-rt.h"
#include "wrtd-common.h"
#include "hw/fmctdc-direct.h"
#include "hw/tdc_regs.h"
#include "loop-queue.h"
#include <librt.h>
#include <libmockturtle-rt.h>
#define DEFAULT_DEAD_TIME (80000/16)
......
......@@ -5,13 +5,13 @@
DESTDIR ?= /usr/local
WRNC ?= ../../../
TRTL ?= ../../../
CFLAGS += -Wall -Werror -ggdb
CFLAGS += -I. -I../include -I$(WRNC)/include -I$(WRNC)/lib -I../lib
CFLAGS += -I. -I../include -I$(TRTL)/include -I$(TRTL)/lib -I../lib
CFLAGS += $(EXTRACFLAGS)
CFLAGS += $(EXTRACFLAGS)
LDLIBS += -Wl,-Bstatic -L../lib -lwrtd -L$(WRNC)/lib -lwrnc
LDLIBS += -Wl,-Bstatic -L../lib -lwrtd -L$(TRTL)/lib -lmockturtle
LDLIBS += -Wl,-Bdynamic -lpthread
PROGS := wrtd-boot
......
......@@ -12,7 +12,6 @@
#include <getopt.h>
#include <inttypes.h>
#include <libgen.h>
#include <libwrnc.h>
#include <libwrtd.h>
#define WRTD_BOOT_WR_FMC_OFFSET 0x2
......
......@@ -12,7 +12,6 @@
#include <string.h>
#include <getopt.h>
#include <libgen.h>
#include <libwrnc.h>
#include <libwrtd.h>
#include <inttypes.h>
......
......@@ -11,7 +11,7 @@
#include <errno.h>
#include <string.h>
#include <libwrnc.h>
#include <libmockturtle.h>
#include <libwrtd.h>
#include <wrtd-common.h>
#include <wrtd-internal.h>
......
......@@ -8,7 +8,7 @@
#ifndef __WRTD_TOOLS_INTERNAL_H__
#define __WRTD_TOOLS_INTERNAL_H__
#include <libwrnc.h>
#include <libmockturtle.h>
#include <libwrtd.h>
#include <wrtd-internal.h>
......
......@@ -14,7 +14,6 @@
#include <inttypes.h>
#include <libgen.h>
#include <pthread.h>
#include <libwrnc.h>
#include <libwrtd.h>
static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER;
......
......@@ -12,7 +12,6 @@
#include <string.h>
#include <getopt.h>
#include <libgen.h>
#include <libwrnc.h>
#include <libwrtd.h>
#include <wrtd-internal.h>
......
......@@ -3,13 +3,13 @@
# build a particular environment.
-include Makefile.specific
WRNC ?= ../../../
TRTL ?= ../../../
CFLAGS += -Wall -ggdb -O0
CFLAGS += -I. -I../include -I$(WRNC)/include -I$(WRNC)/lib -I../lib
CFLAGS += -I. -I../include -I$(TRTL)/include -I$(TRTL)/lib -I../lib
CFLAGS += $(EXTRACFLAGS)
CFLAGS += $(EXTRACFLAGS)
LDLIBS += -Wl,-Bstatic -L../lib -lwrtd -L$(WRNC)/lib -lwrnc
LDLIBS += -Wl,-Bstatic -L../lib -lwrtd -L$(TRTL)/lib -lmockturtle
LDLIBS += -Wl,-Bdynamic
PROG := wrtd-ut
......
#include "wrtd-ut.h"
#include "CuTest.h"
#include <libwrnc.h>
#include <libmockturtle.h>
#include <libwrtd.h>
static void test_open_close(CuTest *tc)
......
......@@ -13,7 +13,7 @@
#include "wrtd-ut.h"
#include "CuTest.h"
#include <libwrnc.h>
#include <libmockturtle.h>
#include <libwrtd.h>
static void test_ping(CuTest *tc)
......
......@@ -14,7 +14,7 @@
#include "wrtd-ut.h"
#include "CuTest.h"
#include <libwrnc.h>
#include <libmockturtle.h>
#include <libwrtd.h>
/**
......
......@@ -13,7 +13,7 @@
#include "wrtd-ut.h"
#include "CuTest.h"
#include <libwrnc.h>
#include <libmockturtle.h>
#include <libwrtd.h>
......
......@@ -5,8 +5,8 @@
* Released according to the GNU GPL, version 3
*/
#ifndef __WRNC_COMMON_H__
#define __WRNC_COMMON_H__
#ifndef __TRTL_COMMON_H__
#define __TRTL_COMMON_H__
#include <string.h>
......
......@@ -3,9 +3,9 @@
* Author: Federico Vaga <federico.vaga@cern.ch>
* License: GPL v3
*/
#ifndef __WRNC_USER_H__
#define __WRNC_USER_H__
/** @file wrnc-user.h */
#ifndef __TRT_USER_H__
#define __TRTL_USER_H__
/** @file mock-turtle.h */
#define WRNC_MAX_CARRIER 20 /**< Maximum number of WRNC components on a
single computer*/
......
......@@ -24,16 +24,16 @@ ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\" \
-I$(src)/../include
ccflags-$(CONFIG_WRNC_DEBUG) += -DDEBUG
ccflags-$(CONFIG_TRTL_DEBUG) += -DDEBUG
subdirs-ccflags-y = $(ccflags-y)
obj-m := wr-node-core.o
wr-node-core-y := wrnc-core.o
wr-node-core-y += wrnc-cpu.o
wr-node-core-y += wrnc-hmq.o
wr-node-core-y += wrnc-dbg.o
obj-m := mockturtle.o
mockturtle-y := mockturtle-core.o
mockturtle-y += mockturtle-cpu.o
mockturtle-y += mockturtle-hmq.o
mockturtle-y += mockturtle-dbg.o
all modules:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) modules
......
......@@ -25,10 +25,10 @@
#include <linux/fmc.h>
#include <linux/fmc-sdb.h>
#include <hw/wrn_cpu_csr.h>
#include <hw/mqueue.h>
#include <hw/mockturtle_cpu_csr.h>
#include <hw/mockturtle_queue.h>
#include "wrnc.h"
#include "mockturtle-drv.h"
static int wrnc_dev_uevent(struct device *dev, struct kobj_uevent_env *env)
{
......
......@@ -11,9 +11,9 @@
#include <linux/vmalloc.h>
#include <linux/fmc.h>
#include <hw/wrn_cpu_csr.h>
#include <hw/mockturtle_cpu_csr.h>
#include "wrnc.h"
#include "mockturtle-drv.h"
/**
......
......@@ -14,9 +14,9 @@
#include <linux/circ_buf.h>
#include <linux/fmc.h>
#include <hw/wrn_cpu_csr.h>
#include <hw/mockturtle_cpu_csr.h>
#include "wrnc.h"
#include "mockturtle-drv.h"
int dbg_max_msg = 1024; /**< debug messages buffer */
module_param_named(max_dbg_msg, dbg_max_msg, int, 0444);
......
......@@ -4,12 +4,12 @@
* License: GPL v2
*/
#ifndef __WRNC_H__
#define __WRNC_H__
#ifndef __TRTL_H__
#define __TRTL_H__
#include <linux/circ_buf.h>
#include "hw/mqueue.h"
#include "wrnc-user.h"
#include "hw/mockturtle_queue.h"
#include "mockturtle.h"
#define WRNC_MAX_CPU_MINORS (WRNC_MAX_CPU * WRNC_MAX_CARRIER)
#define WRNC_MAX_HMQ_MINORS (WRNC_MAX_HMQ_SLOT * WRNC_MAX_CARRIER)
......
......@@ -21,9 +21,9 @@
#include <linux/fmc.h>
#include <hw/mqueue.h>
#include <hw/mockturtle_queue.h>
#include "wrnc.h"
#include "mockturtle-drv.h"
int hmq_default_buf_size = 8192; /**< default buffer size in byte */
module_param_named(slot_buffer_size, hmq_default_buf_size, int, 0444);
......
......@@ -3,16 +3,16 @@
# build a particular environment.
-include Makefile.specific
WRNC ?= ../
TRTL ?= ../
LIBS = libwrnc.so
LIB = libwrnc.a
LOBJ := libwrnc.o
LOBJ += libwrnc-rt-msg.o
LIBS = libmockturtle.so
LIB = libmockturtle.a
LOBJ := libmockturtle.o
LOBJ += libmockturtle-rt-msg.o
CFLAGS += -Wall -Werror -ggdb -fPIC
CFLAGS += -I. -I$(WRNC)/include $(EXTRACFLAGS)
LDFLAGS = -L. -lwrnc
CFLAGS += -I. -I$(TRTL)/include $(EXTRACFLAGS)
LDFLAGS = -L. -lmockturtle
modules all: $(LIB) $(LIBS)
......
......@@ -44,7 +44,7 @@ class Wrnc(object):
This is an abstract class to handle the WRNC library
"""
def __init__(self, lun=None, device_id=None):
self.libwrnc = CDLL("libwrnc.so", use_errno=True)
self.libwrnc = CDLL("libmockturtle.so", use_errno=True)
self.lun = lun
self.device_id = device_id
......
......@@ -4,8 +4,8 @@
@license: GPLv3
"""
from .PyWRNC import WrncHeader, WrncMessage, \
WrncCpu, WrncHmq, WrncSmem, WrncDebug
from .PyMockTurtle import WrncHeader, WrncMessage, \
WrncCpu, WrncHmq, WrncSmem, WrncDebug
__all__ = (
"WrncCpu",
......
/*
* Copyright (C) 2014 CERN (www.cern.ch)
* Author: Federico Vaga <federico.vaga@cern.ch>
* License: GPL v3
*/
#ifndef __LIBWRNC_INTERNAL_H__
#define __LIBWRNC_INTERNAL_H__
#include "libwrnc.h"
#ifndef __LIBTRTL_INTERNAL_H__
#define __LIBTRTL_INTERNAL_H__
#include "libmockturtle.h"
/**
* Internal descriptor for a WRNC device
......
......@@ -5,7 +5,7 @@
* Released according to the GNU GPL, version 3
*/
#include <libwrnc.h>
#include <libmockturtle.h>
#include <errno.h>
/**
......
......@@ -18,7 +18,7 @@
#include <fcntl.h>
#include <glob.h>
#include "libwrnc-internal.h"
#include "libmockturtle-internal.h"
const unsigned int wrnc_default_timeout_ms = 1000;
......
......@@ -5,9 +5,9 @@
* License: GPL v3
*/
#ifndef __LIB_WRNC_H__
#define __LIB_WRNC_H__
/** @file libwrnc.h */
#ifndef __LIB_TRTL_H__
#define __LIB_TRTL_H__
/** @file libmockturtle.h */
#ifdef __cplusplus
extern "C" {
......@@ -18,8 +18,8 @@ extern "C" {
#include <stdint.h>
#include <stdio.h>
#include <poll.h>
#include "wrnc-common.h"
#include "wrnc-user.h"
#include "mockturtle-common.h"
#include "mockturtle.h"
extern const unsigned int wrnc_default_timeout_ms;
......
Library Overview {#mainpage}
================
This is the **WRNC** library documentation. Here you can find all
the information about the *White-Rabbit Node-Core* API and the main
This is the **Mock Turtle** (*TRTL*) library documentation. Here you can find all
the information about the *Mock Turtle* API and the main
library behavior that you need to be aware of.
If you are reading this from the doxygen documentation, then you can find
......@@ -15,9 +15,9 @@ to use the library API.
Initialization
==============
To be able to use this library the first thing to do is to initialize a library
instance using wrnc_init(); form this point on you are able to use the
instance using trtl_init(); form this point on you are able to use the
library API. Of course, when you finished to use the library you have to
remove this instance using wrnc_exit().
remove this instance using trtl_exit().
At the beginning, all communication channels are close, so before start to
communicate with the Real Time application you have to open your communication
......@@ -61,7 +61,7 @@ Shared Memory
The **shared memory** is mainly used to synchronize the Real-Time applications
running on different cores, but it can be accessed as well from the host system.
Basically, you can read/write any shared memory location performing different
action. These actions are defined by wrnc_smem_modifier enumeration.
action. These actions are defined by trtl_smem_modifier enumeration.
Debug
......
lswrnc
wrnc-count
wrnc-loader
wrnc-messages
wrnc-cpu-restart
wrnc-smem
\ No newline at end of file
lsmockturtle
mockturtle-count
mockturtle-loader
mockturtle-messages
mockturtle-cpu-restart
mockturtle-smem
\ No newline at end of file
......@@ -4,19 +4,19 @@
-include Makefile.specific
DESTDIR ?= /usr/local
WRNC ?= ../
TRTL ?= ../
CFLAGS += -Wall -Werror -ggdb -I$(WRNC)/lib
CFLAGS += -I$(WRNC)/include
CFLAGS += -Wall -Werror -ggdb -I$(TRTL)/lib
CFLAGS += -I$(TRTL)/include
CFLAGS += $(EXTRACFLAGS)
LDLIBS += -Wl,-Bstatic -L$(WRNC)/lib -lwrnc
LDLIBS += -Wl,-Bstatic -L$(TRTL)/lib -lmockturtle
LDLIBS += -Wl,-Bdynamic -lpthread
PROGS := wrnc-count
PROGS += lswrnc
PROGS += wrnc-loader
PROGS += wrnc-messages
PROGS += wrnc-cpu-restart
PROGS += wrnc-smem
PROGS := mockturtle-count
PROGS += lsmockturtle
PROGS += mockturtle-loader
PROGS += mockturtle-messages
PROGS += mockturtle-cpu-restart
PROGS += mockturtle-smem
all: $(PROGS)
......@@ -24,7 +24,7 @@ install:
install -d $(DESTDIR)/bin
install -D $(PROGS) $(DESTDIR)/bin
%: %.c $(WRNC)/libwrnc.a
%: %.c $(TRTL)/libmockturtle.a
$(CC) $(CFLAGS) $^ -o $@ $(LDLIBS)
# make nothing for modules_install, but avoid errors
......
......@@ -9,7 +9,7 @@
#include <stdlib.h>
#include <getopt.h>
#include <errno.h>
#include <libwrnc.h>
#include <libmockturtle.h>
static void help()
{
......
......@@ -7,7 +7,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <libwrnc.h>
#include <libmockturtle.h>
int main(int argc, char *argv[])
{
......
......@@ -9,7 +9,7 @@
#include <stdlib.h>
#include <getopt.h>
#include <errno.h>
#include <libwrnc.h>
#include <libmockturtle.h>
static void help()
{
......
......@@ -8,7 +8,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <libwrnc.h>
#include <libmockturtle.h>
#include <getopt.h>
......
/*
* Copyright (C) 2014 CERN (www.cern.ch)
* Author: Federico Vaga <federico.vaga@cern.ch>
......@@ -9,7 +10,7 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <libwrnc.h>
#include <libmockturtle.h>
#include <getopt.h>
#include <pthread.h>
#include <unistd.h>
......
......@@ -9,7 +9,7 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <libwrnc.h>
#include <libmockturtle.h>
#include <getopt.h>
#include <pthread.h>
#include <time.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment