[374] | 1 | /* mbed Microcontroller Library
|
---|
| 2 | * Copyright (c) 2006-2015 ARM Limited
|
---|
| 3 | *
|
---|
| 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
---|
| 5 | * you may not use this file except in compliance with the License.
|
---|
| 6 | * You may obtain a copy of the License at
|
---|
| 7 | *
|
---|
| 8 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 9 | *
|
---|
| 10 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
| 13 | * See the License for the specific language governing permissions and
|
---|
| 14 | * limitations under the License.
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | #ifndef MBED_PERIPHERALPINS_H
|
---|
| 18 | #define MBED_PERIPHERALPINS_H
|
---|
| 19 |
|
---|
| 20 | #include "pinmap.h"
|
---|
| 21 | #include "PeripheralNames.h"
|
---|
| 22 |
|
---|
| 23 | typedef struct {
|
---|
| 24 | PinName pin;
|
---|
| 25 | int function;
|
---|
| 26 | int pm;
|
---|
| 27 | } PinFunc;
|
---|
| 28 |
|
---|
| 29 | /************IRQ***************/
|
---|
| 30 | extern const PinMap PinMap_IRQ[];
|
---|
| 31 |
|
---|
| 32 | /************PINMAP***************/
|
---|
| 33 | extern const PinFunc PIPC_0_tbl[];
|
---|
| 34 |
|
---|
| 35 | /************ADC***************/
|
---|
| 36 | extern const PinMap PinMap_ADC[];
|
---|
| 37 |
|
---|
| 38 | /************DAC***************/
|
---|
| 39 | extern const PinMap PinMap_DAC[];
|
---|
| 40 |
|
---|
| 41 | /************I2C***************/
|
---|
| 42 | extern const PinMap PinMap_I2C_SDA[];
|
---|
| 43 | extern const PinMap PinMap_I2C_SCL[];
|
---|
| 44 |
|
---|
| 45 | /************UART***************/
|
---|
| 46 | extern const PinMap PinMap_UART_TX[];
|
---|
| 47 | extern const PinMap PinMap_UART_RX[];
|
---|
| 48 | extern const PinMap PinMap_UART_CTS[];
|
---|
| 49 | extern const PinMap PinMap_UART_RTS[];
|
---|
| 50 |
|
---|
| 51 | /************SPI***************/
|
---|
| 52 | extern const PinMap PinMap_SPI_SCLK[];
|
---|
| 53 | extern const PinMap PinMap_SPI_MOSI[];
|
---|
| 54 | extern const PinMap PinMap_SPI_MISO[];
|
---|
| 55 | extern const PinMap PinMap_SPI_SSEL[];
|
---|
| 56 |
|
---|
| 57 | /************PWM***************/
|
---|
| 58 | extern const PinMap PinMap_PWM[];
|
---|
| 59 |
|
---|
| 60 | /************CAN***************/
|
---|
| 61 | extern const PinMap PinMap_CAN_RD[];
|
---|
| 62 | extern const PinMap PinMap_CAN_TD[];
|
---|
| 63 |
|
---|
| 64 | #endif
|
---|