[11U68]fix P0_11 to use GPIO
Fork of mbed-src by
targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralPins.c@548:1abac31e188e, 2015-05-22 (annotated)
- Committer:
- mbed_official
- Date:
- Fri May 22 10:45:46 2015 +0100
- Revision:
- 548:1abac31e188e
- Parent:
- 525:c320967f86b9
Synchronized with git revision 88d158e43b54f97c5e94da305ea9a096889cc81b
Full URL: https://github.com/mbedmicro/mbed/commit/88d158e43b54f97c5e94da305ea9a096889cc81b/
Silicon Labs - Cosmetic: apply mbed coding style to HAL
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 525:c320967f86b9 | 1 | /* mbed Microcontroller Library |
mbed_official | 525:c320967f86b9 | 2 | * Copyright (c) 2006-2013 ARM Limited |
mbed_official | 525:c320967f86b9 | 3 | * |
mbed_official | 525:c320967f86b9 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 525:c320967f86b9 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 525:c320967f86b9 | 6 | * You may obtain a copy of the License at |
mbed_official | 525:c320967f86b9 | 7 | * |
mbed_official | 525:c320967f86b9 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 525:c320967f86b9 | 9 | * |
mbed_official | 525:c320967f86b9 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 525:c320967f86b9 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 525:c320967f86b9 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 525:c320967f86b9 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 525:c320967f86b9 | 14 | * limitations under the License. |
mbed_official | 525:c320967f86b9 | 15 | */ |
mbed_official | 525:c320967f86b9 | 16 | |
mbed_official | 525:c320967f86b9 | 17 | #include "PeripheralPins.h" |
mbed_official | 525:c320967f86b9 | 18 | |
mbed_official | 525:c320967f86b9 | 19 | /************ADC***************/ |
mbed_official | 525:c320967f86b9 | 20 | const PinMap PinMap_ADC[] = { |
mbed_official | 525:c320967f86b9 | 21 | {PD4, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH4}, |
mbed_official | 525:c320967f86b9 | 22 | {PD5, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH5}, |
mbed_official | 525:c320967f86b9 | 23 | {PD6, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH6}, |
mbed_official | 525:c320967f86b9 | 24 | {PD7, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH7}, |
mbed_official | 525:c320967f86b9 | 25 | {NC , NC , NC} |
mbed_official | 525:c320967f86b9 | 26 | }; |
mbed_official | 525:c320967f86b9 | 27 | |
mbed_official | 525:c320967f86b9 | 28 | /************I2C SCL***********/ |
mbed_official | 525:c320967f86b9 | 29 | const PinMap PinMap_I2C_SCL[] = { |
mbed_official | 525:c320967f86b9 | 30 | /* I2C0 */ |
mbed_official | 525:c320967f86b9 | 31 | {PA1, I2C_0, 0}, |
mbed_official | 525:c320967f86b9 | 32 | {PD7, I2C_0, 1}, |
mbed_official | 525:c320967f86b9 | 33 | {PC1, I2C_0, 4}, |
mbed_official | 525:c320967f86b9 | 34 | {PF1, I2C_0, 5}, |
mbed_official | 525:c320967f86b9 | 35 | {PE13, I2C_0, 6}, |
mbed_official | 525:c320967f86b9 | 36 | |
mbed_official | 525:c320967f86b9 | 37 | /* Not connected */ |
mbed_official | 525:c320967f86b9 | 38 | {NC , NC , NC} |
mbed_official | 525:c320967f86b9 | 39 | }; |
mbed_official | 525:c320967f86b9 | 40 | |
mbed_official | 525:c320967f86b9 | 41 | /************I2C SDA***********/ |
mbed_official | 525:c320967f86b9 | 42 | const PinMap PinMap_I2C_SDA[] = { |
mbed_official | 525:c320967f86b9 | 43 | /* I2C0 */ |
mbed_official | 525:c320967f86b9 | 44 | {PA0, I2C_0, 0}, |
mbed_official | 525:c320967f86b9 | 45 | {PD6, I2C_0, 1}, |
mbed_official | 525:c320967f86b9 | 46 | {PC0, I2C_0, 4}, |
mbed_official | 525:c320967f86b9 | 47 | {PF0, I2C_0, 5}, |
mbed_official | 525:c320967f86b9 | 48 | {PE12, I2C_0, 6}, |
mbed_official | 525:c320967f86b9 | 49 | |
mbed_official | 525:c320967f86b9 | 50 | /* Not connected */ |
mbed_official | 525:c320967f86b9 | 51 | {NC , NC , NC} |
mbed_official | 525:c320967f86b9 | 52 | }; |
mbed_official | 525:c320967f86b9 | 53 | /************PWM***************/ |
mbed_official | 525:c320967f86b9 | 54 | const PinMap PinMap_PWM[] = { |
mbed_official | 525:c320967f86b9 | 55 | {PA0, PWM_CH0, 0}, |
mbed_official | 525:c320967f86b9 | 56 | {PA1, PWM_CH1, 0}, |
mbed_official | 525:c320967f86b9 | 57 | {PA2, PWM_CH2, 0}, |
mbed_official | 525:c320967f86b9 | 58 | {NC , NC , NC} |
mbed_official | 525:c320967f86b9 | 59 | }; |
mbed_official | 525:c320967f86b9 | 60 | |
mbed_official | 525:c320967f86b9 | 61 | /*************SPI**************/ |
mbed_official | 525:c320967f86b9 | 62 | const PinMap PinMap_SPI_MOSI[] = { |
mbed_official | 548:1abac31e188e | 63 | /* USART0 */ |
mbed_official | 548:1abac31e188e | 64 | {PE10, SPI_0, 0}, |
mbed_official | 548:1abac31e188e | 65 | //{NC, SPI_0, 2}, /* SPI_0 loc2 is not bonded */ |
mbed_official | 548:1abac31e188e | 66 | {PE13, SPI_0, 3}, |
mbed_official | 548:1abac31e188e | 67 | {PB7, SPI_0, 4}, |
mbed_official | 548:1abac31e188e | 68 | |
mbed_official | 548:1abac31e188e | 69 | /* USART1 */ |
mbed_official | 548:1abac31e188e | 70 | {PC0, SPI_1, 0}, |
mbed_official | 548:1abac31e188e | 71 | {PD7, SPI_1, 3}, |
mbed_official | 548:1abac31e188e | 72 | {PF2, SPI_1, 4}, |
mbed_official | 548:1abac31e188e | 73 | |
mbed_official | 548:1abac31e188e | 74 | /* Not connected */ |
mbed_official | 548:1abac31e188e | 75 | {NC , NC , NC} |
mbed_official | 525:c320967f86b9 | 76 | }; |
mbed_official | 525:c320967f86b9 | 77 | |
mbed_official | 525:c320967f86b9 | 78 | const PinMap PinMap_SPI_MISO[] = { |
mbed_official | 548:1abac31e188e | 79 | /* USART0 */ |
mbed_official | 548:1abac31e188e | 80 | {PE11, SPI_0, 0}, |
mbed_official | 548:1abac31e188e | 81 | {PC10, SPI_0, 2}, |
mbed_official | 548:1abac31e188e | 82 | {PE12, SPI_0, 3}, |
mbed_official | 548:1abac31e188e | 83 | {PB8, SPI_0, 4}, |
mbed_official | 548:1abac31e188e | 84 | |
mbed_official | 548:1abac31e188e | 85 | /* USART1 */ |
mbed_official | 548:1abac31e188e | 86 | {PC1, SPI_1, 0}, |
mbed_official | 548:1abac31e188e | 87 | {PD6, SPI_1, 3}, |
mbed_official | 548:1abac31e188e | 88 | {PA0, SPI_1, 4}, |
mbed_official | 548:1abac31e188e | 89 | |
mbed_official | 548:1abac31e188e | 90 | /* Not connected */ |
mbed_official | 548:1abac31e188e | 91 | {NC , NC , NC} |
mbed_official | 525:c320967f86b9 | 92 | }; |
mbed_official | 525:c320967f86b9 | 93 | |
mbed_official | 525:c320967f86b9 | 94 | const PinMap PinMap_SPI_CLK[] = { |
mbed_official | 548:1abac31e188e | 95 | /* USART0 */ |
mbed_official | 548:1abac31e188e | 96 | {PE12, SPI_0, 0}, |
mbed_official | 548:1abac31e188e | 97 | {PC9, SPI_0, 2}, |
mbed_official | 548:1abac31e188e | 98 | //{PC15, SPI_0, 3}, /* Conflict with SPI_0 loc4 */ |
mbed_official | 548:1abac31e188e | 99 | {PB13, SPI_0, 4}, |
mbed_official | 548:1abac31e188e | 100 | |
mbed_official | 548:1abac31e188e | 101 | /* USART1 */ |
mbed_official | 548:1abac31e188e | 102 | {PB7, SPI_1, 0}, |
mbed_official | 548:1abac31e188e | 103 | {PC15, SPI_1, 3}, |
mbed_official | 548:1abac31e188e | 104 | {PB11, SPI_1, 4}, |
mbed_official | 548:1abac31e188e | 105 | |
mbed_official | 548:1abac31e188e | 106 | /* Not connected */ |
mbed_official | 548:1abac31e188e | 107 | {NC , NC , NC} |
mbed_official | 525:c320967f86b9 | 108 | }; |
mbed_official | 525:c320967f86b9 | 109 | |
mbed_official | 525:c320967f86b9 | 110 | const PinMap PinMap_SPI_CS[] = { |
mbed_official | 548:1abac31e188e | 111 | /* USART0 */ |
mbed_official | 548:1abac31e188e | 112 | {PE13, SPI_0, 0}, |
mbed_official | 548:1abac31e188e | 113 | {PC8, SPI_0, 2}, |
mbed_official | 548:1abac31e188e | 114 | //{PC14, SPI_0, 3}, /* Conflict with SPI_1 loc3 */ |
mbed_official | 548:1abac31e188e | 115 | {PB14, SPI_0, 4}, |
mbed_official | 548:1abac31e188e | 116 | |
mbed_official | 548:1abac31e188e | 117 | /* USART1 */ |
mbed_official | 548:1abac31e188e | 118 | {PB8, SPI_1, 0}, |
mbed_official | 548:1abac31e188e | 119 | {PC14, SPI_1, 3}, |
mbed_official | 548:1abac31e188e | 120 | |
mbed_official | 548:1abac31e188e | 121 | /* Not connected */ |
mbed_official | 548:1abac31e188e | 122 | {NC , NC , NC} |
mbed_official | 525:c320967f86b9 | 123 | }; |
mbed_official | 525:c320967f86b9 | 124 | |
mbed_official | 525:c320967f86b9 | 125 | /************UART**************/ |
mbed_official | 525:c320967f86b9 | 126 | const PinMap PinMap_UART_TX[] = { |
mbed_official | 548:1abac31e188e | 127 | /* USART0 */ |
mbed_official | 548:1abac31e188e | 128 | {PE10, USART_0, 0}, |
mbed_official | 548:1abac31e188e | 129 | //{NC, USART_0, 2}, /* USART_0 loc2 is not bonded */ |
mbed_official | 548:1abac31e188e | 130 | {PE13, USART_0, 3}, |
mbed_official | 548:1abac31e188e | 131 | {PB7, USART_0, 4}, |
mbed_official | 548:1abac31e188e | 132 | |
mbed_official | 548:1abac31e188e | 133 | /* USART1 */ |
mbed_official | 548:1abac31e188e | 134 | {PC0, USART_1, 0}, |
mbed_official | 548:1abac31e188e | 135 | {PD7, USART_1, 3}, |
mbed_official | 548:1abac31e188e | 136 | {PF2, USART_1, 4}, |
mbed_official | 548:1abac31e188e | 137 | |
mbed_official | 548:1abac31e188e | 138 | /* LEUART0 */ |
mbed_official | 548:1abac31e188e | 139 | {PD4, LEUART_0, 0}, |
mbed_official | 548:1abac31e188e | 140 | {PB13, LEUART_0, 1}, |
mbed_official | 548:1abac31e188e | 141 | {PF0, LEUART_0, 3}, |
mbed_official | 548:1abac31e188e | 142 | {PC14, LEUART_0, 5}, |
mbed_official | 548:1abac31e188e | 143 | |
mbed_official | 548:1abac31e188e | 144 | /* Not connected */ |
mbed_official | 548:1abac31e188e | 145 | {NC , NC , NC} |
mbed_official | 525:c320967f86b9 | 146 | }; |
mbed_official | 525:c320967f86b9 | 147 | |
mbed_official | 525:c320967f86b9 | 148 | const PinMap PinMap_UART_RX[] = { |
mbed_official | 548:1abac31e188e | 149 | /* USART0 */ |
mbed_official | 548:1abac31e188e | 150 | {PE11, USART_0, 0}, |
mbed_official | 548:1abac31e188e | 151 | //{PC10, USART_0, 2}, |
mbed_official | 548:1abac31e188e | 152 | {PE12, USART_0, 3}, |
mbed_official | 548:1abac31e188e | 153 | {PB8, USART_0, 4}, |
mbed_official | 548:1abac31e188e | 154 | |
mbed_official | 548:1abac31e188e | 155 | /* USART1 */ |
mbed_official | 548:1abac31e188e | 156 | {PC1, USART_1, 0}, |
mbed_official | 548:1abac31e188e | 157 | {PD6, USART_1, 3}, |
mbed_official | 548:1abac31e188e | 158 | {PA0, USART_1, 4}, |
mbed_official | 548:1abac31e188e | 159 | |
mbed_official | 548:1abac31e188e | 160 | /* LEUART0 */ |
mbed_official | 548:1abac31e188e | 161 | {PD5, LEUART_0, 0}, |
mbed_official | 548:1abac31e188e | 162 | {PB14, LEUART_0, 1}, |
mbed_official | 548:1abac31e188e | 163 | {PF1, LEUART_0, 3}, |
mbed_official | 548:1abac31e188e | 164 | {PC15, LEUART_0, 5}, |
mbed_official | 548:1abac31e188e | 165 | |
mbed_official | 548:1abac31e188e | 166 | /* Not connected */ |
mbed_official | 548:1abac31e188e | 167 | {NC , NC , NC} |
mbed_official | 525:c320967f86b9 | 168 | }; |