Forked repo of Platform Drivers- Analog Devices
Diff: errno.h
- Revision:
- 17:af1f2416dd26
diff -r 61ad39564f45 -r af1f2416dd26 errno.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/errno.h Tue Jul 13 13:58:07 2021 +0530 @@ -0,0 +1,80 @@ +/***************************************************************************//** + * @file errno.h + * @brief Error macro definition for ARM Compiler + * @author PMallick (Pratyush.Mallick@analog.com) +******************************************************************************** + * Copyright (c) 2021 Analog Devices, Inc. + * All rights reserved. + * + * This software is proprietary to Analog Devices, Inc. and its licensors. + * By using this software you agree to the terms of the associated + * Analog Devices Software License Agreement. +*******************************************************************************/ + +#ifndef MBED_ERRNO_H_ +#define MBED_ERRNO_H_ + +// Platform drivers needs to be C-compatible to work with other drivers +#ifdef __cplusplus +extern "C" +{ +#endif // _cplusplus + +/******************************************************************************/ +/********************** Macros and Constants Definitions **********************/ +/******************************************************************************/ + +#if defined(__ARMCC_VERSION) +#if !defined(__ELASTERROR) +#define __ELASTERROR 2000 +#endif +#if !defined(ENOTSUP) +#define ENOTSUP 9926 +#endif +#if !defined(EBADMSG) +#define EBADMSG 9905 +#endif +#if !defined(ETIME) +#define ETIME 9935 +#endif +#if !defined(EACCES) +#define EACCES 9973 +#endif +#if !defined(ETIMEDOUT) +#define ETIMEDOUT 9938 +#endif +#if !defined(ENODEV) +#define ENODEV 9967 +#endif +#if !defined(EFAULT) +#define EFAULT 9948 +#endif +#if !defined(EIO) +#define EIO 9961 +#endif +#if !defined(ENOENT) +#define ENOENT 9968 +#endif +#if !defined(EBUSY) +#define EBUSY 9952 +#endif +#if !defined(EAGAIN) +#define EAGAIN 9976 +#endif +#if !defined(EINVAL) +#define EINVAL 9943 +#endif +#if !defined(ENOMEM) +#define ENOMEM 9971 +#endif + +// End of defined(__ARMCC_VERSION) +#endif + +#include_next <errno.h> + +#ifdef __cplusplus +} +#endif // _cplusplus + +#endif // MBED_ERRNO_H_ \ No newline at end of file