Commit 0d3242fd authored by julien.delange's avatar julien.delange

add configuration directives to only select requested drivers

add init functions



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@538 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 59334a39
......@@ -6,10 +6,18 @@
* Copyright (C) 2010, European Space Agency
*/
#include <deployment.h>
#ifndef __PO_HI_DRIVER_LINUX_SERIAL_H__
#define __PO_HI_DRIVER_LINUX_SERIAL_H__
#ifdef __PO_HI_NEED_SERIAL_LINUX
void __po_hi_c_driver_serial_linux_poller (void);
void __po_hi_c_driver_serial_linux_init (void);
#endif
#endif
......@@ -6,10 +6,18 @@
* Copyright (C) 2010, European Space Agency
*/
#include <deployment.h>
#ifndef __PO_HI_DRIVER_RASTA_SERIAL_H__
#define __PO_HI_DRIVER_RASTA_SERIAL_H__
#ifdef __PO_HI_NEED_SERIAL_RASTA
void __po_hi_c_driver_serial_rasta_poller (void);
void __po_hi_c_driver_serial_rasta_init (void);
#endif
#endif
......@@ -6,7 +6,22 @@
* Copyright (C) 2010, European Space Agency
*/
#include <drivers/po_hi_driver_linux_serial.h>
#ifdef __PO_HI_NEED_SERIAL_LINUX
#include <stdio.h>
void __po_hi_c_driver_serial_linux_poller (void)
{
printf ("Hello, i'm the serial linux poller !\n");
}
void __po_hi_c_driver_serial_linux_init (void)
{
printf ("Hello, i'm the serial driver, i'm initializing the whole thing\n");
}
#endif
......@@ -6,7 +6,17 @@
* Copyright (C) 2010, European Space Agency
*/
#include <drivers/po_hi_driver_rasta_serial.h>
#ifdef __PO_HI_NEED_SERIAL_RASTA
void __po_hi_c_driver_serial_rasta_poller (void)
{
}
void __po_hi_c_driver_serial_rasta_init (void)
{
}
#endif
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