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_LPC11U35_401/TARGET_NXP/TARGET_LPC11UXX/objects.h@134:ad3be0349dc5, 2017-01-16 (annotated)
- Committer:
- <>
- Date:
- Mon Jan 16 12:05:23 2017 +0000
- Revision:
- 134:ad3be0349dc5
- Parent:
- 82:6473597d706e
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 |
---|---|---|---|
bogdanm | 66:9c8f0e3462fb | 1 | /* mbed Microcontroller Library |
bogdanm | 66:9c8f0e3462fb | 2 | * Copyright (c) 2006-2013 ARM Limited |
bogdanm | 66:9c8f0e3462fb | 3 | * |
bogdanm | 66:9c8f0e3462fb | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
bogdanm | 66:9c8f0e3462fb | 5 | * you may not use this file except in compliance with the License. |
bogdanm | 66:9c8f0e3462fb | 6 | * You may obtain a copy of the License at |
bogdanm | 66:9c8f0e3462fb | 7 | * |
bogdanm | 66:9c8f0e3462fb | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
bogdanm | 66:9c8f0e3462fb | 9 | * |
bogdanm | 66:9c8f0e3462fb | 10 | * Unless required by applicable law or agreed to in writing, software |
bogdanm | 66:9c8f0e3462fb | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
bogdanm | 66:9c8f0e3462fb | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
bogdanm | 66:9c8f0e3462fb | 13 | * See the License for the specific language governing permissions and |
bogdanm | 66:9c8f0e3462fb | 14 | * limitations under the License. |
bogdanm | 66:9c8f0e3462fb | 15 | */ |
bogdanm | 66:9c8f0e3462fb | 16 | #ifndef MBED_OBJECTS_H |
bogdanm | 66:9c8f0e3462fb | 17 | #define MBED_OBJECTS_H |
bogdanm | 66:9c8f0e3462fb | 18 | |
bogdanm | 66:9c8f0e3462fb | 19 | #include "cmsis.h" |
bogdanm | 66:9c8f0e3462fb | 20 | #include "PortNames.h" |
bogdanm | 66:9c8f0e3462fb | 21 | #include "PeripheralNames.h" |
bogdanm | 66:9c8f0e3462fb | 22 | #include "PinNames.h" |
bogdanm | 66:9c8f0e3462fb | 23 | |
bogdanm | 66:9c8f0e3462fb | 24 | #ifdef __cplusplus |
bogdanm | 66:9c8f0e3462fb | 25 | extern "C" { |
bogdanm | 66:9c8f0e3462fb | 26 | #endif |
bogdanm | 66:9c8f0e3462fb | 27 | |
bogdanm | 66:9c8f0e3462fb | 28 | struct gpio_irq_s { |
bogdanm | 66:9c8f0e3462fb | 29 | uint32_t ch; |
bogdanm | 66:9c8f0e3462fb | 30 | }; |
bogdanm | 66:9c8f0e3462fb | 31 | |
bogdanm | 66:9c8f0e3462fb | 32 | struct port_s { |
bogdanm | 66:9c8f0e3462fb | 33 | __IO uint32_t *reg_dir; |
bogdanm | 66:9c8f0e3462fb | 34 | __IO uint32_t *reg_mpin; |
bogdanm | 66:9c8f0e3462fb | 35 | PortName port; |
bogdanm | 66:9c8f0e3462fb | 36 | uint32_t mask; |
bogdanm | 66:9c8f0e3462fb | 37 | }; |
bogdanm | 66:9c8f0e3462fb | 38 | |
bogdanm | 66:9c8f0e3462fb | 39 | struct pwmout_s { |
bogdanm | 66:9c8f0e3462fb | 40 | PWMName pwm; |
bogdanm | 66:9c8f0e3462fb | 41 | }; |
bogdanm | 66:9c8f0e3462fb | 42 | |
bogdanm | 66:9c8f0e3462fb | 43 | struct serial_s { |
bogdanm | 66:9c8f0e3462fb | 44 | LPC_USART_Type *uart; |
bogdanm | 66:9c8f0e3462fb | 45 | int index; |
bogdanm | 66:9c8f0e3462fb | 46 | }; |
bogdanm | 66:9c8f0e3462fb | 47 | |
bogdanm | 66:9c8f0e3462fb | 48 | struct analogin_s { |
bogdanm | 66:9c8f0e3462fb | 49 | ADCName adc; |
bogdanm | 66:9c8f0e3462fb | 50 | }; |
bogdanm | 66:9c8f0e3462fb | 51 | |
bogdanm | 66:9c8f0e3462fb | 52 | struct i2c_s { |
bogdanm | 66:9c8f0e3462fb | 53 | LPC_I2C_Type *i2c; |
bogdanm | 66:9c8f0e3462fb | 54 | }; |
bogdanm | 66:9c8f0e3462fb | 55 | |
bogdanm | 66:9c8f0e3462fb | 56 | struct spi_s { |
bogdanm | 66:9c8f0e3462fb | 57 | LPC_SSPx_Type *spi; |
bogdanm | 66:9c8f0e3462fb | 58 | }; |
bogdanm | 66:9c8f0e3462fb | 59 | |
bogdanm | 66:9c8f0e3462fb | 60 | #include "gpio_object.h" |
bogdanm | 66:9c8f0e3462fb | 61 | |
bogdanm | 66:9c8f0e3462fb | 62 | #ifdef __cplusplus |
bogdanm | 66:9c8f0e3462fb | 63 | } |
bogdanm | 66:9c8f0e3462fb | 64 | #endif |
bogdanm | 66:9c8f0e3462fb | 65 | |
bogdanm | 66:9c8f0e3462fb | 66 | #endif |