- fix F411 F334 systeminit when HSI used - portinout always read IDR regardless of port direction
Fork of mbed-src by
targets/hal/TARGET_NXP/TARGET_LPC81X/device.h@332:e299ae530e63, 2014-09-27 (annotated)
- Committer:
- Geremia
- Date:
- Sat Sep 27 11:16:28 2014 +0000
- Revision:
- 332:e299ae530e63
- Parent:
- 69:49e45cb70de1
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 46:bebbbd80dd87 | 1 | /* mbed Microcontroller Library |
mbed_official | 46:bebbbd80dd87 | 2 | * Copyright (c) 2006-2013 ARM Limited |
mbed_official | 46:bebbbd80dd87 | 3 | * |
mbed_official | 46:bebbbd80dd87 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 46:bebbbd80dd87 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 46:bebbbd80dd87 | 6 | * You may obtain a copy of the License at |
mbed_official | 46:bebbbd80dd87 | 7 | * |
mbed_official | 46:bebbbd80dd87 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 46:bebbbd80dd87 | 9 | * |
mbed_official | 46:bebbbd80dd87 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 46:bebbbd80dd87 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 46:bebbbd80dd87 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 46:bebbbd80dd87 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 46:bebbbd80dd87 | 14 | * limitations under the License. |
mbed_official | 46:bebbbd80dd87 | 15 | */ |
mbed_official | 46:bebbbd80dd87 | 16 | #ifndef MBED_DEVICE_H |
mbed_official | 46:bebbbd80dd87 | 17 | #define MBED_DEVICE_H |
mbed_official | 46:bebbbd80dd87 | 18 | |
mbed_official | 46:bebbbd80dd87 | 19 | #define DEVICE_PORTIN 0 |
mbed_official | 46:bebbbd80dd87 | 20 | #define DEVICE_PORTOUT 0 |
mbed_official | 46:bebbbd80dd87 | 21 | #define DEVICE_PORTINOUT 0 |
mbed_official | 46:bebbbd80dd87 | 22 | |
mbed_official | 46:bebbbd80dd87 | 23 | #define DEVICE_INTERRUPTIN 1 |
mbed_official | 46:bebbbd80dd87 | 24 | |
mbed_official | 46:bebbbd80dd87 | 25 | #define DEVICE_ANALOGIN 0 |
mbed_official | 46:bebbbd80dd87 | 26 | #define DEVICE_ANALOGOUT 0 |
mbed_official | 46:bebbbd80dd87 | 27 | |
mbed_official | 46:bebbbd80dd87 | 28 | #define DEVICE_SERIAL 1 |
mbed_official | 64:7b352733b00a | 29 | #define DEVICE_SERIAL_FC 1 |
mbed_official | 46:bebbbd80dd87 | 30 | |
mbed_official | 46:bebbbd80dd87 | 31 | #define DEVICE_I2C 1 |
mbed_official | 46:bebbbd80dd87 | 32 | #define DEVICE_I2CSLAVE 0 |
mbed_official | 46:bebbbd80dd87 | 33 | |
mbed_official | 46:bebbbd80dd87 | 34 | #define DEVICE_SPI 1 |
mbed_official | 69:49e45cb70de1 | 35 | #define DEVICE_SPISLAVE 1 |
mbed_official | 46:bebbbd80dd87 | 36 | |
mbed_official | 46:bebbbd80dd87 | 37 | #define DEVICE_CAN 0 |
mbed_official | 46:bebbbd80dd87 | 38 | |
mbed_official | 46:bebbbd80dd87 | 39 | #define DEVICE_RTC 0 |
mbed_official | 46:bebbbd80dd87 | 40 | |
mbed_official | 46:bebbbd80dd87 | 41 | #define DEVICE_ETHERNET 0 |
mbed_official | 46:bebbbd80dd87 | 42 | |
mbed_official | 46:bebbbd80dd87 | 43 | #define DEVICE_PWMOUT 0 |
mbed_official | 46:bebbbd80dd87 | 44 | |
mbed_official | 46:bebbbd80dd87 | 45 | #define DEVICE_SEMIHOST 0 |
mbed_official | 46:bebbbd80dd87 | 46 | #define DEVICE_LOCALFILESYSTEM 0 |
mbed_official | 46:bebbbd80dd87 | 47 | |
mbed_official | 47:02833c62d054 | 48 | #define DEVICE_SLEEP 1 |
mbed_official | 46:bebbbd80dd87 | 49 | |
mbed_official | 46:bebbbd80dd87 | 50 | #define DEVICE_DEBUG_AWARENESS 0 |
mbed_official | 46:bebbbd80dd87 | 51 | |
mbed_official | 46:bebbbd80dd87 | 52 | #define DEVICE_STDIO_MESSAGES 0 |
mbed_official | 46:bebbbd80dd87 | 53 | |
mbed_official | 46:bebbbd80dd87 | 54 | #define DEVICE_ERROR_RED 1 |
mbed_official | 46:bebbbd80dd87 | 55 | |
mbed_official | 46:bebbbd80dd87 | 56 | #include "objects.h" |
mbed_official | 46:bebbbd80dd87 | 57 | |
mbed_official | 46:bebbbd80dd87 | 58 | #endif |