Commit ef211dc0 authored by yoogx's avatar yoogx
Browse files

* Quickfixes for FreeRTOS

        For issue #21
parent 5a177771
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* For more informations, please visit http://taste.tuxfamily.org/wiki * 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__ #ifndef __PO_HI_TASK_H__
...@@ -61,6 +61,13 @@ ...@@ -61,6 +61,13 @@
#define __PO_HI_MAIN_ARGS #define __PO_HI_MAIN_ARGS
#define __PO_HI_MAIN_RETURN 0 #define __PO_HI_MAIN_RETURN 0
#define __ERRORMSG(s, args...) fprintf(stderr, s, ##args) #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 #endif
#if defined(POSIX) || defined (RTEMS_POSIX) || defined (XENO_POSIX) #if defined(POSIX) || defined (RTEMS_POSIX) || defined (XENO_POSIX)
...@@ -98,8 +105,15 @@ ...@@ -98,8 +105,15 @@
#define __PO_HI_DEFAULT_PRIORITY 50 #define __PO_HI_DEFAULT_PRIORITY 50
#define __PO_HI_MAX_PRIORITY 99 #define __PO_HI_MAX_PRIORITY 99
#define __PO_HI_MIN_PRIORITY 0 #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 #endif
#include <stddef.h>
#include <po_hi_types.h> #include <po_hi_types.h>
#include <deployment.h> #include <deployment.h>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* For more informations, please visit http://taste.tuxfamily.org/wiki * 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> #include <po_hi_config.h>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/* Headers from PolyORB-HI-C */ /* 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 #else
#include <xlocale.h> #include <xlocale.h>
#endif #endif
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Copyright (C) 2011-2017 ESA & ISAE. * 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 #else
#include <xlocale.h> #include <xlocale.h>
#endif #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