• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/os.h"
24 
25 enum os_error {
26     OS_OK = 0,
27     OS_ENOMEM = 1,
28     OS_EINVAL = 2,
29     OS_INVALID_PARM = 3,
30     OS_MEM_NOT_ALIGNED = 4,
31     OS_BAD_MUTEX = 5,
32     OS_TIMEOUT = 6,
33     OS_ERR_IN_ISR = 7,      /* Function cannot be called from ISR */
34     OS_ERR_PRIV = 8,        /* Privileged access error */
35     OS_NOT_STARTED = 9,     /* OS must be started to call this function, but isn't */
36     OS_ENOENT = 10,         /* No such thing */
37     OS_EBUSY = 11,          /* Resource busy */
38     // OS_ERROR = 12,          /* Generic Error */
39 };
40 
41 typedef enum os_error os_error_t;
42 
43 #endif
44