- fix F411 F334 systeminit when HSI used - portinout always read IDR regardless of port direction

Fork of mbed-src by mbed official

Committer:
Geremia
Date:
Sat Sep 27 11:16:28 2014 +0000
Revision:
332:e299ae530e63
Parent:
274:6937b19af361
- fix F411 F334 systeminit when HSI used; - STMs PortInOut port.read() always read input data register (real external pin state) even if direction is output (same as other platforms)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 274:6937b19af361 1 /* mbed Microcontroller Library
mbed_official 274:6937b19af361 2 * Copyright (c) 2006-2013 ARM Limited
mbed_official 274:6937b19af361 3 *
mbed_official 274:6937b19af361 4 * Licensed under the Apache License, Version 2.0 (the "License");
mbed_official 274:6937b19af361 5 * you may not use this file except in compliance with the License.
mbed_official 274:6937b19af361 6 * You may obtain a copy of the License at
mbed_official 274:6937b19af361 7 *
mbed_official 274:6937b19af361 8 * http://www.apache.org/licenses/LICENSE-2.0
mbed_official 274:6937b19af361 9 *
mbed_official 274:6937b19af361 10 * Unless required by applicable law or agreed to in writing, software
mbed_official 274:6937b19af361 11 * distributed under the License is distributed on an "AS IS" BASIS,
mbed_official 274:6937b19af361 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbed_official 274:6937b19af361 13 * See the License for the specific language governing permissions and
mbed_official 274:6937b19af361 14 * limitations under the License.
mbed_official 274:6937b19af361 15 */
mbed_official 274:6937b19af361 16
mbed_official 274:6937b19af361 17 #ifndef MBED_PERIPHERALPINS_H
mbed_official 274:6937b19af361 18 #define MBED_PERIPHERALPINS_H
mbed_official 274:6937b19af361 19
mbed_official 274:6937b19af361 20 #include "pinmap.h"
mbed_official 274:6937b19af361 21 #include "PeripheralNames.h"
mbed_official 274:6937b19af361 22
mbed_official 274:6937b19af361 23 /************ADC***************/
mbed_official 274:6937b19af361 24 extern const PinMap PinMap_ADC[];
mbed_official 274:6937b19af361 25
mbed_official 274:6937b19af361 26 /************I2C***************/
mbed_official 274:6937b19af361 27 extern const PinMap PinMap_I2C_SDA[];
mbed_official 274:6937b19af361 28 extern const PinMap PinMap_I2C_SCL[];
mbed_official 274:6937b19af361 29
mbed_official 274:6937b19af361 30 /************UART***************/
mbed_official 274:6937b19af361 31 extern const PinMap PinMap_UART_TX[];
mbed_official 274:6937b19af361 32 extern const PinMap PinMap_UART_RX[];
mbed_official 274:6937b19af361 33
mbed_official 274:6937b19af361 34 /************SPI***************/
mbed_official 274:6937b19af361 35 extern const PinMap PinMap_SPI_SCLK[];
mbed_official 274:6937b19af361 36 extern const PinMap PinMap_SPI_MOSI[];
mbed_official 274:6937b19af361 37 extern const PinMap PinMap_SPI_MISO[];
mbed_official 274:6937b19af361 38 extern const PinMap PinMap_SPI_SSEL[];
mbed_official 274:6937b19af361 39
mbed_official 274:6937b19af361 40 /************PWM***************/
mbed_official 274:6937b19af361 41 extern const PinMap PinMap_PWM[];
mbed_official 274:6937b19af361 42
mbed_official 274:6937b19af361 43 #endif