Commit ef211dc0 authored by yoogx's avatar yoogx

* Quickfixes for FreeRTOS

        For issue #21
parent 5a177771
......@@ -5,7 +5,7 @@
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
* Copyright (C) 2010-2015 ESA & ISAE.
* Copyright (C) 2010-2017 ESA & ISAE.
*/
#ifndef __PO_HI_TASK_H__
......@@ -61,6 +61,13 @@
#define __PO_HI_MAIN_ARGS
#define __PO_HI_MAIN_RETURN 0
#define __ERRORMSG(s, args...) fprintf(stderr, s, ##args)
#elif defined (FREERTOS)
#define __PO_HI_MAIN_NAME main
#define __PO_HI_MAIN_TYPE int
#define __PO_HI_MAIN_ARGS int argc , char *argv[] , char **arge
#define __PO_HI_MAIN_RETURN 0
#define __ERRORMSG(s, args...) fprintf(stderr, s, ##args)
#endif
#if defined(POSIX) || defined (RTEMS_POSIX) || defined (XENO_POSIX)
......@@ -98,8 +105,15 @@
#define __PO_HI_DEFAULT_PRIORITY 50
#define __PO_HI_MAX_PRIORITY 99
#define __PO_HI_MIN_PRIORITY 0
#elif defined(FREERTOS)
#include <po_hi_time.h>
#define __PO_HI_DEFAULT_PRIORITY 50
#define __PO_HI_MAX_PRIORITY 99
#define __PO_HI_MIN_PRIORITY 0
#endif
#include <stddef.h>
#include <po_hi_types.h>
#include <deployment.h>
......
......@@ -5,7 +5,7 @@
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2016 ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2017 ESA & ISAE.
*/
#include <po_hi_config.h>
......@@ -14,7 +14,7 @@
/* Headers from PolyORB-HI-C */
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (RTEMS_PURE)
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (RTEMS_PURE) || defined (FREERTOS)
#else
#include <xlocale.h>
#endif
......
......@@ -8,7 +8,7 @@
* Copyright (C) 2011-2017 ESA & ISAE.
*/
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (RTEMS_PURE)
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (RTEMS_PURE) || defined (FREERTOS)
#else
#include <xlocale.h>
#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