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_MPS2_M7/TARGET_ARM_SSG/TARGET_MPS2/objects.h@134:ad3be0349dc5, 2017-01-16 (annotated)
- Committer:
- <>
- Date:
- Mon Jan 16 12:05:23 2017 +0000
- Revision:
- 134:ad3be0349dc5
- Parent:
- 116:c0f6e94411f5
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 | 102:da0ca467f8b5 | 1 | /* mbed Microcontroller Library |
Kojto | 102:da0ca467f8b5 | 2 | * Copyright (c) 2006-2015 ARM Limited |
Kojto | 102:da0ca467f8b5 | 3 | * |
Kojto | 102:da0ca467f8b5 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Kojto | 102:da0ca467f8b5 | 5 | * you may not use this file except in compliance with the License. |
Kojto | 102:da0ca467f8b5 | 6 | * You may obtain a copy of the License at |
Kojto | 102:da0ca467f8b5 | 7 | * |
Kojto | 102:da0ca467f8b5 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 102:da0ca467f8b5 | 9 | * |
Kojto | 102:da0ca467f8b5 | 10 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 102:da0ca467f8b5 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Kojto | 102:da0ca467f8b5 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 102:da0ca467f8b5 | 13 | * See the License for the specific language governing permissions and |
Kojto | 102:da0ca467f8b5 | 14 | * limitations under the License. |
Kojto | 102:da0ca467f8b5 | 15 | */ |
Kojto | 102:da0ca467f8b5 | 16 | #ifndef MBED_OBJECTS_H |
Kojto | 102:da0ca467f8b5 | 17 | #define MBED_OBJECTS_H |
Kojto | 102:da0ca467f8b5 | 18 | |
Kojto | 102:da0ca467f8b5 | 19 | #include "cmsis.h" |
Kojto | 102:da0ca467f8b5 | 20 | #include "PortNames.h" |
Kojto | 102:da0ca467f8b5 | 21 | #include "PeripheralNames.h" |
Kojto | 102:da0ca467f8b5 | 22 | #include "PinNames.h" |
Kojto | 102:da0ca467f8b5 | 23 | |
Kojto | 102:da0ca467f8b5 | 24 | #ifdef __cplusplus |
Kojto | 102:da0ca467f8b5 | 25 | extern "C" { |
Kojto | 102:da0ca467f8b5 | 26 | #endif |
Kojto | 102:da0ca467f8b5 | 27 | |
Kojto | 102:da0ca467f8b5 | 28 | struct gpio_irq_s { |
Kojto | 102:da0ca467f8b5 | 29 | uint32_t ch; |
Kojto | 102:da0ca467f8b5 | 30 | }; |
Kojto | 102:da0ca467f8b5 | 31 | |
Kojto | 102:da0ca467f8b5 | 32 | struct port_s { |
Kojto | 102:da0ca467f8b5 | 33 | __IO uint32_t *reg_dir; |
Kojto | 116:c0f6e94411f5 | 34 | __IO uint32_t *reg_dirclr; |
Kojto | 102:da0ca467f8b5 | 35 | __IO uint32_t *reg_out; |
Kojto | 102:da0ca467f8b5 | 36 | __IO uint32_t *reg_in; |
Kojto | 102:da0ca467f8b5 | 37 | PortName port; |
Kojto | 102:da0ca467f8b5 | 38 | uint32_t mask; |
Kojto | 102:da0ca467f8b5 | 39 | }; |
Kojto | 102:da0ca467f8b5 | 40 | |
Kojto | 102:da0ca467f8b5 | 41 | struct serial_s { |
Kojto | 102:da0ca467f8b5 | 42 | CMSDK_UART_TypeDef *uart; |
Kojto | 102:da0ca467f8b5 | 43 | int index; |
Kojto | 102:da0ca467f8b5 | 44 | }; |
Kojto | 102:da0ca467f8b5 | 45 | |
Kojto | 102:da0ca467f8b5 | 46 | struct i2c_s { |
Kojto | 102:da0ca467f8b5 | 47 | MPS2_I2C_TypeDef *i2c; |
Kojto | 102:da0ca467f8b5 | 48 | }; |
Kojto | 102:da0ca467f8b5 | 49 | |
Kojto | 102:da0ca467f8b5 | 50 | struct tsc_s { |
Kojto | 102:da0ca467f8b5 | 51 | MPS2_I2C_TypeDef *tsc; |
Kojto | 102:da0ca467f8b5 | 52 | }; |
Kojto | 102:da0ca467f8b5 | 53 | |
Kojto | 102:da0ca467f8b5 | 54 | struct audio_s { |
Kojto | 102:da0ca467f8b5 | 55 | MPS2_I2S_TypeDef *audio_I2S; |
Kojto | 116:c0f6e94411f5 | 56 | MPS2_I2C_TypeDef *audio_I2C; |
Kojto | 102:da0ca467f8b5 | 57 | }; |
Kojto | 102:da0ca467f8b5 | 58 | |
Kojto | 102:da0ca467f8b5 | 59 | |
Kojto | 102:da0ca467f8b5 | 60 | struct spi_s { |
Kojto | 102:da0ca467f8b5 | 61 | MPS2_SSP_TypeDef *spi; |
Kojto | 102:da0ca467f8b5 | 62 | }; |
Kojto | 102:da0ca467f8b5 | 63 | |
Kojto | 102:da0ca467f8b5 | 64 | struct clcd_s { |
Kojto | 102:da0ca467f8b5 | 65 | MPS2_SSP_TypeDef *clcd; |
Kojto | 102:da0ca467f8b5 | 66 | }; |
Kojto | 102:da0ca467f8b5 | 67 | |
Kojto | 116:c0f6e94411f5 | 68 | struct analogin_s { |
Kojto | 116:c0f6e94411f5 | 69 | ADCName adc; |
Kojto | 116:c0f6e94411f5 | 70 | MPS2_SSP_TypeDef *adc_spi; |
Kojto | 116:c0f6e94411f5 | 71 | PinName pin; |
Kojto | 116:c0f6e94411f5 | 72 | uint32_t pin_number; |
Kojto | 116:c0f6e94411f5 | 73 | __IO uint32_t address; |
Kojto | 116:c0f6e94411f5 | 74 | }; |
Kojto | 116:c0f6e94411f5 | 75 | |
Kojto | 102:da0ca467f8b5 | 76 | #include "gpio_object.h" |
Kojto | 102:da0ca467f8b5 | 77 | |
Kojto | 102:da0ca467f8b5 | 78 | #ifdef __cplusplus |
Kojto | 102:da0ca467f8b5 | 79 | } |
Kojto | 102:da0ca467f8b5 | 80 | #endif |
Kojto | 102:da0ca467f8b5 | 81 | |
Kojto | 102:da0ca467f8b5 | 82 | #endif |