NimBLE-Arduino
2.1.2
Loading...
Searching...
No Matches
os_error.h
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one
3
* or more contributor license agreements. See the NOTICE file
4
* distributed with this work for additional information
5
* regarding copyright ownership. The ASF licenses this file
6
* to you under the Apache License, Version 2.0 (the
7
* "License"); you may not use this file except in compliance
8
* with the License. You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing,
13
* software distributed under the License is distributed on an
14
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
* KIND, either express or implied. See the License for the
16
* specific language governing permissions and limitations
17
* under the License.
18
*/
19
20
#ifndef H_OS_ERROR_
21
#define H_OS_ERROR_
22
23
#include "os.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
/* OS error enumerations */
30
enum
os_error {
31
OS_OK = 0,
32
OS_ENOMEM = 1,
33
OS_EINVAL = 2,
34
OS_INVALID_PARM = 3,
35
OS_MEM_NOT_ALIGNED = 4,
36
OS_BAD_MUTEX = 5,
37
OS_TIMEOUT = 6,
38
OS_ERR_IN_ISR = 7,
/* Function cannot be called from ISR */
39
OS_ERR_PRIV = 8,
/* Privileged access error */
40
OS_NOT_STARTED = 9,
/* OS must be started to call this function, but isn't */
41
OS_ENOENT = 10,
/* No such thing */
42
OS_EBUSY = 11,
/* Resource busy */
43
OS_ERROR = 12,
/* Generic Error */
44
};
45
46
typedef
enum
os_error os_error_t;
47
56
int
os_error_to_sys(os_error_t os_error);
57
58
#ifdef __cplusplus
59
}
60
#endif
61
62
#endif
src
nimble
porting
nimble
include
os
os_error.h
Generated by
1.9.8