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_NRF51_MICROBIT_B/TARGET_NORDIC/TARGET_MCU_NRF51822/PeripheralNames.h@134:ad3be0349dc5, 2017-01-16 (annotated)
- Committer:
- <>
- Date:
- Mon Jan 16 12:05:23 2017 +0000
- Revision:
- 134:ad3be0349dc5
- Parent:
- 104:b9ad9a133dc7
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 | 104:b9ad9a133dc7 | 1 | /* mbed Microcontroller Library |
Kojto | 104:b9ad9a133dc7 | 2 | * Copyright (c) 2013 Nordic Semiconductor |
Kojto | 104:b9ad9a133dc7 | 3 | * |
Kojto | 104:b9ad9a133dc7 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Kojto | 104:b9ad9a133dc7 | 5 | * you may not use this file except in compliance with the License. |
Kojto | 104:b9ad9a133dc7 | 6 | * You may obtain a copy of the License at |
Kojto | 104:b9ad9a133dc7 | 7 | * |
Kojto | 104:b9ad9a133dc7 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 104:b9ad9a133dc7 | 9 | * |
Kojto | 104:b9ad9a133dc7 | 10 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 104:b9ad9a133dc7 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Kojto | 104:b9ad9a133dc7 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 104:b9ad9a133dc7 | 13 | * See the License for the specific language governing permissions and |
Kojto | 104:b9ad9a133dc7 | 14 | * limitations under the License. |
Kojto | 104:b9ad9a133dc7 | 15 | */ |
Kojto | 104:b9ad9a133dc7 | 16 | #ifndef MBED_PERIPHERALNAMES_H |
Kojto | 104:b9ad9a133dc7 | 17 | #define MBED_PERIPHERALNAMES_H |
Kojto | 104:b9ad9a133dc7 | 18 | |
Kojto | 104:b9ad9a133dc7 | 19 | #include "cmsis.h" |
Kojto | 104:b9ad9a133dc7 | 20 | |
Kojto | 104:b9ad9a133dc7 | 21 | #ifdef __cplusplus |
Kojto | 104:b9ad9a133dc7 | 22 | extern "C" { |
Kojto | 104:b9ad9a133dc7 | 23 | #endif |
Kojto | 104:b9ad9a133dc7 | 24 | |
Kojto | 104:b9ad9a133dc7 | 25 | #define STDIO_UART_TX TX_PIN_NUMBER |
Kojto | 104:b9ad9a133dc7 | 26 | #define STDIO_UART_RX RX_PIN_NUMBER |
Kojto | 104:b9ad9a133dc7 | 27 | #define STDIO_UART UART_0 |
Kojto | 104:b9ad9a133dc7 | 28 | |
Kojto | 104:b9ad9a133dc7 | 29 | typedef enum { |
Kojto | 104:b9ad9a133dc7 | 30 | UART_0 = (int)NRF_UART0_BASE |
Kojto | 104:b9ad9a133dc7 | 31 | } UARTName; |
Kojto | 104:b9ad9a133dc7 | 32 | |
Kojto | 104:b9ad9a133dc7 | 33 | |
Kojto | 104:b9ad9a133dc7 | 34 | typedef enum { |
Kojto | 104:b9ad9a133dc7 | 35 | SPI_0 = (int)NRF_SPI0_BASE, |
Kojto | 104:b9ad9a133dc7 | 36 | SPI_1 = (int)NRF_SPI1_BASE, |
Kojto | 104:b9ad9a133dc7 | 37 | SPIS = (int)NRF_SPIS1_BASE |
Kojto | 104:b9ad9a133dc7 | 38 | } SPIName; |
Kojto | 104:b9ad9a133dc7 | 39 | |
Kojto | 104:b9ad9a133dc7 | 40 | typedef enum { |
Kojto | 104:b9ad9a133dc7 | 41 | PWM_1 = 0, |
Kojto | 104:b9ad9a133dc7 | 42 | PWM_2 |
Kojto | 104:b9ad9a133dc7 | 43 | } PWMName; |
Kojto | 104:b9ad9a133dc7 | 44 | |
Kojto | 104:b9ad9a133dc7 | 45 | typedef enum { |
Kojto | 104:b9ad9a133dc7 | 46 | I2C_0 = (int)NRF_TWI0_BASE, |
Kojto | 104:b9ad9a133dc7 | 47 | I2C_1 = (int)NRF_TWI1_BASE |
Kojto | 104:b9ad9a133dc7 | 48 | } I2CName; |
Kojto | 104:b9ad9a133dc7 | 49 | |
Kojto | 104:b9ad9a133dc7 | 50 | typedef enum { |
Kojto | 104:b9ad9a133dc7 | 51 | ADC0_0 = (int)NRF_ADC_BASE |
Kojto | 104:b9ad9a133dc7 | 52 | } ADCName; |
Kojto | 104:b9ad9a133dc7 | 53 | |
Kojto | 104:b9ad9a133dc7 | 54 | #ifdef __cplusplus |
Kojto | 104:b9ad9a133dc7 | 55 | } |
Kojto | 104:b9ad9a133dc7 | 56 | #endif |
Kojto | 104:b9ad9a133dc7 | 57 | |
Kojto | 104:b9ad9a133dc7 | 58 | #endif |