kernel: move TICKS_NONE/UNLIMITED from micro to nano

The nanokernel needs access to these values since the nanokernel objects
API will provide a way of waiting with timeouts.

Change-Id: I2b39fccc1c2a2b5ba937aff774ab2ebc649e643b
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2015-06-14 15:44:52 -04:00 committed by Anas Nashif
commit ae7af89c44
2 changed files with 4 additions and 3 deletions

View file

@ -65,9 +65,6 @@ typedef int (*kevent_handler_t)(int event);
#define ANYTASK (-1) /* for mail sender or receiver parameter */
#define ENDLIST (-1) /* this value terminates a semaphore list */
#define TICKS_UNLIMITED (-1)
#define TICKS_NONE 0
struct k_args;
struct k_block {

View file

@ -83,6 +83,10 @@ typedef int nano_context_type_t;
#define NANO_CTX_FIBER (1)
#define NANO_CTX_TASK (2)
/* timeout special values */
#define TICKS_UNLIMITED (-1)
#define TICKS_NONE 0
/* context APIs
*/
extern nano_context_id_t context_self_get(void);