Mouse code for the MacroRat
mbed-dev/targets/TARGET_NUVOTON/TARGET_M451/TARGET_NUMAKER_PFM_M453/PeripheralPins.c@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | /* mbed Microcontroller Library |
sahilmgandhi | 18:6a4db94011d3 | 2 | * Copyright (c) 2015-2016 Nuvoton |
sahilmgandhi | 18:6a4db94011d3 | 3 | * |
sahilmgandhi | 18:6a4db94011d3 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
sahilmgandhi | 18:6a4db94011d3 | 5 | * you may not use this file except in compliance with the License. |
sahilmgandhi | 18:6a4db94011d3 | 6 | * You may obtain a copy of the License at |
sahilmgandhi | 18:6a4db94011d3 | 7 | * |
sahilmgandhi | 18:6a4db94011d3 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
sahilmgandhi | 18:6a4db94011d3 | 9 | * |
sahilmgandhi | 18:6a4db94011d3 | 10 | * Unless required by applicable law or agreed to in writing, software |
sahilmgandhi | 18:6a4db94011d3 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
sahilmgandhi | 18:6a4db94011d3 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
sahilmgandhi | 18:6a4db94011d3 | 13 | * See the License for the specific language governing permissions and |
sahilmgandhi | 18:6a4db94011d3 | 14 | * limitations under the License. |
sahilmgandhi | 18:6a4db94011d3 | 15 | */ |
sahilmgandhi | 18:6a4db94011d3 | 16 | |
sahilmgandhi | 18:6a4db94011d3 | 17 | #include "PeripheralPins.h" |
sahilmgandhi | 18:6a4db94011d3 | 18 | |
sahilmgandhi | 18:6a4db94011d3 | 19 | // ===== |
sahilmgandhi | 18:6a4db94011d3 | 20 | // Note: Commented lines are alternative possibilities which are not used per default. |
sahilmgandhi | 18:6a4db94011d3 | 21 | // If you change them, you will have also to modify the corresponding xxx_api.c file |
sahilmgandhi | 18:6a4db94011d3 | 22 | // for pwmout, analogin, analogout, ... |
sahilmgandhi | 18:6a4db94011d3 | 23 | // ===== |
sahilmgandhi | 18:6a4db94011d3 | 24 | |
sahilmgandhi | 18:6a4db94011d3 | 25 | #if 0 |
sahilmgandhi | 18:6a4db94011d3 | 26 | //*** GPIO *** |
sahilmgandhi | 18:6a4db94011d3 | 27 | const PinMap PinMap_GPIO[] = { |
sahilmgandhi | 18:6a4db94011d3 | 28 | // GPIO A MFPL |
sahilmgandhi | 18:6a4db94011d3 | 29 | {PA_0, GPIO_A, SYS_GPA_MFPL_PA0MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 30 | {PA_1, GPIO_A, SYS_GPA_MFPL_PA1MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 31 | {PA_2, GPIO_A, SYS_GPA_MFPL_PA2MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 32 | {PA_3, GPIO_A, SYS_GPA_MFPL_PA3MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 33 | {PA_4, GPIO_A, SYS_GPA_MFPL_PA4MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 34 | {PA_5, GPIO_A, SYS_GPA_MFPL_PA5MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 35 | {PA_6, GPIO_A, SYS_GPA_MFPL_PA6MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 36 | {PA_7, GPIO_A, SYS_GPA_MFPL_PA7MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 37 | // GPIO A MFPH |
sahilmgandhi | 18:6a4db94011d3 | 38 | {PA_8, GPIO_A, SYS_GPA_MFPH_PA8MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 39 | {PA_9, GPIO_A, SYS_GPA_MFPH_PA9MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 40 | {PA_10, GPIO_A, SYS_GPA_MFPH_PA10MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 41 | {PA_11, GPIO_A, SYS_GPA_MFPH_PA11MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 42 | {PA_12, GPIO_A, SYS_GPA_MFPH_PA12MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 43 | {PA_13, GPIO_A, SYS_GPA_MFPH_PA13MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 44 | {PA_14, GPIO_A, SYS_GPA_MFPH_PA14MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 45 | {PA_15, GPIO_A, SYS_GPA_MFPH_PA15MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 46 | |
sahilmgandhi | 18:6a4db94011d3 | 47 | // GPIO B MFPL |
sahilmgandhi | 18:6a4db94011d3 | 48 | {PB_0, GPIO_B, SYS_GPB_MFPL_PB0MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 49 | {PB_1, GPIO_B, SYS_GPB_MFPL_PB1MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 50 | {PB_2, GPIO_B, SYS_GPB_MFPL_PB2MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 51 | {PB_3, GPIO_B, SYS_GPB_MFPL_PB3MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 52 | {PB_4, GPIO_B, SYS_GPB_MFPL_PB4MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 53 | {PB_5, GPIO_B, SYS_GPB_MFPL_PB5MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 54 | {PB_6, GPIO_B, SYS_GPB_MFPL_PB6MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 55 | {PB_7, GPIO_B, SYS_GPB_MFPL_PB7MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 56 | // GPIO B MFPH |
sahilmgandhi | 18:6a4db94011d3 | 57 | {PB_8, GPIO_B, SYS_GPB_MFPH_PB8MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 58 | {PB_9, GPIO_B, SYS_GPB_MFPH_PB9MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 59 | {PB_10, GPIO_B, SYS_GPB_MFPH_PB10MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 60 | {PB_11, GPIO_B, SYS_GPB_MFPH_PB11MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 61 | {PB_12, GPIO_B, SYS_GPB_MFPH_PB12MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 62 | {PB_13, GPIO_B, SYS_GPB_MFPH_PB13MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 63 | {PB_14, GPIO_B, SYS_GPB_MFPH_PB14MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 64 | {PB_15, GPIO_B, SYS_GPB_MFPH_PB15MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 65 | |
sahilmgandhi | 18:6a4db94011d3 | 66 | // GPIO C MFPL |
sahilmgandhi | 18:6a4db94011d3 | 67 | {PC_0, GPIO_C, SYS_GPC_MFPL_PC0MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 68 | {PC_1, GPIO_C, SYS_GPC_MFPL_PC1MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 69 | {PC_2, GPIO_C, SYS_GPC_MFPL_PC2MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 70 | {PC_3, GPIO_C, SYS_GPC_MFPL_PC3MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 71 | {PC_4, GPIO_C, SYS_GPC_MFPL_PC4MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 72 | {PC_5, GPIO_C, SYS_GPC_MFPL_PC5MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 73 | {PC_6, GPIO_C, SYS_GPC_MFPL_PC6MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 74 | {PC_7, GPIO_C, SYS_GPC_MFPL_PC7MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 75 | // GPIO C MFPH |
sahilmgandhi | 18:6a4db94011d3 | 76 | {PC_8, GPIO_C, SYS_GPC_MFPH_PC8MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 77 | {PC_9, GPIO_C, SYS_GPC_MFPH_PC9MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 78 | {PC_10, GPIO_C, SYS_GPC_MFPH_PC10MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 79 | {PC_11, GPIO_C, SYS_GPC_MFPH_PC11MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 80 | {PC_12, GPIO_C, SYS_GPC_MFPH_PC12MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 81 | {PC_13, GPIO_C, SYS_GPC_MFPH_PC13MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 82 | {PC_14, GPIO_C, SYS_GPC_MFPH_PC14MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 83 | {PC_15, GPIO_C, SYS_GPC_MFPH_PC15MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 84 | |
sahilmgandhi | 18:6a4db94011d3 | 85 | // GPIO D MFPL |
sahilmgandhi | 18:6a4db94011d3 | 86 | {PD_0, GPIO_D, SYS_GPD_MFPL_PD0MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 87 | {PD_1, GPIO_D, SYS_GPD_MFPL_PD1MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 88 | {PD_2, GPIO_D, SYS_GPD_MFPL_PD2MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 89 | {PD_3, GPIO_D, SYS_GPD_MFPL_PD3MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 90 | {PD_4, GPIO_D, SYS_GPD_MFPL_PD4MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 91 | {PD_5, GPIO_D, SYS_GPD_MFPL_PD5MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 92 | {PD_6, GPIO_D, SYS_GPD_MFPL_PD6MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 93 | {PD_7, GPIO_D, SYS_GPD_MFPL_PD7MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 94 | // GPIO D MFPH |
sahilmgandhi | 18:6a4db94011d3 | 95 | {PD_8, GPIO_D, SYS_GPD_MFPH_PD8MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 96 | {PD_9, GPIO_D, SYS_GPD_MFPH_PD9MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 97 | {PD_10, GPIO_D, SYS_GPD_MFPH_PD10MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 98 | {PD_11, GPIO_D, SYS_GPD_MFPH_PD11MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 99 | {PD_12, GPIO_D, SYS_GPD_MFPH_PD12MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 100 | {PD_13, GPIO_D, SYS_GPD_MFPH_PD13MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 101 | {PD_14, GPIO_D, SYS_GPD_MFPH_PD14MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 102 | {PD_15, GPIO_D, SYS_GPD_MFPH_PD15MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 103 | |
sahilmgandhi | 18:6a4db94011d3 | 104 | // GPIO E MFPL |
sahilmgandhi | 18:6a4db94011d3 | 105 | {PE_0, GPIO_E, SYS_GPE_MFPL_PE0MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 106 | {PE_1, GPIO_E, SYS_GPE_MFPL_PE1MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 107 | {PE_2, GPIO_E, SYS_GPE_MFPL_PE2MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 108 | {PE_3, GPIO_E, SYS_GPE_MFPL_PE3MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 109 | {PE_4, GPIO_E, SYS_GPE_MFPL_PE4MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 110 | {PE_5, GPIO_E, SYS_GPE_MFPL_PE5MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 111 | {PE_6, GPIO_E, SYS_GPE_MFPL_PE6MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 112 | {PE_7, GPIO_E, SYS_GPE_MFPL_PE7MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 113 | // GPIO E MFPH |
sahilmgandhi | 18:6a4db94011d3 | 114 | {PE_8, GPIO_E, SYS_GPE_MFPH_PE8MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 115 | {PE_9, GPIO_E, SYS_GPE_MFPH_PE9MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 116 | {PE_10, GPIO_E, SYS_GPE_MFPH_PE10MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 117 | {PE_11, GPIO_E, SYS_GPE_MFPH_PE11MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 118 | {PE_12, GPIO_E, SYS_GPE_MFPH_PE12MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 119 | {PE_13, GPIO_E, SYS_GPE_MFPH_PE13MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 120 | {PE_14, GPIO_E, SYS_GPE_MFPH_PE14MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 121 | |
sahilmgandhi | 18:6a4db94011d3 | 122 | // GPIO F MFPL |
sahilmgandhi | 18:6a4db94011d3 | 123 | {PF_0, GPIO_F, SYS_GPF_MFPL_PF0MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 124 | {PF_1, GPIO_F, SYS_GPF_MFPL_PF1MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 125 | {PF_2, GPIO_F, SYS_GPF_MFPL_PF2MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 126 | {PF_3, GPIO_F, SYS_GPF_MFPL_PF3MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 127 | {PF_4, GPIO_F, SYS_GPF_MFPL_PF4MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 128 | {PF_5, GPIO_F, SYS_GPF_MFPL_PF5MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 129 | {PF_6, GPIO_F, SYS_GPF_MFPL_PF6MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 130 | {PF_7, GPIO_F, SYS_GPF_MFPL_PF7MFP_GPIO}, |
sahilmgandhi | 18:6a4db94011d3 | 131 | }; |
sahilmgandhi | 18:6a4db94011d3 | 132 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 133 | |
sahilmgandhi | 18:6a4db94011d3 | 134 | //*** ADC *** |
sahilmgandhi | 18:6a4db94011d3 | 135 | |
sahilmgandhi | 18:6a4db94011d3 | 136 | const PinMap PinMap_ADC[] = { |
sahilmgandhi | 18:6a4db94011d3 | 137 | {PB_0, ADC_0_0, SYS_GPB_MFPL_PB0MFP_EADC_CH0}, |
sahilmgandhi | 18:6a4db94011d3 | 138 | {PB_1, ADC_0_1, SYS_GPB_MFPL_PB1MFP_EADC_CH1}, |
sahilmgandhi | 18:6a4db94011d3 | 139 | {PB_2, ADC_0_2, SYS_GPB_MFPL_PB2MFP_EADC_CH2}, |
sahilmgandhi | 18:6a4db94011d3 | 140 | {PB_3, ADC_0_3, SYS_GPB_MFPL_PB3MFP_EADC_CH3}, |
sahilmgandhi | 18:6a4db94011d3 | 141 | {PB_4, ADC_0_4, SYS_GPB_MFPL_PB4MFP_EADC_CH4}, |
sahilmgandhi | 18:6a4db94011d3 | 142 | {PB_5, ADC_0_13, SYS_GPB_MFPL_PB5MFP_EADC_CH13}, |
sahilmgandhi | 18:6a4db94011d3 | 143 | {PB_6, ADC_0_14, SYS_GPB_MFPL_PB6MFP_EADC_CH14}, |
sahilmgandhi | 18:6a4db94011d3 | 144 | {PB_7, ADC_0_15, SYS_GPB_MFPL_PB7MFP_EADC_CH15}, |
sahilmgandhi | 18:6a4db94011d3 | 145 | {PB_8, ADC_0_5, SYS_GPB_MFPH_PB8MFP_EADC_CH5}, |
sahilmgandhi | 18:6a4db94011d3 | 146 | {PB_9, ADC_0_6, SYS_GPB_MFPH_PB9MFP_EADC_CH6}, |
sahilmgandhi | 18:6a4db94011d3 | 147 | {PB_10, ADC_0_7, SYS_GPB_MFPH_PB10MFP_EADC_CH7}, |
sahilmgandhi | 18:6a4db94011d3 | 148 | {PB_11, ADC_0_8, SYS_GPB_MFPH_PB11MFP_EADC_CH8}, |
sahilmgandhi | 18:6a4db94011d3 | 149 | {PB_12, ADC_0_9, SYS_GPB_MFPH_PB12MFP_EADC_CH9}, |
sahilmgandhi | 18:6a4db94011d3 | 150 | {PB_13, ADC_0_10, SYS_GPB_MFPH_PB13MFP_EADC_CH10}, |
sahilmgandhi | 18:6a4db94011d3 | 151 | {PB_14, ADC_0_11, SYS_GPB_MFPH_PB14MFP_EADC_CH11}, |
sahilmgandhi | 18:6a4db94011d3 | 152 | {PB_15, ADC_0_12, SYS_GPB_MFPH_PB15MFP_EADC_CH12}, |
sahilmgandhi | 18:6a4db94011d3 | 153 | {PD_0, ADC_0_6, SYS_GPD_MFPL_PD0MFP_EADC_CH6}, |
sahilmgandhi | 18:6a4db94011d3 | 154 | {PD_1, ADC_0_11, SYS_GPD_MFPL_PD1MFP_EADC_CH11}, |
sahilmgandhi | 18:6a4db94011d3 | 155 | {PD_8, ADC_0_7, SYS_GPD_MFPH_PD8MFP_EADC_CH7}, |
sahilmgandhi | 18:6a4db94011d3 | 156 | {PD_9, ADC_0_10, SYS_GPD_MFPH_PD9MFP_EADC_CH10}, |
sahilmgandhi | 18:6a4db94011d3 | 157 | |
sahilmgandhi | 18:6a4db94011d3 | 158 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 159 | }; |
sahilmgandhi | 18:6a4db94011d3 | 160 | |
sahilmgandhi | 18:6a4db94011d3 | 161 | //*** I2C *** |
sahilmgandhi | 18:6a4db94011d3 | 162 | |
sahilmgandhi | 18:6a4db94011d3 | 163 | const PinMap PinMap_I2C_SDA[] = { |
sahilmgandhi | 18:6a4db94011d3 | 164 | {PA_2, I2C_0, SYS_GPA_MFPL_PA2MFP_I2C0_SDA}, |
sahilmgandhi | 18:6a4db94011d3 | 165 | {PD_4, I2C_0, SYS_GPD_MFPL_PD4MFP_I2C0_SDA}, |
sahilmgandhi | 18:6a4db94011d3 | 166 | {PE_0, I2C_1, SYS_GPE_MFPL_PE0MFP_I2C1_SDA}, |
sahilmgandhi | 18:6a4db94011d3 | 167 | {PE_5, I2C_1, SYS_GPE_MFPL_PE5MFP_I2C1_SDA}, |
sahilmgandhi | 18:6a4db94011d3 | 168 | {PE_9, I2C_1, SYS_GPE_MFPH_PE9MFP_I2C1_SDA}, |
sahilmgandhi | 18:6a4db94011d3 | 169 | {PE_11, I2C_1, SYS_GPE_MFPH_PE11MFP_I2C1_SDA}, |
sahilmgandhi | 18:6a4db94011d3 | 170 | {PE_13, I2C_0, SYS_GPE_MFPH_PE13MFP_I2C0_SDA}, |
sahilmgandhi | 18:6a4db94011d3 | 171 | {PF_4, I2C_1, SYS_GPF_MFPL_PF4MFP_I2C1_SDA}, |
sahilmgandhi | 18:6a4db94011d3 | 172 | |
sahilmgandhi | 18:6a4db94011d3 | 173 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 174 | }; |
sahilmgandhi | 18:6a4db94011d3 | 175 | |
sahilmgandhi | 18:6a4db94011d3 | 176 | const PinMap PinMap_I2C_SCL[] = { |
sahilmgandhi | 18:6a4db94011d3 | 177 | {PA_3, I2C_0, SYS_GPA_MFPL_PA3MFP_I2C0_SCL}, |
sahilmgandhi | 18:6a4db94011d3 | 178 | {PC_4, I2C_1, SYS_GPC_MFPL_PC4MFP_I2C1_SCL}, |
sahilmgandhi | 18:6a4db94011d3 | 179 | {PD_5, I2C_0, SYS_GPD_MFPL_PD5MFP_I2C0_SCL}, |
sahilmgandhi | 18:6a4db94011d3 | 180 | {PE_4, I2C_1, SYS_GPE_MFPL_PE4MFP_I2C1_SCL}, |
sahilmgandhi | 18:6a4db94011d3 | 181 | {PE_8, I2C_1, SYS_GPE_MFPH_PE8MFP_I2C1_SCL}, |
sahilmgandhi | 18:6a4db94011d3 | 182 | {PE_10, I2C_1, SYS_GPE_MFPH_PE10MFP_I2C1_SCL}, |
sahilmgandhi | 18:6a4db94011d3 | 183 | {PE_12, I2C_0, SYS_GPE_MFPH_PE12MFP_I2C0_SCL}, |
sahilmgandhi | 18:6a4db94011d3 | 184 | {PF_3, I2C_1, SYS_GPF_MFPL_PF3MFP_I2C1_SCL}, |
sahilmgandhi | 18:6a4db94011d3 | 185 | |
sahilmgandhi | 18:6a4db94011d3 | 186 | |
sahilmgandhi | 18:6a4db94011d3 | 187 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 188 | }; |
sahilmgandhi | 18:6a4db94011d3 | 189 | |
sahilmgandhi | 18:6a4db94011d3 | 190 | //*** PWM *** |
sahilmgandhi | 18:6a4db94011d3 | 191 | |
sahilmgandhi | 18:6a4db94011d3 | 192 | const PinMap PinMap_PWM[] = { |
sahilmgandhi | 18:6a4db94011d3 | 193 | {PA_0, PWM_1_5, SYS_GPA_MFPL_PA0MFP_PWM1_CH5}, |
sahilmgandhi | 18:6a4db94011d3 | 194 | {PA_1, PWM_1_4, SYS_GPA_MFPL_PA1MFP_PWM1_CH4}, |
sahilmgandhi | 18:6a4db94011d3 | 195 | {PA_2, PWM_1_3, SYS_GPA_MFPL_PA2MFP_PWM1_CH3}, |
sahilmgandhi | 18:6a4db94011d3 | 196 | {PA_3, PWM_1_2, SYS_GPA_MFPL_PA3MFP_PWM1_CH2}, |
sahilmgandhi | 18:6a4db94011d3 | 197 | {PB_8, PWM_0_2, SYS_GPB_MFPH_PB8MFP_PWM0_CH2}, |
sahilmgandhi | 18:6a4db94011d3 | 198 | {PC_0, PWM_0_0, SYS_GPC_MFPL_PC0MFP_PWM0_CH0}, |
sahilmgandhi | 18:6a4db94011d3 | 199 | {PC_1, PWM_0_1, SYS_GPC_MFPL_PC1MFP_PWM0_CH1}, |
sahilmgandhi | 18:6a4db94011d3 | 200 | {PC_2, PWM_0_2, SYS_GPC_MFPL_PC2MFP_PWM0_CH2}, |
sahilmgandhi | 18:6a4db94011d3 | 201 | {PC_3, PWM_0_3, SYS_GPC_MFPL_PC3MFP_PWM0_CH3}, |
sahilmgandhi | 18:6a4db94011d3 | 202 | {PC_4, PWM_0_4, SYS_GPC_MFPL_PC4MFP_PWM0_CH4}, |
sahilmgandhi | 18:6a4db94011d3 | 203 | {PC_5, PWM_0_5, SYS_GPC_MFPL_PC5MFP_PWM0_CH5}, |
sahilmgandhi | 18:6a4db94011d3 | 204 | {PC_6, PWM_1_0, SYS_GPC_MFPL_PC6MFP_PWM1_CH0}, |
sahilmgandhi | 18:6a4db94011d3 | 205 | {PC_7, PWM_1_1, SYS_GPC_MFPL_PC7MFP_PWM1_CH1}, |
sahilmgandhi | 18:6a4db94011d3 | 206 | {PC_9, PWM_1_0, SYS_GPC_MFPH_PC9MFP_PWM1_CH0}, |
sahilmgandhi | 18:6a4db94011d3 | 207 | {PC_10, PWM_1_1, SYS_GPC_MFPH_PC10MFP_PWM1_CH1}, |
sahilmgandhi | 18:6a4db94011d3 | 208 | {PC_11, PWM_1_2, SYS_GPC_MFPH_PC11MFP_PWM1_CH2}, |
sahilmgandhi | 18:6a4db94011d3 | 209 | {PC_12, PWM_1_3, SYS_GPC_MFPH_PC12MFP_PWM1_CH3}, |
sahilmgandhi | 18:6a4db94011d3 | 210 | {PC_13, PWM_1_4, SYS_GPC_MFPH_PC13MFP_PWM1_CH4}, |
sahilmgandhi | 18:6a4db94011d3 | 211 | {PC_14, PWM_1_5, SYS_GPC_MFPH_PC14MFP_PWM1_CH5}, |
sahilmgandhi | 18:6a4db94011d3 | 212 | {PC_15, PWM_1_0, SYS_GPC_MFPH_PC15MFP_PWM1_CH0}, |
sahilmgandhi | 18:6a4db94011d3 | 213 | {PD_6, PWM_0_5, SYS_GPD_MFPL_PD6MFP_PWM0_CH5}, |
sahilmgandhi | 18:6a4db94011d3 | 214 | {PD_7, PWM_0_5, SYS_GPD_MFPL_PD7MFP_PWM0_CH5}, |
sahilmgandhi | 18:6a4db94011d3 | 215 | {PD_12, PWM_1_0, SYS_GPD_MFPH_PD12MFP_PWM1_CH0}, |
sahilmgandhi | 18:6a4db94011d3 | 216 | {PD_13, PWM_1_1, SYS_GPD_MFPH_PD13MFP_PWM1_CH1}, |
sahilmgandhi | 18:6a4db94011d3 | 217 | {PD_14, PWM_1_2, SYS_GPD_MFPH_PD14MFP_PWM1_CH2}, |
sahilmgandhi | 18:6a4db94011d3 | 218 | {PD_15, PWM_1_3, SYS_GPD_MFPH_PD15MFP_PWM1_CH3}, |
sahilmgandhi | 18:6a4db94011d3 | 219 | {PE_0, PWM_0_0, SYS_GPE_MFPL_PE0MFP_PWM0_CH0}, |
sahilmgandhi | 18:6a4db94011d3 | 220 | {PE_1, PWM_0_1, SYS_GPE_MFPL_PE1MFP_PWM0_CH1}, |
sahilmgandhi | 18:6a4db94011d3 | 221 | {PE_2, PWM_1_1, SYS_GPE_MFPL_PE2MFP_PWM1_CH1}, |
sahilmgandhi | 18:6a4db94011d3 | 222 | {PE_3, PWM_0_3, SYS_GPE_MFPL_PE3MFP_PWM0_CH3}, |
sahilmgandhi | 18:6a4db94011d3 | 223 | |
sahilmgandhi | 18:6a4db94011d3 | 224 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 225 | }; |
sahilmgandhi | 18:6a4db94011d3 | 226 | |
sahilmgandhi | 18:6a4db94011d3 | 227 | //*** SERIAL *** |
sahilmgandhi | 18:6a4db94011d3 | 228 | |
sahilmgandhi | 18:6a4db94011d3 | 229 | const PinMap PinMap_UART_TX[] = { |
sahilmgandhi | 18:6a4db94011d3 | 230 | {PA_0, UART_1, SYS_GPA_MFPL_PA0MFP_UART1_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 231 | {PA_2, UART_0, SYS_GPA_MFPL_PA2MFP_UART0_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 232 | {PA_8, UART_3, SYS_GPA_MFPH_PA8MFP_UART3_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 233 | {PB_1, UART_2, SYS_GPB_MFPL_PB1MFP_UART2_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 234 | {PB_3, UART_1, SYS_GPB_MFPL_PB3MFP_UART1_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 235 | {PB_3, UART_3, SYS_GPB_MFPL_PB3MFP_UART3_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 236 | {PB_4, UART_2, SYS_GPB_MFPL_PB4MFP_UART2_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 237 | {PC_0, UART_3, SYS_GPC_MFPL_PC0MFP_UART3_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 238 | {PC_2, UART_2, SYS_GPC_MFPL_PC2MFP_UART2_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 239 | {PC_6, UART_0, SYS_GPC_MFPL_PC6MFP_UART0_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 240 | {PD_1, UART_0, SYS_GPD_MFPL_PD1MFP_UART0_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 241 | {PD_12, UART_3, SYS_GPD_MFPH_PD12MFP_UART3_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 242 | {PE_8, UART_1, SYS_GPE_MFPH_PE8MFP_UART1_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 243 | {PE_10, UART_3, SYS_GPE_MFPH_PE10MFP_UART3_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 244 | {PE_12, UART_1, SYS_GPE_MFPH_PE12MFP_UART1_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 245 | |
sahilmgandhi | 18:6a4db94011d3 | 246 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 247 | }; |
sahilmgandhi | 18:6a4db94011d3 | 248 | |
sahilmgandhi | 18:6a4db94011d3 | 249 | const PinMap PinMap_UART_RX[] = { |
sahilmgandhi | 18:6a4db94011d3 | 250 | {PA_1, UART_1, SYS_GPA_MFPL_PA1MFP_UART1_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 251 | {PA_3, UART_0, SYS_GPA_MFPL_PA3MFP_UART0_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 252 | {PA_9, UART_3, SYS_GPA_MFPH_PA9MFP_UART3_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 253 | {PB_0, UART_2, SYS_GPB_MFPL_PB0MFP_UART2_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 254 | {PB_2, UART_1, SYS_GPB_MFPL_PB2MFP_UART1_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 255 | {PB_2, UART_3, SYS_GPB_MFPL_PB2MFP_UART3_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 256 | {PB_5, UART_2, SYS_GPB_MFPL_PB5MFP_UART2_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 257 | {PC_1, UART_3, SYS_GPC_MFPL_PC1MFP_UART3_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 258 | {PC_3, UART_2, SYS_GPC_MFPL_PC3MFP_UART2_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 259 | {PC_7, UART_0, (int) SYS_GPC_MFPL_PC7MFP_UART0_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 260 | {PD_0, UART_0, SYS_GPD_MFPL_PD0MFP_UART0_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 261 | {PD_6, UART_0, SYS_GPD_MFPL_PD6MFP_UART0_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 262 | {PD_13, UART_3, SYS_GPD_MFPH_PD13MFP_UART3_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 263 | {PE_9, UART_1, SYS_GPE_MFPH_PE9MFP_UART1_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 264 | {PE_11, UART_3, SYS_GPE_MFPH_PE11MFP_UART3_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 265 | {PE_13, UART_1, SYS_GPE_MFPH_PE13MFP_UART1_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 266 | |
sahilmgandhi | 18:6a4db94011d3 | 267 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 268 | }; |
sahilmgandhi | 18:6a4db94011d3 | 269 | |
sahilmgandhi | 18:6a4db94011d3 | 270 | const PinMap PinMap_UART_RTS[] = { |
sahilmgandhi | 18:6a4db94011d3 | 271 | {PA_1, UART_1, SYS_GPA_MFPL_PA1MFP_UART1_nRTS}, |
sahilmgandhi | 18:6a4db94011d3 | 272 | {PA_3, UART_0, SYS_GPA_MFPL_PA3MFP_UART0_nRTS}, |
sahilmgandhi | 18:6a4db94011d3 | 273 | {PA_11, UART_3, SYS_GPA_MFPH_PA11MFP_UART3_nRTS}, |
sahilmgandhi | 18:6a4db94011d3 | 274 | {PA_15, UART_2, SYS_GPA_MFPH_PA15MFP_UART2_nRTS}, |
sahilmgandhi | 18:6a4db94011d3 | 275 | {PB_8, UART_1, SYS_GPB_MFPH_PB8MFP_UART1_nRTS}, |
sahilmgandhi | 18:6a4db94011d3 | 276 | {PC_1, UART_2, SYS_GPC_MFPL_PC1MFP_UART2_nRTS}, |
sahilmgandhi | 18:6a4db94011d3 | 277 | {PD_15, UART_3, SYS_GPD_MFPH_PD15MFP_UART3_nRTS}, |
sahilmgandhi | 18:6a4db94011d3 | 278 | {PE_11, UART_1, SYS_GPE_MFPH_PE11MFP_UART1_nRTS}, |
sahilmgandhi | 18:6a4db94011d3 | 279 | |
sahilmgandhi | 18:6a4db94011d3 | 280 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 281 | }; |
sahilmgandhi | 18:6a4db94011d3 | 282 | |
sahilmgandhi | 18:6a4db94011d3 | 283 | const PinMap PinMap_UART_CTS[] = { |
sahilmgandhi | 18:6a4db94011d3 | 284 | {PA_0, UART_1, SYS_GPA_MFPL_PA0MFP_UART1_nCTS}, |
sahilmgandhi | 18:6a4db94011d3 | 285 | {PA_2, UART_0, SYS_GPA_MFPL_PA2MFP_UART0_nCTS}, |
sahilmgandhi | 18:6a4db94011d3 | 286 | {PA_10, UART_3, SYS_GPA_MFPH_PA10MFP_UART3_nCTS}, |
sahilmgandhi | 18:6a4db94011d3 | 287 | {PA_14, UART_2, SYS_GPA_MFPH_PA14MFP_UART2_nCTS}, |
sahilmgandhi | 18:6a4db94011d3 | 288 | {PB_4, UART_1, SYS_GPB_MFPL_PB4MFP_UART1_nCTS}, |
sahilmgandhi | 18:6a4db94011d3 | 289 | {PC_0, UART_2, SYS_GPC_MFPL_PC0MFP_UART2_nCTS}, |
sahilmgandhi | 18:6a4db94011d3 | 290 | {PD_14, UART_3, SYS_GPD_MFPH_PD14MFP_UART3_nCTS}, |
sahilmgandhi | 18:6a4db94011d3 | 291 | {PE_10, UART_1, SYS_GPE_MFPH_PE10MFP_UART1_nCTS}, |
sahilmgandhi | 18:6a4db94011d3 | 292 | |
sahilmgandhi | 18:6a4db94011d3 | 293 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 294 | }; |
sahilmgandhi | 18:6a4db94011d3 | 295 | |
sahilmgandhi | 18:6a4db94011d3 | 296 | //*** SPI *** |
sahilmgandhi | 18:6a4db94011d3 | 297 | |
sahilmgandhi | 18:6a4db94011d3 | 298 | const PinMap PinMap_SPI_MOSI[] = { |
sahilmgandhi | 18:6a4db94011d3 | 299 | {PA_5, SPI_1, SYS_GPA_MFPL_PA5MFP_SPI1_MOSI}, |
sahilmgandhi | 18:6a4db94011d3 | 300 | {PB_5, SPI_0, SYS_GPB_MFPL_PB5MFP_SPI0_MOSI0}, |
sahilmgandhi | 18:6a4db94011d3 | 301 | {PB_5, SPI_1, SYS_GPB_MFPL_PB5MFP_SPI1_MOSI}, |
sahilmgandhi | 18:6a4db94011d3 | 302 | {PC_3, SPI_2, SYS_GPC_MFPL_PC3MFP_SPI2_MOSI}, |
sahilmgandhi | 18:6a4db94011d3 | 303 | {PC_10, SPI_2, SYS_GPC_MFPH_PC10MFP_SPI2_MOSI}, |
sahilmgandhi | 18:6a4db94011d3 | 304 | {PD_13, SPI_2, SYS_GPD_MFPH_PD13MFP_SPI2_MOSI}, |
sahilmgandhi | 18:6a4db94011d3 | 305 | {PE_3, SPI_1, SYS_GPE_MFPL_PE3MFP_SPI1_MOSI}, |
sahilmgandhi | 18:6a4db94011d3 | 306 | {PE_11, SPI_1, SYS_GPE_MFPH_PE11MFP_SPI1_MOSI}, |
sahilmgandhi | 18:6a4db94011d3 | 307 | {PE_11, SPI_0, SYS_GPE_MFPH_PE11MFP_SPI0_MOSI0}, |
sahilmgandhi | 18:6a4db94011d3 | 308 | |
sahilmgandhi | 18:6a4db94011d3 | 309 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 310 | }; |
sahilmgandhi | 18:6a4db94011d3 | 311 | |
sahilmgandhi | 18:6a4db94011d3 | 312 | const PinMap PinMap_SPI_MISO[] = { |
sahilmgandhi | 18:6a4db94011d3 | 313 | {PA_6, SPI_1, SYS_GPA_MFPL_PA6MFP_SPI1_MISO}, |
sahilmgandhi | 18:6a4db94011d3 | 314 | {PB_3, SPI_0, SYS_GPB_MFPL_PB3MFP_SPI0_MISO0}, |
sahilmgandhi | 18:6a4db94011d3 | 315 | {PB_3, SPI_1, SYS_GPB_MFPL_PB3MFP_SPI1_MISO}, |
sahilmgandhi | 18:6a4db94011d3 | 316 | {PB_6, SPI_0, SYS_GPB_MFPL_PB6MFP_SPI0_MISO0}, |
sahilmgandhi | 18:6a4db94011d3 | 317 | {PB_6, SPI_1, SYS_GPB_MFPL_PB6MFP_SPI1_MISO}, |
sahilmgandhi | 18:6a4db94011d3 | 318 | {PC_4, SPI_2, SYS_GPC_MFPL_PC4MFP_SPI2_MISO}, |
sahilmgandhi | 18:6a4db94011d3 | 319 | {PC_11, SPI_2, SYS_GPC_MFPH_PC11MFP_SPI2_MISO}, |
sahilmgandhi | 18:6a4db94011d3 | 320 | {PD_5, SPI_1, SYS_GPD_MFPL_PD5MFP_SPI1_MISO}, |
sahilmgandhi | 18:6a4db94011d3 | 321 | {PD_14, SPI_2, SYS_GPD_MFPH_PD14MFP_SPI2_MISO}, |
sahilmgandhi | 18:6a4db94011d3 | 322 | {PE_10, SPI_1, SYS_GPE_MFPH_PE10MFP_SPI1_MISO}, |
sahilmgandhi | 18:6a4db94011d3 | 323 | {PE_10, SPI_0, SYS_GPE_MFPH_PE10MFP_SPI0_MISO0}, |
sahilmgandhi | 18:6a4db94011d3 | 324 | |
sahilmgandhi | 18:6a4db94011d3 | 325 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 326 | }; |
sahilmgandhi | 18:6a4db94011d3 | 327 | |
sahilmgandhi | 18:6a4db94011d3 | 328 | const PinMap PinMap_SPI_SCLK[] = { |
sahilmgandhi | 18:6a4db94011d3 | 329 | {PA_7, SPI_1, SYS_GPA_MFPL_PA7MFP_SPI1_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 330 | {PB_2, SPI_0, SYS_GPB_MFPL_PB2MFP_SPI0_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 331 | {PB_2, SPI_1, SYS_GPB_MFPL_PB2MFP_SPI1_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 332 | {PB_7, SPI_0, SYS_GPB_MFPL_PB7MFP_SPI0_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 333 | {PB_7, SPI_1, SYS_GPB_MFPL_PB7MFP_SPI1_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 334 | {PC_0, SPI_2, SYS_GPC_MFPL_PC0MFP_SPI2_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 335 | {PC_12, SPI_2, SYS_GPC_MFPH_PC12MFP_SPI2_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 336 | {PD_4, SPI_1, SYS_GPD_MFPL_PD4MFP_SPI1_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 337 | {PD_15, SPI_2, SYS_GPD_MFPH_PD15MFP_SPI2_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 338 | {PE_0, SPI_2, SYS_GPE_MFPL_PE0MFP_SPI2_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 339 | {PE_13, SPI_1, SYS_GPE_MFPH_PE13MFP_SPI1_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 340 | {PE_13, SPI_0, SYS_GPE_MFPH_PE13MFP_SPI0_CLK}, |
sahilmgandhi | 18:6a4db94011d3 | 341 | |
sahilmgandhi | 18:6a4db94011d3 | 342 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 343 | }; |
sahilmgandhi | 18:6a4db94011d3 | 344 | |
sahilmgandhi | 18:6a4db94011d3 | 345 | const PinMap PinMap_SPI_SSEL[] = { |
sahilmgandhi | 18:6a4db94011d3 | 346 | {PA_4, SPI_1, SYS_GPA_MFPL_PA4MFP_SPI1_SS}, |
sahilmgandhi | 18:6a4db94011d3 | 347 | {PB_4, SPI_0, SYS_GPB_MFPL_PB4MFP_SPI0_SS}, |
sahilmgandhi | 18:6a4db94011d3 | 348 | {PB_4, SPI_1, SYS_GPB_MFPL_PB4MFP_SPI1_SS}, |
sahilmgandhi | 18:6a4db94011d3 | 349 | {PC_2, SPI_2, SYS_GPC_MFPL_PC2MFP_SPI2_SS}, |
sahilmgandhi | 18:6a4db94011d3 | 350 | {PC_13, SPI_2, SYS_GPC_MFPH_PC13MFP_SPI2_SS}, |
sahilmgandhi | 18:6a4db94011d3 | 351 | {PD_6, SPI_1, SYS_GPD_MFPL_PD6MFP_SPI1_SS}, |
sahilmgandhi | 18:6a4db94011d3 | 352 | {PD_12, SPI_2, SYS_GPD_MFPH_PD12MFP_SPI2_SS}, |
sahilmgandhi | 18:6a4db94011d3 | 353 | {PE_12, SPI_1, SYS_GPE_MFPH_PE12MFP_SPI1_SS}, |
sahilmgandhi | 18:6a4db94011d3 | 354 | {PE_12, SPI_0, SYS_GPE_MFPH_PE12MFP_SPI0_SS}, |
sahilmgandhi | 18:6a4db94011d3 | 355 | |
sahilmgandhi | 18:6a4db94011d3 | 356 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 357 | }; |
sahilmgandhi | 18:6a4db94011d3 | 358 | |
sahilmgandhi | 18:6a4db94011d3 | 359 | const PinMap PinMap_CAN_TD[] = { |
sahilmgandhi | 18:6a4db94011d3 | 360 | {PC_0, CAN_0, SYS_GPC_MFPL_PC0MFP_CAN0_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 361 | {PA_1, CAN_0, SYS_GPA_MFPL_PA1MFP_CAN0_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 362 | {PA_12, CAN_0, SYS_GPA_MFPH_PA12MFP_CAN0_TXD}, |
sahilmgandhi | 18:6a4db94011d3 | 363 | |
sahilmgandhi | 18:6a4db94011d3 | 364 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 365 | }; |
sahilmgandhi | 18:6a4db94011d3 | 366 | |
sahilmgandhi | 18:6a4db94011d3 | 367 | const PinMap PinMap_CAN_RD[] = { |
sahilmgandhi | 18:6a4db94011d3 | 368 | {PC_1, CAN_0, SYS_GPC_MFPL_PC1MFP_CAN0_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 369 | {PA_0, CAN_0, SYS_GPA_MFPL_PA0MFP_CAN0_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 370 | {PA_13, CAN_0, SYS_GPA_MFPH_PA13MFP_CAN0_RXD}, |
sahilmgandhi | 18:6a4db94011d3 | 371 | |
sahilmgandhi | 18:6a4db94011d3 | 372 | {NC, NC, 0} |
sahilmgandhi | 18:6a4db94011d3 | 373 | }; |