Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
TARGET_MOTE_L152RC/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/objects.h@128:9bcdf88f62b0, 2016-10-27 (annotated)
- Committer:
- <>
- Date:
- Thu Oct 27 16:45:56 2016 +0100
- Revision:
- 128:9bcdf88f62b0
- Parent:
- 125:2e9cc70d1897
- Child:
- 132:9baf128c2fab
Release 128 of the mbed library
Ports for Upcoming Targets
Fixes and Changes
2966: Add kw24 support https://github.com/ARMmbed/mbed-os/pull/2966
3068: MultiTech mDot - clean up PeripheralPins.c and add new pin names https://github.com/ARMmbed/mbed-os/pull/3068
3089: Kinetis HAL: Remove clock initialization code from serial and ticker https://github.com/ARMmbed/mbed-os/pull/3089
2943: [NRF5] NVIC_SetVector functionality https://github.com/ARMmbed/mbed-os/pull/2943
2938: InterruptIn changes in NCS36510 HAL. https://github.com/ARMmbed/mbed-os/pull/2938
3108: Fix sleep function for NRF52. https://github.com/ARMmbed/mbed-os/pull/3108
3076: STM32F1: Correct timer master value reading https://github.com/ARMmbed/mbed-os/pull/3076
3085: Add LOWPOWERTIMER capability for NUCLEO_F303ZE https://github.com/ARMmbed/mbed-os/pull/3085
3046: [BEETLE] Update BLE stack on Beetle board https://github.com/ARMmbed/mbed-os/pull/3046
3122: [Silicon Labs] Update of Silicon Labs HAL https://github.com/ARMmbed/mbed-os/pull/3122
3022: OnSemi RAM usage fix https://github.com/ARMmbed/mbed-os/pull/3022
3121: STM32F3: Correct UART4 and UART5 defines when using DEVICE_SERIAL_ASYNCH https://github.com/ARMmbed/mbed-os/pull/3121
3142: Targets- NUMAKER_PFM_NUC47216 remove mbed 2 https://github.com/ARMmbed/mbed-os/pull/3142
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 112:6f327212ef96 | 1 | /* mbed Microcontroller Library |
Kojto | 112:6f327212ef96 | 2 | ******************************************************************************* |
<> | 128:9bcdf88f62b0 | 3 | * Copyright (c) 2016, STMicroelectronics |
Kojto | 112:6f327212ef96 | 4 | * All rights reserved. |
Kojto | 112:6f327212ef96 | 5 | * |
Kojto | 112:6f327212ef96 | 6 | * Redistribution and use in source and binary forms, with or without |
Kojto | 112:6f327212ef96 | 7 | * modification, are permitted provided that the following conditions are met: |
Kojto | 112:6f327212ef96 | 8 | * |
Kojto | 112:6f327212ef96 | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
Kojto | 112:6f327212ef96 | 10 | * this list of conditions and the following disclaimer. |
Kojto | 112:6f327212ef96 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
Kojto | 112:6f327212ef96 | 12 | * this list of conditions and the following disclaimer in the documentation |
Kojto | 112:6f327212ef96 | 13 | * and/or other materials provided with the distribution. |
Kojto | 112:6f327212ef96 | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
Kojto | 112:6f327212ef96 | 15 | * may be used to endorse or promote products derived from this software |
Kojto | 112:6f327212ef96 | 16 | * without specific prior written permission. |
Kojto | 112:6f327212ef96 | 17 | * |
Kojto | 112:6f327212ef96 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Kojto | 112:6f327212ef96 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Kojto | 112:6f327212ef96 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Kojto | 112:6f327212ef96 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
Kojto | 112:6f327212ef96 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Kojto | 112:6f327212ef96 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
Kojto | 112:6f327212ef96 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
Kojto | 112:6f327212ef96 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
Kojto | 112:6f327212ef96 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
Kojto | 112:6f327212ef96 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 112:6f327212ef96 | 28 | ******************************************************************************* |
Kojto | 112:6f327212ef96 | 29 | */ |
Kojto | 112:6f327212ef96 | 30 | #ifndef MBED_OBJECTS_H |
Kojto | 112:6f327212ef96 | 31 | #define MBED_OBJECTS_H |
Kojto | 112:6f327212ef96 | 32 | |
Kojto | 112:6f327212ef96 | 33 | #include "cmsis.h" |
Kojto | 112:6f327212ef96 | 34 | #include "PortNames.h" |
Kojto | 112:6f327212ef96 | 35 | #include "PeripheralNames.h" |
Kojto | 112:6f327212ef96 | 36 | #include "PinNames.h" |
Kojto | 112:6f327212ef96 | 37 | |
Kojto | 112:6f327212ef96 | 38 | #ifdef __cplusplus |
Kojto | 112:6f327212ef96 | 39 | extern "C" { |
Kojto | 112:6f327212ef96 | 40 | #endif |
Kojto | 112:6f327212ef96 | 41 | |
Kojto | 112:6f327212ef96 | 42 | struct gpio_irq_s { |
Kojto | 112:6f327212ef96 | 43 | IRQn_Type irq_n; |
Kojto | 112:6f327212ef96 | 44 | uint32_t irq_index; |
Kojto | 112:6f327212ef96 | 45 | uint32_t event; |
Kojto | 112:6f327212ef96 | 46 | PinName pin; |
Kojto | 112:6f327212ef96 | 47 | }; |
Kojto | 112:6f327212ef96 | 48 | |
Kojto | 112:6f327212ef96 | 49 | struct port_s { |
Kojto | 112:6f327212ef96 | 50 | PortName port; |
Kojto | 112:6f327212ef96 | 51 | uint32_t mask; |
Kojto | 112:6f327212ef96 | 52 | PinDirection direction; |
Kojto | 112:6f327212ef96 | 53 | __IO uint32_t *reg_in; |
Kojto | 112:6f327212ef96 | 54 | __IO uint32_t *reg_out; |
Kojto | 112:6f327212ef96 | 55 | }; |
Kojto | 112:6f327212ef96 | 56 | |
Kojto | 112:6f327212ef96 | 57 | struct analogin_s { |
Kojto | 112:6f327212ef96 | 58 | ADCName adc; |
Kojto | 112:6f327212ef96 | 59 | PinName pin; |
<> | 128:9bcdf88f62b0 | 60 | uint32_t channel; |
Kojto | 112:6f327212ef96 | 61 | }; |
Kojto | 112:6f327212ef96 | 62 | |
Kojto | 112:6f327212ef96 | 63 | struct dac_s { |
Kojto | 112:6f327212ef96 | 64 | DACName dac; |
Kojto | 112:6f327212ef96 | 65 | PinName pin; |
Kojto | 112:6f327212ef96 | 66 | }; |
Kojto | 112:6f327212ef96 | 67 | |
Kojto | 112:6f327212ef96 | 68 | struct i2c_s { |
Kojto | 112:6f327212ef96 | 69 | I2CName i2c; |
Kojto | 112:6f327212ef96 | 70 | uint32_t slave; |
Kojto | 112:6f327212ef96 | 71 | }; |
Kojto | 112:6f327212ef96 | 72 | |
Kojto | 123:b0220dba8be7 | 73 | #include "common_objects.h" |
Kojto | 112:6f327212ef96 | 74 | #include "gpio_object.h" |
Kojto | 112:6f327212ef96 | 75 | |
Kojto | 112:6f327212ef96 | 76 | #ifdef __cplusplus |
Kojto | 112:6f327212ef96 | 77 | } |
Kojto | 112:6f327212ef96 | 78 | #endif |
Kojto | 112:6f327212ef96 | 79 | |
Kojto | 112:6f327212ef96 | 80 | #endif |