Forked repo of Platform Drivers- Analog Devices
platform_support.h@20:26b1a4570f4b, 2021-11-22 (annotated)
- Committer:
- Janani Sunil
- Date:
- Mon Nov 22 22:26:51 2021 +0530
- Revision:
- 20:26b1a4570f4b
- 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 as it's member for multiplatform project compatibility
5.) Added a module for timer and its related header file
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mahphalke |
17:af1f2416dd26 | 1 | /***************************************************************************//** |
mahphalke |
17:af1f2416dd26 | 2 | * @file platform_support.h |
mahphalke |
17:af1f2416dd26 | 3 | * @brief: support functions and declarations for selected platform |
mahphalke |
17:af1f2416dd26 | 4 | * @details: This is a platform specific file that supports functionality |
mahphalke |
17:af1f2416dd26 | 5 | * required from application generic file. This file should be |
mahphalke |
17:af1f2416dd26 | 6 | * modified according to platform that you are working with. |
mahphalke |
17:af1f2416dd26 | 7 | ******************************************************************************** |
mahphalke |
17:af1f2416dd26 | 8 | * Copyright (c) 2019 - 2021 Analog Devices, Inc. |
mahphalke |
17:af1f2416dd26 | 9 | * All rights reserved. |
mahphalke |
17:af1f2416dd26 | 10 | * |
mahphalke |
17:af1f2416dd26 | 11 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
mahphalke |
17:af1f2416dd26 | 12 | * By using this software you agree to the terms of the associated |
mahphalke |
17:af1f2416dd26 | 13 | * Analog Devices Software License Agreement. |
mahphalke |
17:af1f2416dd26 | 14 | *******************************************************************************/ |
mahphalke |
17:af1f2416dd26 | 15 | |
mahphalke |
17:af1f2416dd26 | 16 | #ifndef PLATFORM_SUPPORT_H_ |
mahphalke |
17:af1f2416dd26 | 17 | #define PLATFORM_SUPPORT_H_ |
mahphalke |
17:af1f2416dd26 | 18 | |
mahphalke |
17:af1f2416dd26 | 19 | |
mahphalke |
17:af1f2416dd26 | 20 | /******************************************************************************/ |
mahphalke |
17:af1f2416dd26 | 21 | /***************************** Include Files **********************************/ |
mahphalke |
17:af1f2416dd26 | 22 | /******************************************************************************/ |
mahphalke |
17:af1f2416dd26 | 23 | #include <stdio.h> |
mahphalke |
17:af1f2416dd26 | 24 | |
mahphalke |
17:af1f2416dd26 | 25 | /******************************************************************************/ |
mahphalke |
17:af1f2416dd26 | 26 | /********************** Macros and Constants Definitions **********************/ |
mahphalke |
17:af1f2416dd26 | 27 | /******************************************************************************/ |
mahphalke |
17:af1f2416dd26 | 28 | |
mahphalke |
17:af1f2416dd26 | 29 | /******************************************************************************/ |
mahphalke |
17:af1f2416dd26 | 30 | /********************** Variables and User defined data types *****************/ |
mahphalke |
17:af1f2416dd26 | 31 | /******************************************************************************/ |
mahphalke |
17:af1f2416dd26 | 32 | |
mahphalke |
17:af1f2416dd26 | 33 | /******************************************************************************/ |
mahphalke |
17:af1f2416dd26 | 34 | /************************ Functions Declarations ******************************/ |
mahphalke |
17:af1f2416dd26 | 35 | /******************************************************************************/ |
mahphalke |
17:af1f2416dd26 | 36 | |
mahphalke |
17:af1f2416dd26 | 37 | char getchar_noblock(void); |
mahphalke |
17:af1f2416dd26 | 38 | |
mahphalke |
17:af1f2416dd26 | 39 | #endif /* PLATFORM_SUPPORT_H_ */ |