Commit d2fc0234 authored by jdelange's avatar jdelange

* po-hi-c/include/drivers/po_hi_driver_usbbrick_spacewire.h

   po-hi-c/src/drivers/po_hi_driver_usbbrick_spacewire.c
     - Add skels functions for the USB brick spacewire driver

 * po-hi-c/include/drivers/Makefile.am
 * po-hi-c/src/drivers/Makefile.am
     - Integrate the driver in the build system to include
       the driver in PolyORB-HI-C release

 * po-hi-c/share/make/Makefile.common
     - Build the driver when compiling a system




git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@2888 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent cdfd7b7e
......@@ -5,6 +5,7 @@ EXTRA_DIST = $(srcdir)/po_hi_driver_linux_serial.h \
$(srcdir)/po_hi_driver_exarm.h \
$(srcdir)/po_hi_driver_exarm_ni_6071e_analog.h \
$(srcdir)/po_hi_driver_exarm_ni_6071e_digital.h \
$(srcdir)/po_hi_driver_usbbrick_spacewire.h \
$(srcdir)/po_hi_driver_rasta_spacewire.h \
$(srcdir)/po_hi_driver_rasta_1553.h \
$(srcdir)/po_hi_driver_rasta_1553_brmlib.h \
......
/*
* This is a part of PolyORB-HI-C distribution, a minimal
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.
*
* Copyright (C) 2011, European Space Agency
*/
#include <deployment.h>
#include <drivers/configuration/spacewire.h>
#ifndef __PO_HI_DRIVER_USBBRICK_SPACEWIRE_H__
#define __PO_HI_DRIVER_USBBRICK_SPACEWIRE_H__
#ifdef __PO_HI_NEED_DRIVER_SPACEWIRE_USB_BRICK
void __po_hi_c_driver_spw_usb_brick_poller (const __po_hi_device_id dev_id);
void __po_hi_c_driver_spw_usb_brick_init (__po_hi_device_id id);
int __po_hi_c_driver_spw_usb_brick_sender (const __po_hi_task_id task_id, const __po_hi_port_t port);
#endif
#endif
......@@ -92,6 +92,7 @@ ifeq ($(NEED_TRANSPORT), yes)
drivers/po_hi_driver_keyboard.o \
drivers/po_hi_driver_exarm_ni_6071e_analog.o \
drivers/po_hi_driver_exarm_ni_6071e_digital.o \
drivers/po_hi_driver_usbbrick_spacewire.o \
drivers/po_hi_driver_linux_serial.o \
drivers/po_hi_driver_leon_serial.o \
drivers/po_hi_driver_serial_common.o \
......
......@@ -9,6 +9,7 @@ C_FILES = $(srcdir)/po_hi_driver_linux_serial.c \
$(srcdir)/po_hi_driver_rasta_spacewire.c \
$(srcdir)/po_hi_driver_rasta_common.c \
$(srcdir)/po_hi_driver_exarm.c \
$(srcdir)/po_hi_driver_usbbrick_spacewire.c \
$(srcdir)/po_hi_driver_serial_common.c \
$(srcdir)/po_hi_driver_keyboard.c \
$(srcdir)/po_hi_driver_exarm_ni_6071e_analog.c \
......
/*
* This is a part of PolyORB-HI-C distribution, a minimal
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.
*
* Copyright (C) 2011, European Space Agency
*/
#include <deployment.h>
/* Generated code header */
#ifdef __PO_HI_NEED_DRIVER_SPACEWIRE_USB_BRICK
#include <activity.h>
#include <marshallers.h>
#include <deployment.h>
#include <po_hi_debug.h>
#include <po_hi_transport.h>
#include <po_hi_gqueue.h>
#include <po_hi_messages.h>
#include <po_hi_returns.h>
#include <drivers/po_hi_driver_usbbrick_spacewire.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
/* POSIX-style files */
void __po_hi_c_driver_spw_usb_brick_poller (const __po_hi_device_id dev_id)
{
}
void __po_hi_c_driver_spw_usb_brick_init (__po_hi_device_id id)
{
}
int __po_hi_c_driver_spw_usb_brick_sender (const __po_hi_task_id task_id, const __po_hi_port_t port)
{
return 0;
}
#endif /* __PO_HI_DRIVER_USBBRICK_SPACEWIRE_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