[270] | 1 | /* mbed Microcontroller Library
|
---|
| 2 | * Copyright (c) 2006-2013 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 | #ifndef MBED_DEVICE_H
|
---|
| 17 | #define MBED_DEVICE_H
|
---|
| 18 |
|
---|
| 19 | /* ->Take measures about optimization problems of web compiler */
|
---|
| 20 | /* Web compiler has problem that inlining code may not be generated correctly */
|
---|
| 21 | /* when "-O3 -Otime" was specified. */
|
---|
| 22 | #if defined(__CC_ARM) && (__ARMCC_VERSION <= 5040027)
|
---|
| 23 | #pragma Ospace
|
---|
| 24 | #endif
|
---|
| 25 | /* <-Take measures about optimization problems of web compiler */
|
---|
| 26 |
|
---|
| 27 | #define DEVICE_PORTIN 1
|
---|
| 28 | #define DEVICE_PORTOUT 1
|
---|
| 29 | #define DEVICE_PORTINOUT 1
|
---|
| 30 |
|
---|
| 31 | #define DEVICE_INTERRUPTIN 1
|
---|
| 32 |
|
---|
| 33 | #define DEVICE_ANALOGIN 1
|
---|
| 34 | #define DEVICE_ANALOGOUT 0
|
---|
| 35 |
|
---|
| 36 | #define DEVICE_SERIAL 1
|
---|
| 37 | #define DEVICE_SERIAL_FC 1
|
---|
| 38 |
|
---|
| 39 | #define DEVICE_I2C 1
|
---|
| 40 | #define DEVICE_I2CSLAVE 1
|
---|
| 41 |
|
---|
| 42 | #define DEVICE_SPI 1
|
---|
| 43 | #define DEVICE_SPISLAVE 1
|
---|
| 44 |
|
---|
| 45 | #define DEVICE_CAN 1
|
---|
| 46 |
|
---|
| 47 | #define DEVICE_RTC 1
|
---|
| 48 |
|
---|
| 49 | #define DEVICE_ETHERNET 1
|
---|
| 50 |
|
---|
| 51 | #define DEVICE_PWMOUT 1
|
---|
| 52 |
|
---|
| 53 | #define DEVICE_SEMIHOST 0
|
---|
| 54 | #define DEVICE_LOCALFILESYSTEM 0
|
---|
| 55 | #define DEVICE_ID_LENGTH 32
|
---|
| 56 | #define DEVICE_MAC_OFFSET 20
|
---|
| 57 |
|
---|
| 58 | #define DEVICE_SLEEP 0
|
---|
| 59 |
|
---|
| 60 | #define DEVICE_DEBUG_AWARENESS 1
|
---|
| 61 |
|
---|
| 62 | #define DEVICE_STDIO_MESSAGES 1
|
---|
| 63 |
|
---|
| 64 | #define DEVICE_ERROR_PATTERN 1
|
---|
| 65 |
|
---|
| 66 | #include "objects.h"
|
---|
| 67 |
|
---|
| 68 | #endif
|
---|