The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 165:d1b4690b3f8b 1 // The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches.
AnnaBridge 165:d1b4690b3f8b 2 // Check the 'features' section of the target description in 'targets.json' for more details.
AnnaBridge 165:d1b4690b3f8b 3 /* mbed Microcontroller Library
AnnaBridge 165:d1b4690b3f8b 4 * Copyright (c) 2006-2013 ARM Limited
AnnaBridge 165:d1b4690b3f8b 5 *
AnnaBridge 165:d1b4690b3f8b 6 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 165:d1b4690b3f8b 7 * you may not use this file except in compliance with the License.
AnnaBridge 165:d1b4690b3f8b 8 * You may obtain a copy of the License at
AnnaBridge 165:d1b4690b3f8b 9 *
AnnaBridge 165:d1b4690b3f8b 10 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 165:d1b4690b3f8b 11 *
AnnaBridge 165:d1b4690b3f8b 12 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 165:d1b4690b3f8b 13 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 165:d1b4690b3f8b 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 165:d1b4690b3f8b 15 * See the License for the specific language governing permissions and
AnnaBridge 165:d1b4690b3f8b 16 * limitations under the License.
AnnaBridge 165:d1b4690b3f8b 17 */
AnnaBridge 165:d1b4690b3f8b 18 #ifndef MBED_DEVICE_H
AnnaBridge 165:d1b4690b3f8b 19 #define MBED_DEVICE_H
AnnaBridge 165:d1b4690b3f8b 20
AnnaBridge 165:d1b4690b3f8b 21 /* ->Take measures about optimization problems of web compiler */
AnnaBridge 165:d1b4690b3f8b 22 /* Web compiler has problem that inlining code may not be generated correctly */
AnnaBridge 165:d1b4690b3f8b 23 /* when "-O3 -Otime" was specified. */
AnnaBridge 165:d1b4690b3f8b 24 #if defined(__CC_ARM) && (__ARMCC_VERSION <= 5040027)
AnnaBridge 165:d1b4690b3f8b 25 #pragma Ospace
AnnaBridge 165:d1b4690b3f8b 26 #endif
AnnaBridge 165:d1b4690b3f8b 27 /* <-Take measures about optimization problems of web compiler */
AnnaBridge 165:d1b4690b3f8b 28
AnnaBridge 165:d1b4690b3f8b 29 #define TRANSACTION_QUEUE_SIZE_SPI 16
AnnaBridge 165:d1b4690b3f8b 30
AnnaBridge 165:d1b4690b3f8b 31 #define DEVICE_ID_LENGTH 32
AnnaBridge 165:d1b4690b3f8b 32 #define DEVICE_MAC_OFFSET 20
AnnaBridge 165:d1b4690b3f8b 33
AnnaBridge 165:d1b4690b3f8b 34 #include "objects.h"
AnnaBridge 165:d1b4690b3f8b 35 #include "dma_api.h"
AnnaBridge 165:d1b4690b3f8b 36
AnnaBridge 165:d1b4690b3f8b 37 #endif