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
Kojto 148:fd96258d940d 1 // The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches.
Kojto 148:fd96258d940d 2 // Check the 'features' section of the target description in 'targets.json' for more details.
Kojto 148:fd96258d940d 3 /* mbed Microcontroller Library
Kojto 148:fd96258d940d 4 * Copyright (c) 2006-2013 ARM Limited
Kojto 148:fd96258d940d 5 *
Kojto 148:fd96258d940d 6 * Licensed under the Apache License, Version 2.0 (the "License");
Kojto 148:fd96258d940d 7 * you may not use this file except in compliance with the License.
Kojto 148:fd96258d940d 8 * You may obtain a copy of the License at
Kojto 148:fd96258d940d 9 *
Kojto 148:fd96258d940d 10 * http://www.apache.org/licenses/LICENSE-2.0
Kojto 148:fd96258d940d 11 *
Kojto 148:fd96258d940d 12 * Unless required by applicable law or agreed to in writing, software
Kojto 148:fd96258d940d 13 * distributed under the License is distributed on an "AS IS" BASIS,
Kojto 148:fd96258d940d 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Kojto 148:fd96258d940d 15 * See the License for the specific language governing permissions and
Kojto 148:fd96258d940d 16 * limitations under the License.
Kojto 148:fd96258d940d 17 */
Kojto 148:fd96258d940d 18 #ifndef MBED_DEVICE_H
Kojto 148:fd96258d940d 19 #define MBED_DEVICE_H
Kojto 148:fd96258d940d 20
Kojto 148:fd96258d940d 21 #if defined(TARGET_LPC54114_M4)
Kojto 148:fd96258d940d 22 #define NUMBER_OF_GPIO_INTS 8
Kojto 148:fd96258d940d 23 #elif defined(TARGET_LPC54114_M0)
Kojto 148:fd96258d940d 24 #define NUMBER_OF_GPIO_INTS 4
Kojto 148:fd96258d940d 25 #endif
Kojto 148:fd96258d940d 26
Kojto 148:fd96258d940d 27 #define APP_EXCLUDE_FROM_DEEPSLEEP \
Kojto 148:fd96258d940d 28 (SYSCON_PDRUNCFG_PDEN_WDT_OSC_MASK | SYSCON_PDRUNCFG_PDEN_SRAMX_MASK | \
Kojto 148:fd96258d940d 29 SYSCON_PDRUNCFG_PDEN_SRAM0_MASK | SYSCON_PDRUNCFG_PDEN_SRAM1_MASK | SYSCON_PDRUNCFG_PDEN_SRAM2_MASK)
Kojto 148:fd96258d940d 30
Kojto 148:fd96258d940d 31 /* Defines used by the sleep code */
Kojto 148:fd96258d940d 32 #define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M
Kojto 148:fd96258d940d 33 #define LPC_CLOCK_RUN BOARD_BootClockFROHF48M
Kojto 148:fd96258d940d 34
Kojto 148:fd96258d940d 35 #define DEVICE_ID_LENGTH 24
Kojto 148:fd96258d940d 36
Kojto 148:fd96258d940d 37
Kojto 148:fd96258d940d 38
Kojto 148:fd96258d940d 39
Kojto 148:fd96258d940d 40
Kojto 148:fd96258d940d 41 #include "objects.h"
Kojto 148:fd96258d940d 42
Kojto 148:fd96258d940d 43 #endif