The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Anna Bridge 169:a7c7b631e539 1 /*******************************************************************************
Anna Bridge 169:a7c7b631e539 2 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
Anna Bridge 169:a7c7b631e539 3 *
Anna Bridge 169:a7c7b631e539 4 * Permission is hereby granted, free of charge, to any person obtaining a
Anna Bridge 169:a7c7b631e539 5 * copy of this software and associated documentation files (the "Software"),
Anna Bridge 169:a7c7b631e539 6 * to deal in the Software without restriction, including without limitation
Anna Bridge 169:a7c7b631e539 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Anna Bridge 169:a7c7b631e539 8 * and/or sell copies of the Software, and to permit persons to whom the
Anna Bridge 169:a7c7b631e539 9 * Software is furnished to do so, subject to the following conditions:
Anna Bridge 169:a7c7b631e539 10 *
Anna Bridge 169:a7c7b631e539 11 * The above copyright notice and this permission notice shall be included
Anna Bridge 169:a7c7b631e539 12 * in all copies or substantial portions of the Software.
Anna Bridge 169:a7c7b631e539 13 *
Anna Bridge 169:a7c7b631e539 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
Anna Bridge 169:a7c7b631e539 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Anna Bridge 169:a7c7b631e539 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Anna Bridge 169:a7c7b631e539 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
Anna Bridge 169:a7c7b631e539 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
Anna Bridge 169:a7c7b631e539 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
Anna Bridge 169:a7c7b631e539 20 * OTHER DEALINGS IN THE SOFTWARE.
Anna Bridge 169:a7c7b631e539 21 *
Anna Bridge 169:a7c7b631e539 22 * Except as contained in this notice, the name of Maxim Integrated
Anna Bridge 169:a7c7b631e539 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
Anna Bridge 169:a7c7b631e539 24 * Products, Inc. Branding Policy.
Anna Bridge 169:a7c7b631e539 25 *
Anna Bridge 169:a7c7b631e539 26 * The mere transfer of this software does not imply any licenses
Anna Bridge 169:a7c7b631e539 27 * of trade secrets, proprietary technology, copyrights, patents,
Anna Bridge 169:a7c7b631e539 28 * trademarks, maskwork rights, or any other form of intellectual
Anna Bridge 169:a7c7b631e539 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
Anna Bridge 169:a7c7b631e539 30 * ownership rights.
Anna Bridge 169:a7c7b631e539 31 ******************************************************************************/
Anna Bridge 169:a7c7b631e539 32
Anna Bridge 169:a7c7b631e539 33 #ifndef _MXC_DEVICE_H_
Anna Bridge 169:a7c7b631e539 34 #define _MXC_DEVICE_H_
Anna Bridge 169:a7c7b631e539 35
Anna Bridge 169:a7c7b631e539 36 #include "max32625.h"
Anna Bridge 169:a7c7b631e539 37
Anna Bridge 169:a7c7b631e539 38
Anna Bridge 169:a7c7b631e539 39 #ifndef TARGET
Anna Bridge 169:a7c7b631e539 40 #error TARGET NOT DEFINED
Anna Bridge 169:a7c7b631e539 41 #endif
Anna Bridge 169:a7c7b631e539 42
Anna Bridge 169:a7c7b631e539 43 // Create a string definition for the TARGET
Anna Bridge 169:a7c7b631e539 44 #define STRING_ARG(arg) #arg
Anna Bridge 169:a7c7b631e539 45 #define STRING_NAME(name) STRING_ARG(name)
Anna Bridge 169:a7c7b631e539 46 #define TARGET_NAME STRING_NAME(TARGET)
Anna Bridge 169:a7c7b631e539 47
Anna Bridge 169:a7c7b631e539 48 // Define which revisions of the IP we are using
Anna Bridge 169:a7c7b631e539 49 #ifndef TARGET_REV
Anna Bridge 169:a7c7b631e539 50 #error TARGET_REV NOT DEFINED
Anna Bridge 169:a7c7b631e539 51 #endif
Anna Bridge 169:a7c7b631e539 52
Anna Bridge 169:a7c7b631e539 53 #if(TARGET_REV == 0x4132)
Anna Bridge 169:a7c7b631e539 54 #define MXC_ADC_REV 1
Anna Bridge 169:a7c7b631e539 55 #define MXC_AES_REV 0
Anna Bridge 169:a7c7b631e539 56 #define MXC_CRC_REV 0
Anna Bridge 169:a7c7b631e539 57 #define MXC_FLC_REV 0
Anna Bridge 169:a7c7b631e539 58 #define MXC_GPIO_REV 0
Anna Bridge 169:a7c7b631e539 59 #define MXC_I2CM_REV 0
Anna Bridge 169:a7c7b631e539 60 #define MXC_I2CS_REV 0
Anna Bridge 169:a7c7b631e539 61 #define MXC_ICC_REV 0
Anna Bridge 169:a7c7b631e539 62 #define MXC_MAA_REV 0
Anna Bridge 169:a7c7b631e539 63 #define MXC_OWM_REV 0
Anna Bridge 169:a7c7b631e539 64 #define MXC_PMU_REV 1
Anna Bridge 169:a7c7b631e539 65 #define MXC_PRNG_REV 0
Anna Bridge 169:a7c7b631e539 66 #define MXC_PT_REV 0
Anna Bridge 169:a7c7b631e539 67 #define MXC_RTC_REV 0
Anna Bridge 169:a7c7b631e539 68 #define MXC_SPIM_REV 1
Anna Bridge 169:a7c7b631e539 69 #define MXC_SPIS_REV 0
Anna Bridge 169:a7c7b631e539 70 #define MXC_SPIX_REV 1
Anna Bridge 169:a7c7b631e539 71 #define MXC_TMR_REV 0
Anna Bridge 169:a7c7b631e539 72 #define MXC_UART_REV 1
Anna Bridge 169:a7c7b631e539 73 #define MXC_USB_REV 0
Anna Bridge 169:a7c7b631e539 74 #define MXC_WDT2_REV 0
Anna Bridge 169:a7c7b631e539 75 #define MXC_WDT_REV 0
Anna Bridge 169:a7c7b631e539 76
Anna Bridge 169:a7c7b631e539 77 #else
Anna Bridge 169:a7c7b631e539 78
Anna Bridge 169:a7c7b631e539 79 #error TARGET_REV NOT SUPPORTED
Anna Bridge 169:a7c7b631e539 80
Anna Bridge 169:a7c7b631e539 81 #endif /* if(TARGET_REV == 0x4132) */
Anna Bridge 169:a7c7b631e539 82
Anna Bridge 169:a7c7b631e539 83 #endif /* _MXC_DEVICE_H_ */