Mistake on this page?
Report an issue in GitHub or email us
utest_shim.h
1 
2 /** \addtogroup frameworks */
3 /** @{*/
4 /****************************************************************************
5  * Copyright (c) 2016, ARM Limited, All Rights Reserved
6  * SPDX-License-Identifier: Apache-2.0
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License"); you may
9  * not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  ****************************************************************************
20  */
21 
22 #ifndef UTEST_SHIM_H
23 #define UTEST_SHIM_H
24 
25 #include <stdint.h>
26 #include <stdbool.h>
27 #include <stdio.h>
28 #include "utest/utest_scheduler.h"
29 
30 #ifndef __deprecated_message
31 # if defined(__CC_ARM)
32 # define __deprecated_message(msg) __attribute__((deprecated))
33 # elif defined (__ICCARM__)
34 # define __deprecated_message(msg)
35 # else
36 # define __deprecated_message(msg) __attribute__((deprecated(msg)))
37 # endif
38 #endif
39 
40 #ifndef UTEST_ENTER_CRITICAL_SECTION
41 # define UTEST_ENTER_CRITICAL_SECTION utest_v1_enter_critical_section()
42 #endif
43 #ifndef UTEST_LEAVE_CRITICAL_SECTION
44 # define UTEST_LEAVE_CRITICAL_SECTION utest_v1_leave_critical_section()
45 #endif
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
51 /// must be implemented by the port
53 void utest_v1_leave_critical_section(void);
54 
55 /// This is the default scheduler implementation used by the harness.
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif // UTEST_SHIM_H
63 
64 /** @}*/
utest_v1_scheduler_t utest_v1_get_scheduler(void)
This is the default scheduler implementation used by the harness.
The scheduler interface consists out of the post and cancel functions, which you must implement to us...
void utest_v1_enter_critical_section(void)
must be implemented by the port
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.