Platform drivers for Mbed.

Dependents:   EVAL-CN0535-FMCZ EVAL-CN0535-FMCZ EVAL-AD568x-AD569x EVAL-AD7606 ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers errno.h Source File

errno.h

Go to the documentation of this file.
00001 /***************************************************************************//**
00002  *   @file   errno.h
00003  *   @brief  Error macro definition for ARM Compiler
00004  *   @author PMallick (Pratyush.Mallick@analog.com)
00005 ********************************************************************************
00006  * Copyright (c) 2021 Analog Devices, Inc.
00007  * All rights reserved.
00008  *
00009  * This software is proprietary to Analog Devices, Inc. and its licensors.
00010  * By using this software you agree to the terms of the associated
00011  * Analog Devices Software License Agreement.
00012 *******************************************************************************/
00013 
00014 #ifndef MBED_ERRNO_H_
00015 #define MBED_ERRNO_H_
00016 
00017 // Platform drivers needs to be C-compatible to work with other drivers
00018 #ifdef __cplusplus
00019 extern "C"
00020 {
00021 #endif //  _cplusplus
00022 
00023 /******************************************************************************/
00024 /********************** Macros and Constants Definitions **********************/
00025 /******************************************************************************/
00026 
00027 #if defined(__ARMCC_VERSION)
00028 #if !defined(__ELASTERROR)
00029 #define __ELASTERROR 2000
00030 #endif
00031 #if !defined(ENOTSUP)
00032 #define ENOTSUP 9926
00033 #endif
00034 #if !defined(EBADMSG)
00035 #define EBADMSG 9905
00036 #endif
00037 #if !defined(ETIME)
00038 #define ETIME 9935
00039 #endif
00040 #if !defined(EACCES)
00041 #define EACCES 9973
00042 #endif
00043 #if !defined(ETIMEDOUT)
00044 #define ETIMEDOUT 9938
00045 #endif
00046 #if !defined(ENODEV)
00047 #define ENODEV 9967
00048 #endif
00049 #if !defined(EFAULT)
00050 #define EFAULT 9948
00051 #endif
00052 #if !defined(EIO)
00053 #define EIO 9961
00054 #endif
00055 #if !defined(ENOENT)
00056 #define ENOENT 9968
00057 #endif
00058 #if !defined(EBUSY)
00059 #define EBUSY 9952
00060 #endif
00061 #if !defined(EAGAIN)
00062 #define EAGAIN 9976
00063 #endif
00064 #if !defined(EINVAL)
00065 #define EINVAL 9943
00066 #endif
00067 #if !defined(ENOMEM)
00068 #define ENOMEM 9971
00069 #endif
00070 
00071 // End of defined(__ARMCC_VERSION)
00072 #endif
00073 
00074 #include_next <errno.h>
00075 
00076 #ifdef __cplusplus
00077 }
00078 #endif //  _cplusplus
00079 
00080 #endif // MBED_ERRNO_H_