Add and use rtems_bsd_get_task_priority()

This commit is contained in:
Sebastian Huber
2015-01-20 08:39:06 +01:00
parent e6405ea0cb
commit 91ea7ea614
10 changed files with 96 additions and 22 deletions

View File

@@ -7,7 +7,7 @@
*/
/*
* Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved.
* Copyright (c) 2009-2015 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@@ -77,6 +77,19 @@ typedef struct {
rtems_status_code rtems_bsd_initialize(void);
/**
* @brief Returns the initial priority for a task specified by its name.
*
* Applications may provide their own implementation of this function. For
* example they can define their implementation in the same module which calls
* rtems_bsd_initialize().
*
* @param[in] name The task name.
*
* @return The desired initial task priority.
*/
rtems_task_priority rtems_bsd_get_task_priority(const char *name);
#ifdef __cplusplus
}
#endif /* __cplusplus */