mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
AnnaBridge
Date:
Wed Feb 20 22:31:08 2019 +0000
Revision:
189:f392fc9709a3
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 189:f392fc9709a3 1 /* mbed Microcontroller Library
AnnaBridge 189:f392fc9709a3 2 * Copyright (c) 2018 GigaDevice Semiconductor Inc.
AnnaBridge 189:f392fc9709a3 3 *
AnnaBridge 189:f392fc9709a3 4 * SPDX-License-Identifier: Apache-2.0
AnnaBridge 189:f392fc9709a3 5 *
AnnaBridge 189:f392fc9709a3 6 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 189:f392fc9709a3 7 * you may not use this file except in compliance with the License.
AnnaBridge 189:f392fc9709a3 8 * You may obtain a copy of the License at
AnnaBridge 189:f392fc9709a3 9 *
AnnaBridge 189:f392fc9709a3 10 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 189:f392fc9709a3 11 *
AnnaBridge 189:f392fc9709a3 12 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 189:f392fc9709a3 13 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 189:f392fc9709a3 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 189:f392fc9709a3 15 * See the License for the specific language governing permissions and
AnnaBridge 189:f392fc9709a3 16 * limitations under the License.
AnnaBridge 189:f392fc9709a3 17 */
AnnaBridge 189:f392fc9709a3 18
AnnaBridge 189:f392fc9709a3 19 #ifndef MBED_PERIPHERALPINS_H
AnnaBridge 189:f392fc9709a3 20 #define MBED_PERIPHERALPINS_H
AnnaBridge 189:f392fc9709a3 21
AnnaBridge 189:f392fc9709a3 22 #include "pinmap.h"
AnnaBridge 189:f392fc9709a3 23 #include "PeripheralNames.h"
AnnaBridge 189:f392fc9709a3 24
AnnaBridge 189:f392fc9709a3 25 extern const int GD_GPIO_MODE[];
AnnaBridge 189:f392fc9709a3 26 extern const int GD_GPIO_PULL_UP_DOWN[];
AnnaBridge 189:f392fc9709a3 27 extern const int GD_GPIO_OUTPUT_MODE[];
AnnaBridge 189:f392fc9709a3 28 extern const int GD_GPIO_SPEED[];
AnnaBridge 189:f392fc9709a3 29 extern const int GD_GPIO_AF[];
AnnaBridge 189:f392fc9709a3 30
AnnaBridge 189:f392fc9709a3 31 /* ADC */
AnnaBridge 189:f392fc9709a3 32 #ifdef DEVICE_ANALOGIN
AnnaBridge 189:f392fc9709a3 33 extern const PinMap PinMap_ADC[];
AnnaBridge 189:f392fc9709a3 34 #endif
AnnaBridge 189:f392fc9709a3 35
AnnaBridge 189:f392fc9709a3 36 /* DAC */
AnnaBridge 189:f392fc9709a3 37 #ifdef DEVICE_ANALOGOUT
AnnaBridge 189:f392fc9709a3 38 extern const PinMap PinMap_DAC[];
AnnaBridge 189:f392fc9709a3 39 #endif
AnnaBridge 189:f392fc9709a3 40
AnnaBridge 189:f392fc9709a3 41 /* I2C */
AnnaBridge 189:f392fc9709a3 42 #if DEVICE_I2C
AnnaBridge 189:f392fc9709a3 43 extern const PinMap PinMap_I2C_SDA[];
AnnaBridge 189:f392fc9709a3 44 extern const PinMap PinMap_I2C_SCL[];
AnnaBridge 189:f392fc9709a3 45 #endif
AnnaBridge 189:f392fc9709a3 46
AnnaBridge 189:f392fc9709a3 47 /* PWM */
AnnaBridge 189:f392fc9709a3 48 #if DEVICE_PWMOUT
AnnaBridge 189:f392fc9709a3 49 extern const PinMap PinMap_PWM[];
AnnaBridge 189:f392fc9709a3 50 #endif
AnnaBridge 189:f392fc9709a3 51
AnnaBridge 189:f392fc9709a3 52 /* SERIAL */
AnnaBridge 189:f392fc9709a3 53 #ifdef DEVICE_SERIAL
AnnaBridge 189:f392fc9709a3 54 extern const PinMap PinMap_UART_TX[];
AnnaBridge 189:f392fc9709a3 55 extern const PinMap PinMap_UART_RX[];
AnnaBridge 189:f392fc9709a3 56 #ifdef DEVICE_SERIAL_FC
AnnaBridge 189:f392fc9709a3 57 extern const PinMap PinMap_UART_RTS[];
AnnaBridge 189:f392fc9709a3 58 extern const PinMap PinMap_UART_CTS[];
AnnaBridge 189:f392fc9709a3 59 #endif
AnnaBridge 189:f392fc9709a3 60 #endif
AnnaBridge 189:f392fc9709a3 61
AnnaBridge 189:f392fc9709a3 62 /* SPI */
AnnaBridge 189:f392fc9709a3 63 #ifdef DEVICE_SPI
AnnaBridge 189:f392fc9709a3 64 extern const PinMap PinMap_SPI_MOSI[];
AnnaBridge 189:f392fc9709a3 65 extern const PinMap PinMap_SPI_MISO[];
AnnaBridge 189:f392fc9709a3 66 extern const PinMap PinMap_SPI_SCLK[];
AnnaBridge 189:f392fc9709a3 67 extern const PinMap PinMap_SPI_SSEL[];
AnnaBridge 189:f392fc9709a3 68 #endif
AnnaBridge 189:f392fc9709a3 69
AnnaBridge 189:f392fc9709a3 70 /* CAN */
AnnaBridge 189:f392fc9709a3 71 #ifdef DEVICE_CAN
AnnaBridge 189:f392fc9709a3 72 extern const PinMap PinMap_CAN_RD[];
AnnaBridge 189:f392fc9709a3 73 extern const PinMap PinMap_CAN_TD[];
AnnaBridge 189:f392fc9709a3 74 #endif
AnnaBridge 189:f392fc9709a3 75
AnnaBridge 189:f392fc9709a3 76 #endif