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.
TARGET_ARM_BEETLE_SOC/TARGET_ARM_SSG/TARGET_BEETLE/PeripheralNames.h@134:ad3be0349dc5, 2017-01-16 (annotated)
- Committer:
- <>
- Date:
- Mon Jan 16 12:05:23 2017 +0000
- Revision:
- 134:ad3be0349dc5
- Parent:
- 122:f9eeca106725
Release 134 of the mbed library
Ports for Upcoming Targets
Fixes and Changes
3488: Dev stm i2c v2 unitary functions https://github.com/ARMmbed/mbed-os/pull/3488
3492: Fix #3463 CAN read() return value https://github.com/ARMmbed/mbed-os/pull/3492
3503: [LPC15xx] Ensure that PWM=1 is resolved correctly https://github.com/ARMmbed/mbed-os/pull/3503
3504: [LPC15xx] CAN implementation improvements https://github.com/ARMmbed/mbed-os/pull/3504
3539: NUCLEO_F412ZG - Add support of TRNG peripheral https://github.com/ARMmbed/mbed-os/pull/3539
3540: STM: SPI: Initialize Rx in spi_master_write https://github.com/ARMmbed/mbed-os/pull/3540
3438: K64F: Add support for SERIAL ASYNCH API https://github.com/ARMmbed/mbed-os/pull/3438
3519: MCUXpresso: Fix ENET driver to enable interrupts after interrupt handler is set https://github.com/ARMmbed/mbed-os/pull/3519
3544: STM32L4 deepsleep improvement https://github.com/ARMmbed/mbed-os/pull/3544
3546: NUCLEO-F412ZG - Add CAN peripheral https://github.com/ARMmbed/mbed-os/pull/3546
3551: Fix I2C driver for RZ/A1H https://github.com/ARMmbed/mbed-os/pull/3551
3558: K64F UART Asynch API: Fix synchronization issue https://github.com/ARMmbed/mbed-os/pull/3558
3563: LPC4088 - Fix vector checksum https://github.com/ARMmbed/mbed-os/pull/3563
3567: Dev stm32 F0 v1.7.0 https://github.com/ARMmbed/mbed-os/pull/3567
3577: Fixes linking errors when building with debug profile https://github.com/ARMmbed/mbed-os/pull/3577
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 122:f9eeca106725 | 1 | /* mbed Microcontroller Library |
Kojto | 122:f9eeca106725 | 2 | * Copyright (c) 2015 ARM Limited |
Kojto | 122:f9eeca106725 | 3 | * |
Kojto | 122:f9eeca106725 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Kojto | 122:f9eeca106725 | 5 | * you may not use this file except in compliance with the License. |
Kojto | 122:f9eeca106725 | 6 | * You may obtain a copy of the License at |
Kojto | 122:f9eeca106725 | 7 | * |
Kojto | 122:f9eeca106725 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 122:f9eeca106725 | 9 | * |
Kojto | 122:f9eeca106725 | 10 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 122:f9eeca106725 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Kojto | 122:f9eeca106725 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 122:f9eeca106725 | 13 | * See the License for the specific language governing permissions and |
Kojto | 122:f9eeca106725 | 14 | * limitations under the License. |
Kojto | 122:f9eeca106725 | 15 | */ |
Kojto | 122:f9eeca106725 | 16 | #ifndef MBED_PERIPHERALNAMES_H |
Kojto | 122:f9eeca106725 | 17 | #define MBED_PERIPHERALNAMES_H |
Kojto | 122:f9eeca106725 | 18 | |
Kojto | 122:f9eeca106725 | 19 | #include "cmsis.h" |
Kojto | 122:f9eeca106725 | 20 | #include "i2c_def.h" |
Kojto | 122:f9eeca106725 | 21 | #include "spi_def.h" |
Kojto | 122:f9eeca106725 | 22 | |
Kojto | 122:f9eeca106725 | 23 | #ifdef __cplusplus |
Kojto | 122:f9eeca106725 | 24 | extern "C" { |
Kojto | 122:f9eeca106725 | 25 | #endif |
Kojto | 122:f9eeca106725 | 26 | |
Kojto | 122:f9eeca106725 | 27 | typedef enum { |
Kojto | 122:f9eeca106725 | 28 | UART_0 = (int)CMSDK_UART0_BASE, |
Kojto | 122:f9eeca106725 | 29 | UART_1 = (int)CMSDK_UART1_BASE |
Kojto | 122:f9eeca106725 | 30 | } UARTName; |
Kojto | 122:f9eeca106725 | 31 | |
Kojto | 122:f9eeca106725 | 32 | typedef enum { |
Kojto | 122:f9eeca106725 | 33 | I2C_0 = (int)I2C0_BASE, |
Kojto | 122:f9eeca106725 | 34 | I2C_1 = (int)I2C1_BASE |
Kojto | 122:f9eeca106725 | 35 | |
Kojto | 122:f9eeca106725 | 36 | } I2CName; |
Kojto | 122:f9eeca106725 | 37 | |
Kojto | 122:f9eeca106725 | 38 | typedef enum { |
Kojto | 122:f9eeca106725 | 39 | ADC0_0 = 0, |
Kojto | 122:f9eeca106725 | 40 | ADC0_1, |
Kojto | 122:f9eeca106725 | 41 | ADC0_2, |
Kojto | 122:f9eeca106725 | 42 | ADC0_3, |
Kojto | 122:f9eeca106725 | 43 | ADC0_4, |
Kojto | 122:f9eeca106725 | 44 | ADC0_5 |
Kojto | 122:f9eeca106725 | 45 | } ADCName; |
Kojto | 122:f9eeca106725 | 46 | |
Kojto | 122:f9eeca106725 | 47 | typedef enum { |
Kojto | 122:f9eeca106725 | 48 | SPI_0 = (int)SPI0_BASE, |
Kojto | 122:f9eeca106725 | 49 | SPI_1 = (int)SPI1_BASE |
Kojto | 122:f9eeca106725 | 50 | } SPIName; |
Kojto | 122:f9eeca106725 | 51 | |
Kojto | 122:f9eeca106725 | 52 | typedef enum { |
Kojto | 122:f9eeca106725 | 53 | PWM_1 = 0, |
Kojto | 122:f9eeca106725 | 54 | PWM_2, |
Kojto | 122:f9eeca106725 | 55 | PWM_3, |
Kojto | 122:f9eeca106725 | 56 | PWM_4, |
Kojto | 122:f9eeca106725 | 57 | PWM_5, |
Kojto | 122:f9eeca106725 | 58 | PWM_6, |
Kojto | 122:f9eeca106725 | 59 | PWM_7, |
Kojto | 122:f9eeca106725 | 60 | PWM_8, |
Kojto | 122:f9eeca106725 | 61 | PWM_9, |
Kojto | 122:f9eeca106725 | 62 | PWM_10, |
Kojto | 122:f9eeca106725 | 63 | PWM_11 |
Kojto | 122:f9eeca106725 | 64 | } PWMName; |
Kojto | 122:f9eeca106725 | 65 | |
Kojto | 122:f9eeca106725 | 66 | #define STDIO_UART_TX UART_TX1 |
Kojto | 122:f9eeca106725 | 67 | #define STDIO_UART_RX UART_RX1 |
Kojto | 122:f9eeca106725 | 68 | #define STDIO_UART UART_1 |
Kojto | 122:f9eeca106725 | 69 | |
Kojto | 122:f9eeca106725 | 70 | #define MBED_UART0 UART_TX0, UART_RX0 |
Kojto | 122:f9eeca106725 | 71 | #define MBED_UART1 UART_TX1, UART_RX1 |
Kojto | 122:f9eeca106725 | 72 | #define MBED_UARTUSB UART_TX1, UART_RX1 |
Kojto | 122:f9eeca106725 | 73 | |
Kojto | 122:f9eeca106725 | 74 | //USB UART |
Kojto | 122:f9eeca106725 | 75 | #define USBTX UART_TX1 |
Kojto | 122:f9eeca106725 | 76 | #define USBRX UART_RX1 |
Kojto | 122:f9eeca106725 | 77 | |
Kojto | 122:f9eeca106725 | 78 | #ifdef __cplusplus |
Kojto | 122:f9eeca106725 | 79 | } |
Kojto | 122:f9eeca106725 | 80 | #endif |
Kojto | 122:f9eeca106725 | 81 | |
Kojto | 122:f9eeca106725 | 82 | #endif |