Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
inc/mbed/admw_platform.h@5:0728bde67bdb, 2019-06-05 (annotated)
- Committer:
- Vkadaba
- Date:
- Wed Jun 05 05:39:15 2019 +0000
- Revision:
- 5:0728bde67bdb
- Parent:
- inc/mbed/adi_sense_platform.h@0:85855ecd3257
Replaced all references to ADISense/ADISENSE1000/adi_sense with ADMW/ADMW1001/admw and the prject builds.
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| ADIJake | 0:85855ecd3257 | 1 | /* | 
| ADIJake | 0:85855ecd3257 | 2 | Copyright (c) 2017 Analog Devices, Inc. | 
| ADIJake | 0:85855ecd3257 | 3 | |
| ADIJake | 0:85855ecd3257 | 4 | All rights reserved. | 
| ADIJake | 0:85855ecd3257 | 5 | |
| ADIJake | 0:85855ecd3257 | 6 | Redistribution and use in source and binary forms, with or without modification, | 
| ADIJake | 0:85855ecd3257 | 7 | are permitted provided that the following conditions are met: | 
| ADIJake | 0:85855ecd3257 | 8 | - Redistributions of source code must retain the above copyright notice, | 
| ADIJake | 0:85855ecd3257 | 9 | this list of conditions and the following disclaimer. | 
| ADIJake | 0:85855ecd3257 | 10 | - Redistributions in binary form must reproduce the above copyright notice, | 
| ADIJake | 0:85855ecd3257 | 11 | this list of conditions and the following disclaimer in the documentation | 
| ADIJake | 0:85855ecd3257 | 12 | and/or other materials provided with the distribution. | 
| ADIJake | 0:85855ecd3257 | 13 | - Modified versions of the software must be conspicuously marked as such. | 
| ADIJake | 0:85855ecd3257 | 14 | - This software is licensed solely and exclusively for use with processors | 
| ADIJake | 0:85855ecd3257 | 15 | manufactured by or for Analog Devices, Inc. | 
| ADIJake | 0:85855ecd3257 | 16 | - This software may not be combined or merged with other code in any manner | 
| ADIJake | 0:85855ecd3257 | 17 | that would cause the software to become subject to terms and conditions | 
| ADIJake | 0:85855ecd3257 | 18 | which differ from those listed here. | 
| ADIJake | 0:85855ecd3257 | 19 | - Neither the name of Analog Devices, Inc. nor the names of its | 
| ADIJake | 0:85855ecd3257 | 20 | contributors may be used to endorse or promote products derived | 
| ADIJake | 0:85855ecd3257 | 21 | from this software without specific prior written permission. | 
| ADIJake | 0:85855ecd3257 | 22 | - The use of this software may or may not infringe the patent rights of one | 
| ADIJake | 0:85855ecd3257 | 23 | or more patent holders. This license does not release you from the | 
| ADIJake | 0:85855ecd3257 | 24 | requirement that you obtain separate licenses from these patent holders | 
| ADIJake | 0:85855ecd3257 | 25 | to use this software. | 
| ADIJake | 0:85855ecd3257 | 26 | |
| ADIJake | 0:85855ecd3257 | 27 | THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. AND CONTRIBUTORS "AS IS" AND ANY | 
| ADIJake | 0:85855ecd3257 | 28 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, | 
| ADIJake | 0:85855ecd3257 | 29 | TITLE, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | 
| ADIJake | 0:85855ecd3257 | 30 | NO EVENT SHALL ANALOG DEVICES, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | 
| ADIJake | 0:85855ecd3257 | 31 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES | 
| ADIJake | 0:85855ecd3257 | 32 | (INCLUDING, BUT NOT LIMITED TO, DAMAGES ARISING OUT OF CLAIMS OF INTELLECTUAL | 
| ADIJake | 0:85855ecd3257 | 33 | PROPERTY RIGHTS INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS | 
| ADIJake | 0:85855ecd3257 | 34 | OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 
| ADIJake | 0:85855ecd3257 | 35 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | 
| ADIJake | 0:85855ecd3257 | 36 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | 
| ADIJake | 0:85855ecd3257 | 37 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
| ADIJake | 0:85855ecd3257 | 38 | */ | 
| ADIJake | 0:85855ecd3257 | 39 | |
| ADIJake | 0:85855ecd3257 | 40 | /*! | 
| ADIJake | 0:85855ecd3257 | 41 | ****************************************************************************** | 
| ADIJake | 0:85855ecd3257 | 42 | * @file: | 
| Vkadaba | 5:0728bde67bdb | 43 | * @brief: mbed platform-specific type definitions for ADMW API. | 
| ADIJake | 0:85855ecd3257 | 44 | *----------------------------------------------------------------------------- | 
| ADIJake | 0:85855ecd3257 | 45 | */ | 
| ADIJake | 0:85855ecd3257 | 46 | |
| Vkadaba | 5:0728bde67bdb | 47 | #ifndef _PLATFORM_MBED_H__ | 
| Vkadaba | 5:0728bde67bdb | 48 | #define _PLATFORM_MBED_H__ | 
| ADIJake | 0:85855ecd3257 | 49 | |
| Vkadaba | 5:0728bde67bdb | 50 | /*! Maximum number of ADMW device instances supported on this platform */ | 
| Vkadaba | 5:0728bde67bdb | 51 | #define ADMW_PLATFORM_MAX_DEVICES 1 | 
| ADIJake | 0:85855ecd3257 | 52 | |
| ADIJake | 0:85855ecd3257 | 53 | typedef struct { | 
| ADIJake | 0:85855ecd3257 | 54 | int mosiPin; | 
| ADIJake | 0:85855ecd3257 | 55 | int misoPin; | 
| ADIJake | 0:85855ecd3257 | 56 | int sckPin; | 
| ADIJake | 0:85855ecd3257 | 57 | int csPin; | 
| Vkadaba | 5:0728bde67bdb | 58 | int wakeupPin; | 
| ADIJake | 0:85855ecd3257 | 59 | int maxSpeedHz; | 
| Vkadaba | 5:0728bde67bdb | 60 | } ADMW_PLATFORM_SPI_CONFIG; | 
| ADIJake | 0:85855ecd3257 | 61 | |
| ADIJake | 0:85855ecd3257 | 62 | typedef struct { | 
| ADIJake | 0:85855ecd3257 | 63 | int resetPin; | 
| Vkadaba | 5:0728bde67bdb | 64 | int alertErrorPin; | 
| ADIJake | 0:85855ecd3257 | 65 | int datareadyPin; | 
| Vkadaba | 5:0728bde67bdb | 66 | } ADMW_PLATFORM_GPIO_CONFIG; | 
| ADIJake | 0:85855ecd3257 | 67 | |
| ADIJake | 0:85855ecd3257 | 68 | typedef struct { | 
| ADIJake | 0:85855ecd3257 | 69 | int txPin; | 
| ADIJake | 0:85855ecd3257 | 70 | int rxPin; | 
| ADIJake | 0:85855ecd3257 | 71 | int baudRate; | 
| ADIJake | 0:85855ecd3257 | 72 | bool disableLogs; | 
| Vkadaba | 5:0728bde67bdb | 73 | } ADMW_PLATFORM_LOG_CONFIG; | 
| ADIJake | 0:85855ecd3257 | 74 | |
| Vkadaba | 5:0728bde67bdb | 75 | #endif /* _PLATFORM_MBED_H__ */ |