From bc29c7c313e9e287731144b3e4701cc8a68e1c1c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 12 Apr 2021 06:58:44 +0200 Subject: validation: Add support library Add a library for support functions used by validation tests. Rename tc-support.* to tx-support.* since this file does not contain test cases. --- spec/build/testsuites/validation/grp.yml | 2 + spec/build/testsuites/validation/libvalidation.yml | 16 ++ spec/build/testsuites/validation/validation-0.yml | 4 +- spec/build/testsuites/validation/validation-1.yml | 4 +- testsuites/validation/tc-barrier-create.c | 2 +- testsuites/validation/tc-barrier-delete.c | 2 +- testsuites/validation/tc-barrier-release.c | 2 +- testsuites/validation/tc-barrier-wait.c | 2 +- testsuites/validation/tc-signal-catch.c | 2 +- testsuites/validation/tc-signal-send.c | 2 +- testsuites/validation/tc-support.c | 171 --------------------- testsuites/validation/tc-support.h | 103 ------------- testsuites/validation/tx-support.c | 171 +++++++++++++++++++++ testsuites/validation/tx-support.h | 103 +++++++++++++ 14 files changed, 302 insertions(+), 284 deletions(-) create mode 100644 spec/build/testsuites/validation/libvalidation.yml delete mode 100644 testsuites/validation/tc-support.c delete mode 100644 testsuites/validation/tc-support.h create mode 100644 testsuites/validation/tx-support.c create mode 100644 testsuites/validation/tx-support.h diff --git a/spec/build/testsuites/validation/grp.yml b/spec/build/testsuites/validation/grp.yml index 564b1c62ac..bdb057adc8 100644 --- a/spec/build/testsuites/validation/grp.yml +++ b/spec/build/testsuites/validation/grp.yml @@ -10,6 +10,8 @@ includes: install: [] ldflags: [] links: +- role: build-dependency + uid: libvalidation - role: build-dependency uid: performance-0 - role: build-dependency diff --git a/spec/build/testsuites/validation/libvalidation.yml b/spec/build/testsuites/validation/libvalidation.yml new file mode 100644 index 0000000000..d55d4b9e41 --- /dev/null +++ b/spec/build/testsuites/validation/libvalidation.yml @@ -0,0 +1,16 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: library +cflags: [] +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +cxxflags: [] +enabled-by: true +includes: [] +install: [] +install-path: null +links: [] +source: +- testsuites/validation/tx-support.c +target: validation +type: build diff --git a/spec/build/testsuites/validation/validation-0.yml b/spec/build/testsuites/validation/validation-0.yml index 662b38cefb..653872320c 100644 --- a/spec/build/testsuites/validation/validation-0.yml +++ b/spec/build/testsuites/validation/validation-0.yml @@ -19,12 +19,12 @@ source: - testsuites/validation/tc-object.c - testsuites/validation/tc-signal-catch.c - testsuites/validation/tc-signal-send.c -- testsuites/validation/tc-support.c - testsuites/validation/tc-task-construct-errors.c - testsuites/validation/tc-task-create-errors.c - testsuites/validation/ts-validation-0.c stlib: [] target: testsuites/validation/ts-validation-0.exe type: build -use-after: [] +use-after: +- validation use-before: [] diff --git a/spec/build/testsuites/validation/validation-1.yml b/spec/build/testsuites/validation/validation-1.yml index fb622d0410..ad6a7f32e8 100644 --- a/spec/build/testsuites/validation/validation-1.yml +++ b/spec/build/testsuites/validation/validation-1.yml @@ -13,12 +13,12 @@ links: [] source: - testsuites/validation/tc-signal-catch.c - testsuites/validation/tc-signal-send.c -- testsuites/validation/tc-support.c - testsuites/validation/tc-task-construct-errors.c - testsuites/validation/tc-task-create-errors.c - testsuites/validation/ts-validation-1.c stlib: [] target: testsuites/validation/ts-validation-1.exe type: build -use-after: [] +use-after: +- validation use-before: [] diff --git a/testsuites/validation/tc-barrier-create.c b/testsuites/validation/tc-barrier-create.c index 46d013ec9e..b40fe4301a 100644 --- a/testsuites/validation/tc-barrier-create.c +++ b/testsuites/validation/tc-barrier-create.c @@ -55,7 +55,7 @@ #include #include -#include "tc-support.h" +#include "tx-support.h" #include diff --git a/testsuites/validation/tc-barrier-delete.c b/testsuites/validation/tc-barrier-delete.c index 1402ff4fcf..e51a910b5f 100644 --- a/testsuites/validation/tc-barrier-delete.c +++ b/testsuites/validation/tc-barrier-delete.c @@ -55,7 +55,7 @@ #include #include -#include "tc-support.h" +#include "tx-support.h" #include diff --git a/testsuites/validation/tc-barrier-release.c b/testsuites/validation/tc-barrier-release.c index 4e9046f238..c9edac06a5 100644 --- a/testsuites/validation/tc-barrier-release.c +++ b/testsuites/validation/tc-barrier-release.c @@ -55,7 +55,7 @@ #include #include -#include "tc-support.h" +#include "tx-support.h" #include diff --git a/testsuites/validation/tc-barrier-wait.c b/testsuites/validation/tc-barrier-wait.c index bd24c9e3a5..6776dc0e11 100644 --- a/testsuites/validation/tc-barrier-wait.c +++ b/testsuites/validation/tc-barrier-wait.c @@ -55,7 +55,7 @@ #include #include -#include "tc-support.h" +#include "tx-support.h" #include diff --git a/testsuites/validation/tc-signal-catch.c b/testsuites/validation/tc-signal-catch.c index d78969bded..7276a89a3d 100644 --- a/testsuites/validation/tc-signal-catch.c +++ b/testsuites/validation/tc-signal-catch.c @@ -56,7 +56,7 @@ #include #include -#include "tc-support.h" +#include "tx-support.h" #include diff --git a/testsuites/validation/tc-signal-send.c b/testsuites/validation/tc-signal-send.c index 2359855973..6ab9fcfb7d 100644 --- a/testsuites/validation/tc-signal-send.c +++ b/testsuites/validation/tc-signal-send.c @@ -54,7 +54,7 @@ #include -#include "tc-support.h" +#include "tx-support.h" #include diff --git a/testsuites/validation/tc-support.c b/testsuites/validation/tc-support.c deleted file mode 100644 index 6b48a2d646..0000000000 --- a/testsuites/validation/tc-support.c +++ /dev/null @@ -1,171 +0,0 @@ -/* SPDX-License-Identifier: BSD-2-Clause */ - -/** - * @file - * - * @ingroup RTEMSTestSuites - * - * @brief This source file contains the definition of DeleteTask(), - * DoCreateTask(), GetMode(), GetPriority(), GetSelfPriority(), - * ReceiveAnyEvents(), RestoreRunnerASR(), RestoreRunnerMode(), - * RestoreRunnerPriority(), SendEvents(), SetMode(), SetSelfPriority(), - * SetPriority(), and StartTask(). - */ - -/* - * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "tc-support.h" - -#include - -rtems_id DoCreateTask( rtems_name name, rtems_task_priority priority ) -{ - rtems_status_code sc; - rtems_id id; - - sc = rtems_task_create( - name, - priority, - RTEMS_MINIMUM_STACK_SIZE, - RTEMS_DEFAULT_MODES, - RTEMS_DEFAULT_ATTRIBUTES, - &id - ); - T_assert_rsc_success( sc ); - - return id; -} - -void StartTask( rtems_id id, rtems_task_entry entry, void *arg ) -{ - rtems_status_code sc; - - sc = rtems_task_start( id, entry, (rtems_task_argument) arg); - T_assert_rsc_success( sc ); -} - -void DeleteTask( rtems_id id ) -{ - if ( id != 0 ) { - rtems_status_code sc; - - sc = rtems_task_delete( id ); - T_rsc_success( sc ); - } -} - -rtems_event_set ReceiveAnyEvents( void ) -{ - rtems_status_code sc; - rtems_event_set events; - - events = 0; - sc = rtems_event_receive( - RTEMS_ALL_EVENTS, - RTEMS_EVENT_ANY | RTEMS_WAIT, - RTEMS_NO_TIMEOUT, - &events - ); - T_rsc_success( sc ); - - return events; -} - -void SendEvents( rtems_id id, rtems_event_set events ) -{ - rtems_status_code sc; - - sc = rtems_event_send( id, events ); - T_rsc_success( sc ); -} - -rtems_mode GetMode( void ) -{ - return SetMode( RTEMS_DEFAULT_MODES, RTEMS_CURRENT_MODE ); -} - -rtems_mode SetMode( rtems_mode set, rtems_mode mask ) -{ - rtems_status_code sc; - rtems_mode previous; - - sc = rtems_task_mode( set, mask, &previous ); - T_rsc_success( sc ); - - return previous; -} - -rtems_task_priority GetPriority( rtems_id id ) -{ - return SetPriority( id, RTEMS_CURRENT_PRIORITY ); -} - -rtems_task_priority SetPriority( rtems_id id, rtems_task_priority priority ) -{ - rtems_status_code sc; - rtems_task_priority previous; - - sc = rtems_task_set_priority( id, priority, &previous ); - T_rsc_success( sc ); - - return previous; -} - -rtems_task_priority GetSelfPriority( void ) -{ - return SetPriority( RTEMS_SELF, RTEMS_CURRENT_PRIORITY ); -} - -rtems_task_priority SetSelfPriority( rtems_task_priority priority ) -{ - return SetPriority( RTEMS_SELF, priority ); -} - -void RestoreRunnerASR( void ) -{ - rtems_status_code sc; - - sc = rtems_signal_catch( NULL, RTEMS_DEFAULT_MODES ); - T_rsc_success( sc ); -} - -void RestoreRunnerMode( void ) -{ - rtems_status_code sc; - rtems_mode mode; - - sc = rtems_task_mode( RTEMS_DEFAULT_MODES, RTEMS_ALL_MODE_MASKS, &mode ); - T_rsc_success( sc ); -} - -void RestoreRunnerPriority( void ) -{ - SetSelfPriority( PRIO_ULTRA_HIGH ); -} diff --git a/testsuites/validation/tc-support.h b/testsuites/validation/tc-support.h deleted file mode 100644 index 4ffa4193f0..0000000000 --- a/testsuites/validation/tc-support.h +++ /dev/null @@ -1,103 +0,0 @@ -/* SPDX-License-Identifier: BSD-2-Clause */ - -/** - * @file - * - * @ingroup RTEMSTestSuites - * - * @brief This header file provides the support functions for the validation - * test cases. - */ - -/* - * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef _TC_SUPPORT_H -#define _TC_SUPPORT_H - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @addtogroup RTEMSTestSuites - * - * @{ - */ - -typedef enum { - PRIO_PSEUDO_ISR, - PRIO_ULTRA_HIGH, - PRIO_VERY_HIGH, - PRIO_HIGH, - PRIO_NORMAL, - PRIO_LOW, - PRIO_VERY_LOW, - PRIO_ULTRA_LOW -} Priority; - -#define CreateTask( name, priority ) \ - DoCreateTask( \ - rtems_build_name( name[ 0 ], name[ 1 ], name[ 2 ], name[ 3 ] ), \ - priority \ - ) - -rtems_id DoCreateTask( rtems_name name, rtems_task_priority priority ); - -void StartTask( rtems_id id, rtems_task_entry entry, void *arg ); - -void DeleteTask( rtems_id id ); - -rtems_event_set ReceiveAnyEvents( void ); - -void SendEvents( rtems_id id, rtems_event_set events ); - -rtems_mode GetMode( void ); - -rtems_mode SetMode( rtems_mode set, rtems_mode mask ); - -rtems_task_priority GetPriority( rtems_id id ); - -rtems_task_priority SetPriority( rtems_id id, rtems_task_priority priority ); - -rtems_task_priority GetSelfPriority( void ); - -rtems_task_priority SetSelfPriority( rtems_task_priority priority ); - -void RestoreRunnerASR( void ); - -void RestoreRunnerMode( void ); - -void RestoreRunnerPriority( void ); - -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* _TC_SUPPORT_H */ diff --git a/testsuites/validation/tx-support.c b/testsuites/validation/tx-support.c new file mode 100644 index 0000000000..dcb7603832 --- /dev/null +++ b/testsuites/validation/tx-support.c @@ -0,0 +1,171 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + +/** + * @file + * + * @ingroup RTEMSTestSuites + * + * @brief This source file contains the definition of DeleteTask(), + * DoCreateTask(), GetMode(), GetPriority(), GetSelfPriority(), + * ReceiveAnyEvents(), RestoreRunnerASR(), RestoreRunnerMode(), + * RestoreRunnerPriority(), SendEvents(), SetMode(), SetSelfPriority(), + * SetPriority(), and StartTask(). + */ + +/* + * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "tx-support.h" + +#include + +rtems_id DoCreateTask( rtems_name name, rtems_task_priority priority ) +{ + rtems_status_code sc; + rtems_id id; + + sc = rtems_task_create( + name, + priority, + RTEMS_MINIMUM_STACK_SIZE, + RTEMS_DEFAULT_MODES, + RTEMS_DEFAULT_ATTRIBUTES, + &id + ); + T_assert_rsc_success( sc ); + + return id; +} + +void StartTask( rtems_id id, rtems_task_entry entry, void *arg ) +{ + rtems_status_code sc; + + sc = rtems_task_start( id, entry, (rtems_task_argument) arg); + T_assert_rsc_success( sc ); +} + +void DeleteTask( rtems_id id ) +{ + if ( id != 0 ) { + rtems_status_code sc; + + sc = rtems_task_delete( id ); + T_rsc_success( sc ); + } +} + +rtems_event_set ReceiveAnyEvents( void ) +{ + rtems_status_code sc; + rtems_event_set events; + + events = 0; + sc = rtems_event_receive( + RTEMS_ALL_EVENTS, + RTEMS_EVENT_ANY | RTEMS_WAIT, + RTEMS_NO_TIMEOUT, + &events + ); + T_rsc_success( sc ); + + return events; +} + +void SendEvents( rtems_id id, rtems_event_set events ) +{ + rtems_status_code sc; + + sc = rtems_event_send( id, events ); + T_rsc_success( sc ); +} + +rtems_mode GetMode( void ) +{ + return SetMode( RTEMS_DEFAULT_MODES, RTEMS_CURRENT_MODE ); +} + +rtems_mode SetMode( rtems_mode set, rtems_mode mask ) +{ + rtems_status_code sc; + rtems_mode previous; + + sc = rtems_task_mode( set, mask, &previous ); + T_rsc_success( sc ); + + return previous; +} + +rtems_task_priority GetPriority( rtems_id id ) +{ + return SetPriority( id, RTEMS_CURRENT_PRIORITY ); +} + +rtems_task_priority SetPriority( rtems_id id, rtems_task_priority priority ) +{ + rtems_status_code sc; + rtems_task_priority previous; + + sc = rtems_task_set_priority( id, priority, &previous ); + T_rsc_success( sc ); + + return previous; +} + +rtems_task_priority GetSelfPriority( void ) +{ + return SetPriority( RTEMS_SELF, RTEMS_CURRENT_PRIORITY ); +} + +rtems_task_priority SetSelfPriority( rtems_task_priority priority ) +{ + return SetPriority( RTEMS_SELF, priority ); +} + +void RestoreRunnerASR( void ) +{ + rtems_status_code sc; + + sc = rtems_signal_catch( NULL, RTEMS_DEFAULT_MODES ); + T_rsc_success( sc ); +} + +void RestoreRunnerMode( void ) +{ + rtems_status_code sc; + rtems_mode mode; + + sc = rtems_task_mode( RTEMS_DEFAULT_MODES, RTEMS_ALL_MODE_MASKS, &mode ); + T_rsc_success( sc ); +} + +void RestoreRunnerPriority( void ) +{ + SetSelfPriority( PRIO_ULTRA_HIGH ); +} diff --git a/testsuites/validation/tx-support.h b/testsuites/validation/tx-support.h new file mode 100644 index 0000000000..69cb308d52 --- /dev/null +++ b/testsuites/validation/tx-support.h @@ -0,0 +1,103 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + +/** + * @file + * + * @ingroup RTEMSTestSuites + * + * @brief This header file provides the support functions for the validation + * test cases. + */ + +/* + * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _TX_SUPPORT_H +#define _TX_SUPPORT_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @addtogroup RTEMSTestSuites + * + * @{ + */ + +typedef enum { + PRIO_PSEUDO_ISR, + PRIO_ULTRA_HIGH, + PRIO_VERY_HIGH, + PRIO_HIGH, + PRIO_NORMAL, + PRIO_LOW, + PRIO_VERY_LOW, + PRIO_ULTRA_LOW +} Priority; + +#define CreateTask( name, priority ) \ + DoCreateTask( \ + rtems_build_name( name[ 0 ], name[ 1 ], name[ 2 ], name[ 3 ] ), \ + priority \ + ) + +rtems_id DoCreateTask( rtems_name name, rtems_task_priority priority ); + +void StartTask( rtems_id id, rtems_task_entry entry, void *arg ); + +void DeleteTask( rtems_id id ); + +rtems_event_set ReceiveAnyEvents( void ); + +void SendEvents( rtems_id id, rtems_event_set events ); + +rtems_mode GetMode( void ); + +rtems_mode SetMode( rtems_mode set, rtems_mode mask ); + +rtems_task_priority GetPriority( rtems_id id ); + +rtems_task_priority SetPriority( rtems_id id, rtems_task_priority priority ); + +rtems_task_priority GetSelfPriority( void ); + +rtems_task_priority SetSelfPriority( rtems_task_priority priority ); + +void RestoreRunnerASR( void ); + +void RestoreRunnerMode( void ); + +void RestoreRunnerPriority( void ); + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* _TX_SUPPORT_H */ -- cgit v1.2.3