Platform drivers for Mbed.

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

Committer:
Kjansen
Date:
Mon Nov 29 12:39:54 2021 +0000
Revision:
20:4951ea6abee5
Parent:
17:af1f2416dd26
The following changes were made:
1.) Modified udelay() function for generating more accurate smaller usec delays
2.) Implemented the irq_enable and irq_disable functions
3.) Removed the confusion b/w application created peripheral object and interrupt specific object
4.) Created PWM extra init structure and added PWM pin
5.) Added a module for timer and its related header file

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mahphalke 17:af1f2416dd26 1 /***************************************************************************//**
mahphalke 17:af1f2416dd26 2 * @file errno.h
mahphalke 17:af1f2416dd26 3 * @brief Error macro definition for ARM Compiler
mahphalke 17:af1f2416dd26 4 * @author PMallick (Pratyush.Mallick@analog.com)
mahphalke 17:af1f2416dd26 5 ********************************************************************************
mahphalke 17:af1f2416dd26 6 * Copyright (c) 2021 Analog Devices, Inc.
mahphalke 17:af1f2416dd26 7 * All rights reserved.
mahphalke 17:af1f2416dd26 8 *
mahphalke 17:af1f2416dd26 9 * This software is proprietary to Analog Devices, Inc. and its licensors.
mahphalke 17:af1f2416dd26 10 * By using this software you agree to the terms of the associated
mahphalke 17:af1f2416dd26 11 * Analog Devices Software License Agreement.
mahphalke 17:af1f2416dd26 12 *******************************************************************************/
mahphalke 17:af1f2416dd26 13
mahphalke 17:af1f2416dd26 14 #ifndef MBED_ERRNO_H_
mahphalke 17:af1f2416dd26 15 #define MBED_ERRNO_H_
mahphalke 17:af1f2416dd26 16
mahphalke 17:af1f2416dd26 17 // Platform drivers needs to be C-compatible to work with other drivers
mahphalke 17:af1f2416dd26 18 #ifdef __cplusplus
mahphalke 17:af1f2416dd26 19 extern "C"
mahphalke 17:af1f2416dd26 20 {
mahphalke 17:af1f2416dd26 21 #endif // _cplusplus
mahphalke 17:af1f2416dd26 22
mahphalke 17:af1f2416dd26 23 /******************************************************************************/
mahphalke 17:af1f2416dd26 24 /********************** Macros and Constants Definitions **********************/
mahphalke 17:af1f2416dd26 25 /******************************************************************************/
mahphalke 17:af1f2416dd26 26
mahphalke 17:af1f2416dd26 27 #if defined(__ARMCC_VERSION)
mahphalke 17:af1f2416dd26 28 #if !defined(__ELASTERROR)
mahphalke 17:af1f2416dd26 29 #define __ELASTERROR 2000
mahphalke 17:af1f2416dd26 30 #endif
mahphalke 17:af1f2416dd26 31 #if !defined(ENOTSUP)
mahphalke 17:af1f2416dd26 32 #define ENOTSUP 9926
mahphalke 17:af1f2416dd26 33 #endif
mahphalke 17:af1f2416dd26 34 #if !defined(EBADMSG)
mahphalke 17:af1f2416dd26 35 #define EBADMSG 9905
mahphalke 17:af1f2416dd26 36 #endif
mahphalke 17:af1f2416dd26 37 #if !defined(ETIME)
mahphalke 17:af1f2416dd26 38 #define ETIME 9935
mahphalke 17:af1f2416dd26 39 #endif
mahphalke 17:af1f2416dd26 40 #if !defined(EACCES)
mahphalke 17:af1f2416dd26 41 #define EACCES 9973
mahphalke 17:af1f2416dd26 42 #endif
mahphalke 17:af1f2416dd26 43 #if !defined(ETIMEDOUT)
mahphalke 17:af1f2416dd26 44 #define ETIMEDOUT 9938
mahphalke 17:af1f2416dd26 45 #endif
mahphalke 17:af1f2416dd26 46 #if !defined(ENODEV)
mahphalke 17:af1f2416dd26 47 #define ENODEV 9967
mahphalke 17:af1f2416dd26 48 #endif
mahphalke 17:af1f2416dd26 49 #if !defined(EFAULT)
mahphalke 17:af1f2416dd26 50 #define EFAULT 9948
mahphalke 17:af1f2416dd26 51 #endif
mahphalke 17:af1f2416dd26 52 #if !defined(EIO)
mahphalke 17:af1f2416dd26 53 #define EIO 9961
mahphalke 17:af1f2416dd26 54 #endif
mahphalke 17:af1f2416dd26 55 #if !defined(ENOENT)
mahphalke 17:af1f2416dd26 56 #define ENOENT 9968
mahphalke 17:af1f2416dd26 57 #endif
mahphalke 17:af1f2416dd26 58 #if !defined(EBUSY)
mahphalke 17:af1f2416dd26 59 #define EBUSY 9952
mahphalke 17:af1f2416dd26 60 #endif
mahphalke 17:af1f2416dd26 61 #if !defined(EAGAIN)
mahphalke 17:af1f2416dd26 62 #define EAGAIN 9976
mahphalke 17:af1f2416dd26 63 #endif
mahphalke 17:af1f2416dd26 64 #if !defined(EINVAL)
mahphalke 17:af1f2416dd26 65 #define EINVAL 9943
mahphalke 17:af1f2416dd26 66 #endif
mahphalke 17:af1f2416dd26 67 #if !defined(ENOMEM)
mahphalke 17:af1f2416dd26 68 #define ENOMEM 9971
mahphalke 17:af1f2416dd26 69 #endif
mahphalke 17:af1f2416dd26 70
mahphalke 17:af1f2416dd26 71 // End of defined(__ARMCC_VERSION)
mahphalke 17:af1f2416dd26 72 #endif
mahphalke 17:af1f2416dd26 73
mahphalke 17:af1f2416dd26 74 #include_next <errno.h>
mahphalke 17:af1f2416dd26 75
mahphalke 17:af1f2416dd26 76 #ifdef __cplusplus
mahphalke 17:af1f2416dd26 77 }
mahphalke 17:af1f2416dd26 78 #endif // _cplusplus
mahphalke 17:af1f2416dd26 79
mahphalke 17:af1f2416dd26 80 #endif // MBED_ERRNO_H_