lol
Fork of Application by
mbed-dev/targets/TARGET_ONSEMI/TARGET_NCS36510/PeripheralPins.c@10:41552d038a69, 2017-01-10 (annotated)
- Committer:
- Zaitsev
- Date:
- Tue Jan 10 20:42:26 2017 +0000
- Revision:
- 10:41552d038a69
USB Serial bi-directional bridge
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Zaitsev | 10:41552d038a69 | 1 | /* mbed Microcontroller Library |
Zaitsev | 10:41552d038a69 | 2 | * Copyright (c) 2006-2013 ARM Limited |
Zaitsev | 10:41552d038a69 | 3 | * |
Zaitsev | 10:41552d038a69 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Zaitsev | 10:41552d038a69 | 5 | * you may not use this file except in compliance with the License. |
Zaitsev | 10:41552d038a69 | 6 | * You may obtain a copy of the License at |
Zaitsev | 10:41552d038a69 | 7 | * |
Zaitsev | 10:41552d038a69 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Zaitsev | 10:41552d038a69 | 9 | * |
Zaitsev | 10:41552d038a69 | 10 | * Unless required by applicable law or agreed to in writing, software |
Zaitsev | 10:41552d038a69 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Zaitsev | 10:41552d038a69 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Zaitsev | 10:41552d038a69 | 13 | * See the License for the specific language governing permissions and |
Zaitsev | 10:41552d038a69 | 14 | * limitations under the License. |
Zaitsev | 10:41552d038a69 | 15 | */ |
Zaitsev | 10:41552d038a69 | 16 | |
Zaitsev | 10:41552d038a69 | 17 | /*todo: determine how function argument is used */ |
Zaitsev | 10:41552d038a69 | 18 | |
Zaitsev | 10:41552d038a69 | 19 | #include "PeripheralPins.h" |
Zaitsev | 10:41552d038a69 | 20 | |
Zaitsev | 10:41552d038a69 | 21 | /************ADC***************/ |
Zaitsev | 10:41552d038a69 | 22 | const PinMap PinMap_ADC[] = { |
Zaitsev | 10:41552d038a69 | 23 | {A0, ADC_0, 0}, |
Zaitsev | 10:41552d038a69 | 24 | {A1, ADC_0, 0}, |
Zaitsev | 10:41552d038a69 | 25 | {A2, ADC_0, 0}, |
Zaitsev | 10:41552d038a69 | 26 | {A3, ADC_0, 0}, |
Zaitsev | 10:41552d038a69 | 27 | {NC , NC , 0} |
Zaitsev | 10:41552d038a69 | 28 | }; |
Zaitsev | 10:41552d038a69 | 29 | |
Zaitsev | 10:41552d038a69 | 30 | /************I2C***************/ |
Zaitsev | 10:41552d038a69 | 31 | const PinMap PinMap_I2C_SDA[] = { |
Zaitsev | 10:41552d038a69 | 32 | {GPIO3, I2C_0, 5}, |
Zaitsev | 10:41552d038a69 | 33 | {GPIO4, I2C_0, 5}, |
Zaitsev | 10:41552d038a69 | 34 | {GPIO10, I2C_0, 5}, |
Zaitsev | 10:41552d038a69 | 35 | {GPIO12, I2C_0, 5}, |
Zaitsev | 10:41552d038a69 | 36 | {GPIO15, I2C_1, 5}, |
Zaitsev | 10:41552d038a69 | 37 | {GPIO16, I2C_1, 5}, |
Zaitsev | 10:41552d038a69 | 38 | {NC , NC , 0} |
Zaitsev | 10:41552d038a69 | 39 | }; |
Zaitsev | 10:41552d038a69 | 40 | |
Zaitsev | 10:41552d038a69 | 41 | const PinMap PinMap_I2C_SCL[] = { |
Zaitsev | 10:41552d038a69 | 42 | {GPIO2, I2C_0, 5}, |
Zaitsev | 10:41552d038a69 | 43 | {GPIO5, I2C_0, 5}, |
Zaitsev | 10:41552d038a69 | 44 | {GPIO11, I2C_0, 5}, |
Zaitsev | 10:41552d038a69 | 45 | {GPIO13, I2C_0, 5}, |
Zaitsev | 10:41552d038a69 | 46 | {GPIO14, I2C_1, 5}, |
Zaitsev | 10:41552d038a69 | 47 | {GPIO17, I2C_1, 5}, |
Zaitsev | 10:41552d038a69 | 48 | {NC , NC , 0} |
Zaitsev | 10:41552d038a69 | 49 | }; |
Zaitsev | 10:41552d038a69 | 50 | |
Zaitsev | 10:41552d038a69 | 51 | /************UART***************/ |
Zaitsev | 10:41552d038a69 | 52 | const PinMap PinMap_UART_TX[] = { |
Zaitsev | 10:41552d038a69 | 53 | {GPIO0, UART_0, 7}, |
Zaitsev | 10:41552d038a69 | 54 | {GPIO8, UART_1, 7}, |
Zaitsev | 10:41552d038a69 | 55 | {NC , NC , 0} |
Zaitsev | 10:41552d038a69 | 56 | }; |
Zaitsev | 10:41552d038a69 | 57 | |
Zaitsev | 10:41552d038a69 | 58 | const PinMap PinMap_UART_RX[] = { |
Zaitsev | 10:41552d038a69 | 59 | {GPIO1, UART_0, 7}, |
Zaitsev | 10:41552d038a69 | 60 | {GPIO9, UART_1, 7}, |
Zaitsev | 10:41552d038a69 | 61 | {NC , NC , 0} |
Zaitsev | 10:41552d038a69 | 62 | }; |
Zaitsev | 10:41552d038a69 | 63 | |
Zaitsev | 10:41552d038a69 | 64 | /************SPI***************/ |
Zaitsev | 10:41552d038a69 | 65 | const PinMap PinMap_SPI_SCLK[] = { |
Zaitsev | 10:41552d038a69 | 66 | /*todo: other pins are possible, need to add */ |
Zaitsev | 10:41552d038a69 | 67 | {SPI1_SCLK_2, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 68 | {SPI1_SCLK_3, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 69 | {SPI2_SCLK, SPI_1, 6}, |
Zaitsev | 10:41552d038a69 | 70 | {NC, NC, 0} |
Zaitsev | 10:41552d038a69 | 71 | }; |
Zaitsev | 10:41552d038a69 | 72 | |
Zaitsev | 10:41552d038a69 | 73 | const PinMap PinMap_SPI_MOSI[] = { |
Zaitsev | 10:41552d038a69 | 74 | /*todo: other pins are possible, need to add */ |
Zaitsev | 10:41552d038a69 | 75 | {SPI1_SDATAO_2, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 76 | {SPI1_SDATAO_3, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 77 | {SPI2_SDATAO, SPI_1, 6}, |
Zaitsev | 10:41552d038a69 | 78 | {NC, NC, 0} |
Zaitsev | 10:41552d038a69 | 79 | }; |
Zaitsev | 10:41552d038a69 | 80 | |
Zaitsev | 10:41552d038a69 | 81 | const PinMap PinMap_SPI_MISO[] = { |
Zaitsev | 10:41552d038a69 | 82 | /*todo: other pins are possible, need to add */ |
Zaitsev | 10:41552d038a69 | 83 | {SPI1_SDATAI_2, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 84 | {SPI1_SDATAI_3, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 85 | {SPI2_SDATAI, SPI_1, 6}, |
Zaitsev | 10:41552d038a69 | 86 | {NC, NC, 0} |
Zaitsev | 10:41552d038a69 | 87 | }; |
Zaitsev | 10:41552d038a69 | 88 | |
Zaitsev | 10:41552d038a69 | 89 | const PinMap PinMap_SPI_SSEL[] = { |
Zaitsev | 10:41552d038a69 | 90 | /*todo: other pins are possible, need to add */ |
Zaitsev | 10:41552d038a69 | 91 | /* TODO what about SSNO */ |
Zaitsev | 10:41552d038a69 | 92 | {SPI1_SSNO0_1, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 93 | {SPI1_SSNO1_1, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 94 | {SPI1_SSNO2_1, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 95 | {SPI1_SSNO3_1, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 96 | {SPI1_SSNI_2, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 97 | {SPI1_SSNO0_2, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 98 | {SPI1_SSNO1_2, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 99 | {SPI1_SSNO2_2, SPI_0, 6}, |
Zaitsev | 10:41552d038a69 | 100 | {SPI2_SSNI, SPI_1, 6}, |
Zaitsev | 10:41552d038a69 | 101 | {SPI2_SSNO0, SPI_1, 6}, |
Zaitsev | 10:41552d038a69 | 102 | {NC, NC, 0} |
Zaitsev | 10:41552d038a69 | 103 | }; |
Zaitsev | 10:41552d038a69 | 104 | |
Zaitsev | 10:41552d038a69 | 105 | |
Zaitsev | 10:41552d038a69 | 106 | const PinMap PinMap_PWM[] = { |
Zaitsev | 10:41552d038a69 | 107 | |
Zaitsev | 10:41552d038a69 | 108 | {GPIO6 , PWM_0 , 4}, |
Zaitsev | 10:41552d038a69 | 109 | {GPIO7 , PWM_0 , 4}, |
Zaitsev | 10:41552d038a69 | 110 | {GPIO9 , PWM_0 , 4}, |
Zaitsev | 10:41552d038a69 | 111 | {GPIO12 , PWM_0 , 4}, |
Zaitsev | 10:41552d038a69 | 112 | {GPIO13 , PWM_0 , 4}, |
Zaitsev | 10:41552d038a69 | 113 | {NC , NC , 0} |
Zaitsev | 10:41552d038a69 | 114 | }; |