1
2 /*
3 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 * Description: osal adapt atomic event file.
16 */
17 #include "osal_adapt.h"
18
19 /************************ osal_event ************************/
osal_adapt_event_init(osal_event * event_obj)20 int osal_adapt_event_init(osal_event *event_obj)
21 {
22 return osal_event_init(event_obj);
23 }
24
osal_adapt_event_write(osal_event * event_obj,unsigned int mask)25 int osal_adapt_event_write(osal_event *event_obj, unsigned int mask)
26 {
27 return osal_event_write(event_obj, mask);
28 }
29
osal_adapt_event_read(osal_event * event_obj,unsigned int mask,unsigned int timeout_ms,unsigned int mode)30 int osal_adapt_event_read(osal_event *event_obj, unsigned int mask, unsigned int timeout_ms, unsigned int mode)
31 {
32 return osal_event_read(event_obj, mask, timeout_ms, mode);
33 }
34
osal_adapt_event_clear(osal_event * event_obj,unsigned int mask)35 int osal_adapt_event_clear(osal_event *event_obj, unsigned int mask)
36 {
37 return osal_event_clear(event_obj, mask);
38 }
39
osal_adapt_event_destroy(osal_event * event_obj)40 int osal_adapt_event_destroy(osal_event *event_obj)
41 {
42 return osal_event_destroy(event_obj);
43 }
44