mbed.h library with any bug fixes AV finds.
Dependents: micromouse4_encoder_testing PID_Test Lab1_Test WorkingPID ... more
targets/hal/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.c@0:ba7650f404af, 2015-11-02 (annotated)
- Committer:
- aravindsv
- Date:
- Mon Nov 02 02:26:59 2015 +0000
- Revision:
- 0:ba7650f404af
Reduced HSE_STARTUP_TIMEOUT to 500 ms, fixed some compiler warnings
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aravindsv | 0:ba7650f404af | 1 | /******************************************************************************* |
aravindsv | 0:ba7650f404af | 2 | * Copyright (C) 2015 Maxim Integrated Products, Inc., All Rights Reserved. |
aravindsv | 0:ba7650f404af | 3 | * |
aravindsv | 0:ba7650f404af | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
aravindsv | 0:ba7650f404af | 5 | * copy of this software and associated documentation files (the "Software"), |
aravindsv | 0:ba7650f404af | 6 | * to deal in the Software without restriction, including without limitation |
aravindsv | 0:ba7650f404af | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
aravindsv | 0:ba7650f404af | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
aravindsv | 0:ba7650f404af | 9 | * Software is furnished to do so, subject to the following conditions: |
aravindsv | 0:ba7650f404af | 10 | * |
aravindsv | 0:ba7650f404af | 11 | * The above copyright notice and this permission notice shall be included |
aravindsv | 0:ba7650f404af | 12 | * in all copies or substantial portions of the Software. |
aravindsv | 0:ba7650f404af | 13 | * |
aravindsv | 0:ba7650f404af | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
aravindsv | 0:ba7650f404af | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
aravindsv | 0:ba7650f404af | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
aravindsv | 0:ba7650f404af | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
aravindsv | 0:ba7650f404af | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
aravindsv | 0:ba7650f404af | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
aravindsv | 0:ba7650f404af | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
aravindsv | 0:ba7650f404af | 21 | * |
aravindsv | 0:ba7650f404af | 22 | * Except as contained in this notice, the name of Maxim Integrated |
aravindsv | 0:ba7650f404af | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
aravindsv | 0:ba7650f404af | 24 | * Products, Inc. Branding Policy. |
aravindsv | 0:ba7650f404af | 25 | * |
aravindsv | 0:ba7650f404af | 26 | * The mere transfer of this software does not imply any licenses |
aravindsv | 0:ba7650f404af | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
aravindsv | 0:ba7650f404af | 28 | * trademarks, maskwork rights, or any other form of intellectual |
aravindsv | 0:ba7650f404af | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
aravindsv | 0:ba7650f404af | 30 | * ownership rights. |
aravindsv | 0:ba7650f404af | 31 | ******************************************************************************* |
aravindsv | 0:ba7650f404af | 32 | */ |
aravindsv | 0:ba7650f404af | 33 | |
aravindsv | 0:ba7650f404af | 34 | #include "device.h" |
aravindsv | 0:ba7650f404af | 35 | #include "PeripheralPins.h" |
aravindsv | 0:ba7650f404af | 36 | #include "ioman_regs.h" |
aravindsv | 0:ba7650f404af | 37 | |
aravindsv | 0:ba7650f404af | 38 | /* |
aravindsv | 0:ba7650f404af | 39 | * To select a peripheral function on Maxim microcontrollers, multiple |
aravindsv | 0:ba7650f404af | 40 | * configurations must be made. The mbed PinMap structure only includes one |
aravindsv | 0:ba7650f404af | 41 | * data member to hold this information. To extend the configuration storage, |
aravindsv | 0:ba7650f404af | 42 | * the "function" data member is used as a pointer to a pin_function_t |
aravindsv | 0:ba7650f404af | 43 | * structure. This structure is defined in objects.h. The definitions below |
aravindsv | 0:ba7650f404af | 44 | * include the creation of the pin_function_t structures and the assignment of |
aravindsv | 0:ba7650f404af | 45 | * the pointers to the "function" data members. |
aravindsv | 0:ba7650f404af | 46 | */ |
aravindsv | 0:ba7650f404af | 47 | |
aravindsv | 0:ba7650f404af | 48 | #ifdef TOOLCHAIN_ARM_STD |
aravindsv | 0:ba7650f404af | 49 | #pragma diag_suppress 1296 |
aravindsv | 0:ba7650f404af | 50 | #endif |
aravindsv | 0:ba7650f404af | 51 | |
aravindsv | 0:ba7650f404af | 52 | /************I2C***************/ |
aravindsv | 0:ba7650f404af | 53 | const PinMap PinMap_I2C_SDA[] = { |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 56 | { NC, NC, 0 } |
aravindsv | 0:ba7650f404af | 57 | }; |
aravindsv | 0:ba7650f404af | 58 | |
aravindsv | 0:ba7650f404af | 59 | const PinMap PinMap_I2C_SCL[] = { |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 62 | { NC, NC, 0 } |
aravindsv | 0:ba7650f404af | 63 | }; |
aravindsv | 0:ba7650f404af | 64 | |
aravindsv | 0:ba7650f404af | 65 | /************UART***************/ |
aravindsv | 0:ba7650f404af | 66 | const PinMap PinMap_UART_TX[] = { |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 73 | { NC, NC, 0 } |
aravindsv | 0:ba7650f404af | 74 | }; |
aravindsv | 0:ba7650f404af | 75 | |
aravindsv | 0:ba7650f404af | 76 | const PinMap PinMap_UART_RX[] = { |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 83 | { NC, NC, 0 } |
aravindsv | 0:ba7650f404af | 84 | }; |
aravindsv | 0:ba7650f404af | 85 | |
aravindsv | 0:ba7650f404af | 86 | const PinMap PinMap_UART_CTS[] = { |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 92 | { NC, NC, 0 } |
aravindsv | 0:ba7650f404af | 93 | }; |
aravindsv | 0:ba7650f404af | 94 | |
aravindsv | 0:ba7650f404af | 95 | const PinMap PinMap_UART_RTS[] = { |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 101 | { NC, NC, 0 } |
aravindsv | 0:ba7650f404af | 102 | }; |
aravindsv | 0:ba7650f404af | 103 | |
aravindsv | 0:ba7650f404af | 104 | /************SPI***************/ |
aravindsv | 0:ba7650f404af | 105 | const PinMap PinMap_SPI_SCLK[] = { |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 108 | { NC, NC, 0} |
aravindsv | 0:ba7650f404af | 109 | }; |
aravindsv | 0:ba7650f404af | 110 | |
aravindsv | 0:ba7650f404af | 111 | const PinMap PinMap_SPI_MOSI[] = { |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 114 | { NC, NC, 0} |
aravindsv | 0:ba7650f404af | 115 | }; |
aravindsv | 0:ba7650f404af | 116 | |
aravindsv | 0:ba7650f404af | 117 | const PinMap PinMap_SPI_MISO[] = { |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 120 | { NC, NC, 0} |
aravindsv | 0:ba7650f404af | 121 | }; |
aravindsv | 0:ba7650f404af | 122 | |
aravindsv | 0:ba7650f404af | 123 | const PinMap PinMap_SPI_SSEL[] = { |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 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)}) }, |
aravindsv | 0:ba7650f404af | 126 | { NC, NC, 0} |
aravindsv | 0:ba7650f404af | 127 | }; |
aravindsv | 0:ba7650f404af | 128 | |
aravindsv | 0:ba7650f404af | 129 | /************PWM***************/ |
aravindsv | 0:ba7650f404af | 130 | const PinMap PinMap_PWM[] = { |
aravindsv | 0:ba7650f404af | 131 | {P0_0, PWM_0, 1}, {P0_0, PWM_0, 2}, {P0_0, PWM_4, 3}, |
aravindsv | 0:ba7650f404af | 132 | {P0_1, PWM_1, 1}, {P0_1, PWM_4, 2}, {P0_1, PWM_0, 3}, |
aravindsv | 0:ba7650f404af | 133 | {P0_2, PWM_2, 1}, {P0_2, PWM_1, 2}, {P0_2, PWM_5, 3}, |
aravindsv | 0:ba7650f404af | 134 | {P0_3, PWM_3, 1}, {P0_3, PWM_5, 2}, {P0_3, PWM_1, 3}, |
aravindsv | 0:ba7650f404af | 135 | {P0_4, PWM_4, 1}, {P0_4, PWM_2, 2}, {P0_4, PWM_6, 3}, |
aravindsv | 0:ba7650f404af | 136 | {P0_5, PWM_5, 1}, {P0_5, PWM_6, 2}, {P0_5, PWM_2, 3}, |
aravindsv | 0:ba7650f404af | 137 | {P0_6, PWM_6, 1}, {P0_6, PWM_3, 2}, {P0_6, PWM_7, 3}, |
aravindsv | 0:ba7650f404af | 138 | {P0_7, PWM_7, 1}, {P0_7, PWM_7, 2}, {P0_7, PWM_3, 3}, |
aravindsv | 0:ba7650f404af | 139 | |
aravindsv | 0:ba7650f404af | 140 | {P1_0, PWM_0, 1}, {P1_0, PWM_0, 2}, {P1_0, PWM_4, 3}, |
aravindsv | 0:ba7650f404af | 141 | {P1_1, PWM_1, 1}, {P1_1, PWM_4, 2}, {P1_1, PWM_0, 3}, |
aravindsv | 0:ba7650f404af | 142 | {P1_2, PWM_2, 1}, {P1_2, PWM_1, 2}, {P1_2, PWM_5, 3}, |
aravindsv | 0:ba7650f404af | 143 | {P1_3, PWM_3, 1}, {P1_3, PWM_5, 2}, {P1_3, PWM_1, 3}, |
aravindsv | 0:ba7650f404af | 144 | {P1_4, PWM_4, 1}, {P1_4, PWM_2, 2}, {P1_4, PWM_6, 3}, |
aravindsv | 0:ba7650f404af | 145 | {P1_5, PWM_5, 1}, {P1_5, PWM_6, 2}, {P1_5, PWM_2, 3}, |
aravindsv | 0:ba7650f404af | 146 | {P1_6, PWM_6, 1}, {P1_6, PWM_3, 2}, {P1_6, PWM_7, 3}, |
aravindsv | 0:ba7650f404af | 147 | {P1_7, PWM_7, 1}, {P1_7, PWM_7, 2}, {P1_7, PWM_3, 3}, |
aravindsv | 0:ba7650f404af | 148 | |
aravindsv | 0:ba7650f404af | 149 | {P2_0, PWM_0, 1}, {P2_0, PWM_0, 2}, {P2_0, PWM_4, 3}, |
aravindsv | 0:ba7650f404af | 150 | {P2_1, PWM_1, 1}, {P2_1, PWM_4, 2}, {P2_1, PWM_0, 3}, |
aravindsv | 0:ba7650f404af | 151 | {P2_2, PWM_2, 1}, {P2_2, PWM_1, 2}, {P2_2, PWM_5, 3}, |
aravindsv | 0:ba7650f404af | 152 | {P2_3, PWM_3, 1}, {P2_3, PWM_5, 2}, {P2_3, PWM_1, 3}, |
aravindsv | 0:ba7650f404af | 153 | {P2_4, PWM_4, 1}, {P2_4, PWM_2, 2}, {P2_4, PWM_6, 3}, |
aravindsv | 0:ba7650f404af | 154 | {P2_5, PWM_5, 1}, {P2_5, PWM_6, 2}, {P2_5, PWM_2, 3}, |
aravindsv | 0:ba7650f404af | 155 | {P2_6, PWM_6, 1}, {P2_6, PWM_3, 2}, {P2_6, PWM_7, 3}, |
aravindsv | 0:ba7650f404af | 156 | {P2_7, PWM_7, 1}, {P2_7, PWM_7, 2}, {P2_7, PWM_3, 3}, |
aravindsv | 0:ba7650f404af | 157 | |
aravindsv | 0:ba7650f404af | 158 | {NC, NC, 0} |
aravindsv | 0:ba7650f404af | 159 | }; |
aravindsv | 0:ba7650f404af | 160 | |
aravindsv | 0:ba7650f404af | 161 | /************ADC***************/ |
aravindsv | 0:ba7650f404af | 162 | const PinMap PinMap_ADC[] = { |
aravindsv | 0:ba7650f404af | 163 | {AIN_0P, ADC, 0}, |
aravindsv | 0:ba7650f404af | 164 | {AIN_1P, ADC, 0}, |
aravindsv | 0:ba7650f404af | 165 | {AIN_2P, ADC, 0}, |
aravindsv | 0:ba7650f404af | 166 | {AIN_3P, ADC, 0}, |
aravindsv | 0:ba7650f404af | 167 | {AIN_4P, ADC, 0}, |
aravindsv | 0:ba7650f404af | 168 | {AIN_5P, ADC, 0}, |
aravindsv | 0:ba7650f404af | 169 | {AIN_0N, ADC, 0}, |
aravindsv | 0:ba7650f404af | 170 | {AIN_1N, ADC, 0}, |
aravindsv | 0:ba7650f404af | 171 | {AIN_2N, ADC, 0}, |
aravindsv | 0:ba7650f404af | 172 | {AIN_3N, ADC, 0}, |
aravindsv | 0:ba7650f404af | 173 | {AIN_4N, ADC, 0}, |
aravindsv | 0:ba7650f404af | 174 | {AIN_5N, ADC, 0}, |
aravindsv | 0:ba7650f404af | 175 | {AIN_0D, ADC, 1}, |
aravindsv | 0:ba7650f404af | 176 | {AIN_1D, ADC, 1}, |
aravindsv | 0:ba7650f404af | 177 | {AIN_2D, ADC, 1}, |
aravindsv | 0:ba7650f404af | 178 | {AIN_3D, ADC, 1}, |
aravindsv | 0:ba7650f404af | 179 | {AIN_4D, ADC, 1}, |
aravindsv | 0:ba7650f404af | 180 | {AIN_5D, ADC, 1}, |
aravindsv | 0:ba7650f404af | 181 | {NC, NC, 0} |
aravindsv | 0:ba7650f404af | 182 | }; |
aravindsv | 0:ba7650f404af | 183 | |
aravindsv | 0:ba7650f404af | 184 | /************DAC***************/ |
aravindsv | 0:ba7650f404af | 185 | const PinMap PinMap_DAC[] = { |
aravindsv | 0:ba7650f404af | 186 | {AOUT_AO, DAC0, 0}, |
aravindsv | 0:ba7650f404af | 187 | {AOUT_BO, DAC1, 0}, |
aravindsv | 0:ba7650f404af | 188 | {AOUT_CO, DAC2, 0}, |
aravindsv | 0:ba7650f404af | 189 | {AOUT_DO, DAC3, 0}, |
aravindsv | 0:ba7650f404af | 190 | {NC, NC, 0} |
aravindsv | 0:ba7650f404af | 191 | }; |