Greg Steiert / pegasus_dev

Dependents:   blinky_max32630fthr

Committer:
switches
Date:
Fri Dec 16 16:27:57 2016 +0000
Revision:
3:1198227e6421
Parent:
0:5c4d7b2438d3
Changed ADC scale for MAX32625 platforms to 1.2V full scale to match MAX32630 platforms

Who changed what in which revision?

UserRevisionLine numberNew contents of line
switches 0:5c4d7b2438d3 1 /*******************************************************************************
switches 0:5c4d7b2438d3 2 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
switches 0:5c4d7b2438d3 3 *
switches 0:5c4d7b2438d3 4 * Permission is hereby granted, free of charge, to any person obtaining a
switches 0:5c4d7b2438d3 5 * copy of this software and associated documentation files (the "Software"),
switches 0:5c4d7b2438d3 6 * to deal in the Software without restriction, including without limitation
switches 0:5c4d7b2438d3 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
switches 0:5c4d7b2438d3 8 * and/or sell copies of the Software, and to permit persons to whom the
switches 0:5c4d7b2438d3 9 * Software is furnished to do so, subject to the following conditions:
switches 0:5c4d7b2438d3 10 *
switches 0:5c4d7b2438d3 11 * The above copyright notice and this permission notice shall be included
switches 0:5c4d7b2438d3 12 * in all copies or substantial portions of the Software.
switches 0:5c4d7b2438d3 13 *
switches 0:5c4d7b2438d3 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
switches 0:5c4d7b2438d3 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
switches 0:5c4d7b2438d3 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
switches 0:5c4d7b2438d3 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
switches 0:5c4d7b2438d3 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
switches 0:5c4d7b2438d3 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
switches 0:5c4d7b2438d3 20 * OTHER DEALINGS IN THE SOFTWARE.
switches 0:5c4d7b2438d3 21 *
switches 0:5c4d7b2438d3 22 * Except as contained in this notice, the name of Maxim Integrated
switches 0:5c4d7b2438d3 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
switches 0:5c4d7b2438d3 24 * Products, Inc. Branding Policy.
switches 0:5c4d7b2438d3 25 *
switches 0:5c4d7b2438d3 26 * The mere transfer of this software does not imply any licenses
switches 0:5c4d7b2438d3 27 * of trade secrets, proprietary technology, copyrights, patents,
switches 0:5c4d7b2438d3 28 * trademarks, maskwork rights, or any other form of intellectual
switches 0:5c4d7b2438d3 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
switches 0:5c4d7b2438d3 30 * ownership rights.
switches 0:5c4d7b2438d3 31 *******************************************************************************
switches 0:5c4d7b2438d3 32 */
switches 0:5c4d7b2438d3 33
switches 0:5c4d7b2438d3 34 #ifndef MBED_PERIPHERALNAMES_H
switches 0:5c4d7b2438d3 35 #define MBED_PERIPHERALNAMES_H
switches 0:5c4d7b2438d3 36
switches 0:5c4d7b2438d3 37 #include "cmsis.h"
switches 0:5c4d7b2438d3 38
switches 0:5c4d7b2438d3 39 #ifdef __cplusplus
switches 0:5c4d7b2438d3 40 extern "C" {
switches 0:5c4d7b2438d3 41 #endif
switches 0:5c4d7b2438d3 42
switches 0:5c4d7b2438d3 43 typedef enum {
switches 0:5c4d7b2438d3 44 UART_0 = MXC_BASE_UART0,
switches 0:5c4d7b2438d3 45 UART_1 = MXC_BASE_UART1,
switches 0:5c4d7b2438d3 46 UART_2 = MXC_BASE_UART2,
switches 0:5c4d7b2438d3 47 STDIO_UART = UART_1
switches 0:5c4d7b2438d3 48 } UARTName;
switches 0:5c4d7b2438d3 49
switches 0:5c4d7b2438d3 50 typedef enum {
switches 0:5c4d7b2438d3 51 I2C_0 = MXC_BASE_I2CM0,
switches 0:5c4d7b2438d3 52 I2C_1 = MXC_BASE_I2CM1
switches 0:5c4d7b2438d3 53 } I2CName;
switches 0:5c4d7b2438d3 54
switches 0:5c4d7b2438d3 55 typedef enum {
switches 0:5c4d7b2438d3 56 SPI_0 = MXC_BASE_SPIM0,
switches 0:5c4d7b2438d3 57 SPI_1 = MXC_BASE_SPIM1,
switches 0:5c4d7b2438d3 58 SPI_2 = MXC_BASE_SPIM2
switches 0:5c4d7b2438d3 59 } SPIName;
switches 0:5c4d7b2438d3 60
switches 0:5c4d7b2438d3 61 typedef enum {
switches 0:5c4d7b2438d3 62 PWM_0 = MXC_BASE_PT0,
switches 0:5c4d7b2438d3 63 PWM_1 = MXC_BASE_PT1,
switches 0:5c4d7b2438d3 64 PWM_2 = MXC_BASE_PT2,
switches 0:5c4d7b2438d3 65 PWM_3 = MXC_BASE_PT3,
switches 0:5c4d7b2438d3 66 PWM_4 = MXC_BASE_PT4,
switches 0:5c4d7b2438d3 67 PWM_5 = MXC_BASE_PT5,
switches 0:5c4d7b2438d3 68 PWM_6 = MXC_BASE_PT6,
switches 0:5c4d7b2438d3 69 PWM_7 = MXC_BASE_PT7,
switches 0:5c4d7b2438d3 70 PWM_8 = MXC_BASE_PT8,
switches 0:5c4d7b2438d3 71 PWM_9 = MXC_BASE_PT9,
switches 0:5c4d7b2438d3 72 PWM_10 = MXC_BASE_PT10,
switches 0:5c4d7b2438d3 73 PWM_11 = MXC_BASE_PT11,
switches 0:5c4d7b2438d3 74 PWM_12 = MXC_BASE_PT12,
switches 0:5c4d7b2438d3 75 PWM_13 = MXC_BASE_PT13,
switches 0:5c4d7b2438d3 76 PWM_14 = MXC_BASE_PT14,
switches 0:5c4d7b2438d3 77 PWM_15 = MXC_BASE_PT15
switches 0:5c4d7b2438d3 78 } PWMName;
switches 0:5c4d7b2438d3 79
switches 0:5c4d7b2438d3 80 typedef enum {
switches 0:5c4d7b2438d3 81 ADC = MXC_BASE_ADC
switches 0:5c4d7b2438d3 82 } ADCName;
switches 0:5c4d7b2438d3 83
switches 0:5c4d7b2438d3 84 #ifdef __cplusplus
switches 0:5c4d7b2438d3 85 }
switches 0:5c4d7b2438d3 86 #endif
switches 0:5c4d7b2438d3 87
switches 0:5c4d7b2438d3 88 #endif