po_hi_driver_linux_serial.c 687 Bytes
Newer Older
1
2
3
4
5
6
7
8
/*
 * 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) 2010, European Space Agency
 */

9
10
#include <drivers/po_hi_driver_linux_serial.h>

11
#ifdef __PO_HI_NEED_DRIVER_SERIAL_LINUX
12
13
14

#include <stdio.h>

15
16
void __po_hi_c_driver_serial_linux_poller (void)
{
17
18
19
20
21
22
      printf ("Hello, i'm the serial linux poller !\n");
}


void __po_hi_c_driver_serial_linux_init (void)
{
23
24
25
26
27
28
   printf ("Hello, i'm the serial driver, i'm initializing the whole thing\n");
}

int  __po_hi_c_driver_serial_linux_sender (__po_hi_task_id task, __po_hi_port_t port)
{
   return 1;
29
30
}

31
32
#endif