mbed library sources

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Fri Apr 24 08:15:12 2015 +0100
Revision:
523:d25d72bcc348
Parent:
507:d4fc7603a669
Child:
603:3c75ef011213
Synchronized with git revision 7c21ce5110e451856e2574fff0447ad45199f2dd

Full URL: https://github.com/mbedmicro/mbed/commit/7c21ce5110e451856e2574fff0447ad45199f2dd/

workspace_tools: Use python2 in shebang

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 507:d4fc7603a669 1 /*******************************************************************************
mbed_official 507:d4fc7603a669 2 * Copyright (C) 2015 Maxim Integrated Products, Inc., All Rights Reserved.
mbed_official 507:d4fc7603a669 3 *
mbed_official 507:d4fc7603a669 4 * Permission is hereby granted, free of charge, to any person obtaining a
mbed_official 507:d4fc7603a669 5 * copy of this software and associated documentation files (the "Software"),
mbed_official 507:d4fc7603a669 6 * to deal in the Software without restriction, including without limitation
mbed_official 507:d4fc7603a669 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
mbed_official 507:d4fc7603a669 8 * and/or sell copies of the Software, and to permit persons to whom the
mbed_official 507:d4fc7603a669 9 * Software is furnished to do so, subject to the following conditions:
mbed_official 507:d4fc7603a669 10 *
mbed_official 507:d4fc7603a669 11 * The above copyright notice and this permission notice shall be included
mbed_official 507:d4fc7603a669 12 * in all copies or substantial portions of the Software.
mbed_official 507:d4fc7603a669 13 *
mbed_official 507:d4fc7603a669 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
mbed_official 507:d4fc7603a669 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
mbed_official 507:d4fc7603a669 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
mbed_official 507:d4fc7603a669 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
mbed_official 507:d4fc7603a669 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
mbed_official 507:d4fc7603a669 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
mbed_official 507:d4fc7603a669 20 * OTHER DEALINGS IN THE SOFTWARE.
mbed_official 507:d4fc7603a669 21 *
mbed_official 507:d4fc7603a669 22 * Except as contained in this notice, the name of Maxim Integrated
mbed_official 507:d4fc7603a669 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
mbed_official 507:d4fc7603a669 24 * Products, Inc. Branding Policy.
mbed_official 507:d4fc7603a669 25 *
mbed_official 507:d4fc7603a669 26 * The mere transfer of this software does not imply any licenses
mbed_official 507:d4fc7603a669 27 * of trade secrets, proprietary technology, copyrights, patents,
mbed_official 507:d4fc7603a669 28 * trademarks, maskwork rights, or any other form of intellectual
mbed_official 507:d4fc7603a669 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
mbed_official 507:d4fc7603a669 30 * ownership rights.
mbed_official 507:d4fc7603a669 31 *******************************************************************************
mbed_official 507:d4fc7603a669 32 */
mbed_official 507:d4fc7603a669 33
mbed_official 507:d4fc7603a669 34 #include "device.h"
mbed_official 507:d4fc7603a669 35 #include "PeripheralPins.h"
mbed_official 507:d4fc7603a669 36 #include "ioman_regs.h"
mbed_official 507:d4fc7603a669 37
mbed_official 507:d4fc7603a669 38 /*
mbed_official 507:d4fc7603a669 39 * To select a peripheral function on Maxim microcontrollers, multiple
mbed_official 507:d4fc7603a669 40 * configurations must be made. The mbed PinMap structure only includes one
mbed_official 507:d4fc7603a669 41 * data member to hold this information. To extend the configuration storage,
mbed_official 507:d4fc7603a669 42 * the "function" data member is used as a pointer to a pin_function_t
mbed_official 507:d4fc7603a669 43 * structure. This structure is defined in objects.h. The definitions below
mbed_official 507:d4fc7603a669 44 * include the creation of the pin_function_t structures and the assignment of
mbed_official 507:d4fc7603a669 45 * the pointers to the "function" data members.
mbed_official 507:d4fc7603a669 46 */
mbed_official 507:d4fc7603a669 47
mbed_official 523:d25d72bcc348 48 #ifdef TOOLCHAIN_ARM_STD
mbed_official 523:d25d72bcc348 49 #pragma diag_suppress 1296
mbed_official 523:d25d72bcc348 50 #endif
mbed_official 523:d25d72bcc348 51
mbed_official 507:d4fc7603a669 52 /************I2C***************/
mbed_official 507:d4fc7603a669 53 const PinMap PinMap_I2C_SDA[] = {
mbed_official 507:d4fc7603a669 54 { P0_4, I2C_0, (int)&((pin_function_t){&MXC_IOMAN->i2cm0_req, &MXC_IOMAN->i2cm0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_D | MXC_F_IOMAN_I2CM_CORE_IO), (MXC_F_IOMAN_I2CM_MAPPING | MXC_F_IOMAN_I2CM_CORE_IO)}) },
mbed_official 507:d4fc7603a669 55 { P0_6, I2C_1, (int)&((pin_function_t){&MXC_IOMAN->i2cm1_req, &MXC_IOMAN->i2cm1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_H | MXC_F_IOMAN_I2CM_CORE_IO), (MXC_F_IOMAN_I2CM_MAPPING | MXC_F_IOMAN_I2CM_CORE_IO)}) },
mbed_official 507:d4fc7603a669 56 { NC, NC, 0 }
mbed_official 507:d4fc7603a669 57 };
mbed_official 507:d4fc7603a669 58
mbed_official 507:d4fc7603a669 59 const PinMap PinMap_I2C_SCL[] = {
mbed_official 507:d4fc7603a669 60 { P0_5, I2C_0, (int)&((pin_function_t){&MXC_IOMAN->i2cm0_req, &MXC_IOMAN->i2cm0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_D | MXC_F_IOMAN_I2CM_CORE_IO), (MXC_F_IOMAN_I2CM_MAPPING | MXC_F_IOMAN_I2CM_CORE_IO)}) },
mbed_official 507:d4fc7603a669 61 { P0_7, I2C_1, (int)&((pin_function_t){&MXC_IOMAN->i2cm1_req, &MXC_IOMAN->i2cm1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_H | MXC_F_IOMAN_I2CM_CORE_IO), (MXC_F_IOMAN_I2CM_MAPPING | MXC_F_IOMAN_I2CM_CORE_IO)}) },
mbed_official 507:d4fc7603a669 62 { NC, NC, 0 }
mbed_official 507:d4fc7603a669 63 };
mbed_official 507:d4fc7603a669 64
mbed_official 507:d4fc7603a669 65 /************UART***************/
mbed_official 507:d4fc7603a669 66 const PinMap PinMap_UART_TX[] = {
mbed_official 507:d4fc7603a669 67 { P1_1, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 68 { P1_3, UART_1, (int)&((pin_function_t){&MXC_IOMAN->uart1_req, &MXC_IOMAN->uart1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 69 { P2_1, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 70 { P2_5, UART_1, (int)&((pin_function_t){&MXC_IOMAN->uart1_req, &MXC_IOMAN->uart1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 71 { P0_1, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_D | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 72 { P1_7, UART_1, (int)&((pin_function_t){&MXC_IOMAN->uart1_req, &MXC_IOMAN->uart1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_D | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 73 { NC, NC, 0 }
mbed_official 507:d4fc7603a669 74 };
mbed_official 507:d4fc7603a669 75
mbed_official 507:d4fc7603a669 76 const PinMap PinMap_UART_RX[] = {
mbed_official 507:d4fc7603a669 77 { P1_0, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 78 { P1_2, UART_1, (int)&((pin_function_t){&MXC_IOMAN->uart1_req, &MXC_IOMAN->uart1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 79 { P2_0, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 80 { P2_4, UART_1, (int)&((pin_function_t){&MXC_IOMAN->uart1_req, &MXC_IOMAN->uart1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 81 { P0_0, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_D | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 82 { P1_6, UART_1, (int)&((pin_function_t){&MXC_IOMAN->uart1_req, &MXC_IOMAN->uart1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_D | MXC_F_IOMAN_UART_CORE_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CORE_IO)}) },
mbed_official 507:d4fc7603a669 83 { NC, NC, 0 }
mbed_official 507:d4fc7603a669 84 };
mbed_official 507:d4fc7603a669 85
mbed_official 507:d4fc7603a669 86 const PinMap PinMap_UART_CTS[] = {
mbed_official 507:d4fc7603a669 87 { P1_2, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_UART_CTS_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CTS_IO)}) },
mbed_official 507:d4fc7603a669 88 { P1_6, UART_1, (int)&((pin_function_t){&MXC_IOMAN->uart1_req, &MXC_IOMAN->uart1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_UART_CTS_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CTS_IO)}) },
mbed_official 507:d4fc7603a669 89 { P2_4, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_UART_CTS_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CTS_IO)}) },
mbed_official 507:d4fc7603a669 90 { P2_6, UART_1, (int)&((pin_function_t){&MXC_IOMAN->uart1_req, &MXC_IOMAN->uart1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_UART_CTS_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CTS_IO)}) },
mbed_official 507:d4fc7603a669 91 { P0_2, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_D | MXC_F_IOMAN_UART_CTS_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_CTS_IO)}) },
mbed_official 507:d4fc7603a669 92 { NC, NC, 0 }
mbed_official 507:d4fc7603a669 93 };
mbed_official 507:d4fc7603a669 94
mbed_official 507:d4fc7603a669 95 const PinMap PinMap_UART_RTS[] = {
mbed_official 507:d4fc7603a669 96 { P1_3, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_UART_RTS_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_RTS_IO)}) },
mbed_official 507:d4fc7603a669 97 { P1_7, UART_1, (int)&((pin_function_t){&MXC_IOMAN->uart1_req, &MXC_IOMAN->uart1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_UART_RTS_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_RTS_IO)}) },
mbed_official 507:d4fc7603a669 98 { P2_5, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_UART_RTS_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_RTS_IO)}) },
mbed_official 507:d4fc7603a669 99 { P2_7, UART_1, (int)&((pin_function_t){&MXC_IOMAN->uart1_req, &MXC_IOMAN->uart1_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_UART_RTS_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_RTS_IO)}) },
mbed_official 507:d4fc7603a669 100 { P0_3, UART_0, (int)&((pin_function_t){&MXC_IOMAN->uart0_req, &MXC_IOMAN->uart0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_D | MXC_F_IOMAN_UART_RTS_IO), (MXC_F_IOMAN_UART_MAPPING | MXC_F_IOMAN_UART_RTS_IO)}) },
mbed_official 507:d4fc7603a669 101 { NC, NC, 0 }
mbed_official 507:d4fc7603a669 102 };
mbed_official 507:d4fc7603a669 103
mbed_official 507:d4fc7603a669 104 /************SPI***************/
mbed_official 507:d4fc7603a669 105 const PinMap PinMap_SPI_SCLK[] = {
mbed_official 507:d4fc7603a669 106 { P0_0, SPI_0, (int)&((pin_function_t){&MXC_IOMAN->spi0_req, &MXC_IOMAN->spi0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_SPI_CORE_IO), (MXC_F_IOMAN_SPI_MAPPING | MXC_F_IOMAN_SPI_CORE_IO)}) },
mbed_official 507:d4fc7603a669 107 { P2_0, SPI_2, (int)&((pin_function_t){&MXC_IOMAN->spi2_req, &MXC_IOMAN->spi2_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_SPI_CORE_IO), (MXC_F_IOMAN_SPI_MAPPING | MXC_F_IOMAN_SPI_CORE_IO)}) },
mbed_official 507:d4fc7603a669 108 { NC, NC, 0}
mbed_official 507:d4fc7603a669 109 };
mbed_official 507:d4fc7603a669 110
mbed_official 507:d4fc7603a669 111 const PinMap PinMap_SPI_MOSI[] = {
mbed_official 507:d4fc7603a669 112 { P0_1, SPI_0, (int)&((pin_function_t){&MXC_IOMAN->spi0_req, &MXC_IOMAN->spi0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_SPI_CORE_IO), (MXC_F_IOMAN_SPI_MAPPING | MXC_F_IOMAN_SPI_CORE_IO)}) },
mbed_official 507:d4fc7603a669 113 { P2_1, SPI_2, (int)&((pin_function_t){&MXC_IOMAN->spi2_req, &MXC_IOMAN->spi2_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_SPI_CORE_IO), (MXC_F_IOMAN_SPI_MAPPING | MXC_F_IOMAN_SPI_CORE_IO)}) },
mbed_official 507:d4fc7603a669 114 { NC, NC, 0}
mbed_official 507:d4fc7603a669 115 };
mbed_official 507:d4fc7603a669 116
mbed_official 507:d4fc7603a669 117 const PinMap PinMap_SPI_MISO[] = {
mbed_official 507:d4fc7603a669 118 { P0_2, SPI_0, (int)&((pin_function_t){&MXC_IOMAN->spi0_req, &MXC_IOMAN->spi0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_SPI_CORE_IO), (MXC_F_IOMAN_SPI_MAPPING | MXC_F_IOMAN_SPI_CORE_IO)}) },
mbed_official 507:d4fc7603a669 119 { P2_2, SPI_2, (int)&((pin_function_t){&MXC_IOMAN->spi2_req, &MXC_IOMAN->spi2_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_SPI_CORE_IO), (MXC_F_IOMAN_SPI_MAPPING | MXC_F_IOMAN_SPI_CORE_IO)}) },
mbed_official 507:d4fc7603a669 120 { NC, NC, 0}
mbed_official 507:d4fc7603a669 121 };
mbed_official 507:d4fc7603a669 122
mbed_official 507:d4fc7603a669 123 const PinMap PinMap_SPI_SSEL[] = {
mbed_official 507:d4fc7603a669 124 { P0_3, SPI_0, (int)&((pin_function_t){&MXC_IOMAN->spi0_req, &MXC_IOMAN->spi0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_SPI_SS0_IO), (MXC_F_IOMAN_SPI_MAPPING | MXC_F_IOMAN_SPI_SS0_IO)}) },
mbed_official 507:d4fc7603a669 125 { P2_3, SPI_2, (int)&((pin_function_t){&MXC_IOMAN->spi2_req, &MXC_IOMAN->spi2_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_B | MXC_F_IOMAN_SPI_SS0_IO | MXC_F_IOMAN_SPI_SR0_IO), (MXC_F_IOMAN_SPI_MAPPING | MXC_F_IOMAN_SPI_SS0_IO | MXC_F_IOMAN_SPI_SR0_IO)}) },
mbed_official 507:d4fc7603a669 126 { NC, NC, 0}
mbed_official 507:d4fc7603a669 127 };
mbed_official 507:d4fc7603a669 128
mbed_official 507:d4fc7603a669 129 /************PWM***************/
mbed_official 507:d4fc7603a669 130 const PinMap PinMap_PWM[] = {
mbed_official 507:d4fc7603a669 131 {P0_0, PWM_0, 1}, {P0_0, PWM_0, 2}, {P0_0, PWM_4, 3},
mbed_official 507:d4fc7603a669 132 {P0_1, PWM_0, 3}, {P0_1, PWM_1, 1}, {P0_1, PWM_4, 2},
mbed_official 507:d4fc7603a669 133 {P0_2, PWM_1, 2}, {P0_2, PWM_2, 1}, {P0_2, PWM_5, 3},
mbed_official 507:d4fc7603a669 134 {P0_3, PWM_1, 3}, {P0_3, PWM_3, 1}, {P0_3, PWM_5, 2},
mbed_official 507:d4fc7603a669 135 {P0_4, PWM_2, 2}, {P0_4, PWM_4, 1}, {P0_4, PWM_6, 3},
mbed_official 507:d4fc7603a669 136 {P0_5, PWM_2, 3}, {P0_5, PWM_5, 1}, {P0_5, PWM_6, 2},
mbed_official 507:d4fc7603a669 137 {P0_6, PWM_3, 2}, {P0_6, PWM_6, 1}, {P0_6, PWM_7, 3},
mbed_official 507:d4fc7603a669 138 {P0_7, PWM_3, 3}, {P0_7, PWM_7, 1}, {P0_7, PWM_7, 2},
mbed_official 507:d4fc7603a669 139
mbed_official 507:d4fc7603a669 140 {P1_0, PWM_0, 1}, {P1_0, PWM_0, 2}, {P1_0, PWM_4, 3},
mbed_official 507:d4fc7603a669 141 {P1_1, PWM_0, 3}, {P1_1, PWM_1, 1}, {P1_1, PWM_4, 2},
mbed_official 507:d4fc7603a669 142 {P1_2, PWM_1, 2}, {P1_2, PWM_2, 1}, {P1_2, PWM_5, 3},
mbed_official 507:d4fc7603a669 143 {P1_3, PWM_1, 3}, {P1_3, PWM_3, 1}, {P1_3, PWM_5, 2},
mbed_official 507:d4fc7603a669 144 {P1_4, PWM_2, 2}, {P1_4, PWM_4, 1}, {P1_4, PWM_6, 3},
mbed_official 507:d4fc7603a669 145 {P1_5, PWM_2, 3}, {P1_5, PWM_5, 1}, {P1_5, PWM_6, 2},
mbed_official 507:d4fc7603a669 146 {P1_6, PWM_3, 2}, {P1_6, PWM_6, 1}, {P1_6, PWM_7, 3},
mbed_official 507:d4fc7603a669 147 {P1_7, PWM_3, 3}, {P1_7, PWM_7, 1}, {P1_7, PWM_7, 2},
mbed_official 507:d4fc7603a669 148
mbed_official 507:d4fc7603a669 149 {P2_0, PWM_0, 1}, {P2_0, PWM_0, 2}, {P2_0, PWM_4, 3},
mbed_official 507:d4fc7603a669 150 {P2_1, PWM_0, 3}, {P2_1, PWM_1, 1}, {P2_1, PWM_4, 2},
mbed_official 507:d4fc7603a669 151 {P2_2, PWM_1, 2}, {P2_2, PWM_2, 1}, {P2_2, PWM_5, 3},
mbed_official 507:d4fc7603a669 152 {P2_3, PWM_1, 3}, {P2_3, PWM_3, 1}, {P2_3, PWM_5, 2},
mbed_official 507:d4fc7603a669 153 {P2_4, PWM_2, 2}, {P2_4, PWM_4, 1}, {P2_4, PWM_6, 3},
mbed_official 507:d4fc7603a669 154 {P2_5, PWM_2, 3}, {P2_5, PWM_5, 1}, {P2_5, PWM_6, 2},
mbed_official 507:d4fc7603a669 155 {P2_6, PWM_3, 2}, {P2_6, PWM_6, 1}, {P2_6, PWM_7, 3},
mbed_official 507:d4fc7603a669 156 {P2_7, PWM_3, 3}, {P2_7, PWM_7, 1}, {P2_7, PWM_7, 2},
mbed_official 507:d4fc7603a669 157 {NC, NC, 0}
mbed_official 507:d4fc7603a669 158 };
mbed_official 507:d4fc7603a669 159
mbed_official 507:d4fc7603a669 160 /************ADC***************/
mbed_official 507:d4fc7603a669 161 const PinMap PinMap_ADC[] = {
mbed_official 507:d4fc7603a669 162 {AIN_0P, ADC, 0},
mbed_official 507:d4fc7603a669 163 {AIN_1P, ADC, 0},
mbed_official 507:d4fc7603a669 164 {AIN_2P, ADC, 0},
mbed_official 507:d4fc7603a669 165 {AIN_3P, ADC, 0},
mbed_official 507:d4fc7603a669 166 {AIN_4P, ADC, 0},
mbed_official 507:d4fc7603a669 167 {AIN_5P, ADC, 0},
mbed_official 507:d4fc7603a669 168 {AIN_0N, ADC, 0},
mbed_official 507:d4fc7603a669 169 {AIN_1N, ADC, 0},
mbed_official 507:d4fc7603a669 170 {AIN_2N, ADC, 0},
mbed_official 507:d4fc7603a669 171 {AIN_3N, ADC, 0},
mbed_official 507:d4fc7603a669 172 {AIN_4N, ADC, 0},
mbed_official 507:d4fc7603a669 173 {AIN_5N, ADC, 0},
mbed_official 507:d4fc7603a669 174 {AIN_0D, ADC, 1},
mbed_official 507:d4fc7603a669 175 {AIN_1D, ADC, 1},
mbed_official 507:d4fc7603a669 176 {AIN_2D, ADC, 1},
mbed_official 507:d4fc7603a669 177 {AIN_3D, ADC, 1},
mbed_official 507:d4fc7603a669 178 {AIN_4D, ADC, 1},
mbed_official 507:d4fc7603a669 179 {AIN_5D, ADC, 1},
mbed_official 507:d4fc7603a669 180 {NC, NC, 0}
mbed_official 507:d4fc7603a669 181 };
mbed_official 507:d4fc7603a669 182
mbed_official 507:d4fc7603a669 183 /************DAC***************/
mbed_official 507:d4fc7603a669 184 const PinMap PinMap_DAC[] = {
mbed_official 507:d4fc7603a669 185 {AOUT_AO, DAC0, 0},
mbed_official 507:d4fc7603a669 186 {AOUT_BO, DAC1, 0},
mbed_official 507:d4fc7603a669 187 {AOUT_CO, DAC2, 0},
mbed_official 507:d4fc7603a669 188 {AOUT_DO, DAC3, 0},
mbed_official 507:d4fc7603a669 189 {NC, NC, 0}
mbed_official 507:d4fc7603a669 190 };