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/objects.h@136:ef9c61f8c49f, 2017-02-14 (annotated)
- Committer:
- Kojto
- Date:
- Tue Feb 14 11:24:20 2017 +0000
- Revision:
- 136:ef9c61f8c49f
- Parent:
- 122:f9eeca106725
Release 136 of the mbed library
Ports for Upcoming Targets
Fixes and Changes
3432: Target STM USBHOST support https://github.com/ARMmbed/mbed-os/pull/3432
3181: NUCLEO_F207ZG extending PeripheralPins.c: all available alternate functions can be used now https://github.com/ARMmbed/mbed-os/pull/3181
3626: NUCLEO_F412ZG : Add USB Device +Host https://github.com/ARMmbed/mbed-os/pull/3626
3628: Fix warnings https://github.com/ARMmbed/mbed-os/pull/3628
3629: STM32: L0 LL layer https://github.com/ARMmbed/mbed-os/pull/3629
3632: IDE Export support for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3632
3642: Missing IRQ pin fix for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3642
3664: Fix ncs36510 sleep definitions https://github.com/ARMmbed/mbed-os/pull/3664
3655: [STM32F4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3655
3657: [STM32L4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3657
3658: [STM32F3] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3658
3685: STM32: I2C: reset state machine https://github.com/ARMmbed/mbed-os/pull/3685
3692: uVisor: Standardize available legacy heap and stack https://github.com/ARMmbed/mbed-os/pull/3692
3621: Fix for #2884, LPC824: export to LPCXpresso, target running with wron https://github.com/ARMmbed/mbed-os/pull/3621
3649: [STM32F7] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3649
3695: Enforce device_name is valid in targets.json https://github.com/ARMmbed/mbed-os/pull/3695
3723: NCS36510: spi_format function bug fix https://github.com/ARMmbed/mbed-os/pull/3723
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_OBJECTS_H |
Kojto | 122:f9eeca106725 | 17 | #define MBED_OBJECTS_H |
Kojto | 122:f9eeca106725 | 18 | |
Kojto | 122:f9eeca106725 | 19 | #include "cmsis.h" |
Kojto | 122:f9eeca106725 | 20 | #include "PortNames.h" |
Kojto | 122:f9eeca106725 | 21 | #include "PeripheralNames.h" |
Kojto | 122:f9eeca106725 | 22 | #include "PinNames.h" |
Kojto | 122:f9eeca106725 | 23 | #include "i2c_def.h" |
Kojto | 122:f9eeca106725 | 24 | #include "spi_def.h" |
Kojto | 122:f9eeca106725 | 25 | |
Kojto | 122:f9eeca106725 | 26 | #ifdef __cplusplus |
Kojto | 122:f9eeca106725 | 27 | extern "C" { |
Kojto | 122:f9eeca106725 | 28 | #endif |
Kojto | 122:f9eeca106725 | 29 | |
Kojto | 122:f9eeca106725 | 30 | struct gpio_irq_s { |
Kojto | 122:f9eeca106725 | 31 | uint32_t ch; |
Kojto | 122:f9eeca106725 | 32 | }; |
Kojto | 122:f9eeca106725 | 33 | |
Kojto | 122:f9eeca106725 | 34 | struct port_s { |
Kojto | 122:f9eeca106725 | 35 | __IO uint32_t *reg_dir; |
Kojto | 122:f9eeca106725 | 36 | __IO uint32_t *reg_dirclr; |
Kojto | 122:f9eeca106725 | 37 | __IO uint32_t *reg_out; |
Kojto | 122:f9eeca106725 | 38 | __IO uint32_t *reg_in; |
Kojto | 122:f9eeca106725 | 39 | PortName port; |
Kojto | 122:f9eeca106725 | 40 | uint32_t mask; |
Kojto | 122:f9eeca106725 | 41 | }; |
Kojto | 122:f9eeca106725 | 42 | |
Kojto | 122:f9eeca106725 | 43 | struct serial_s { |
Kojto | 122:f9eeca106725 | 44 | CMSDK_UART_TypeDef *uart; |
Kojto | 122:f9eeca106725 | 45 | int index; |
Kojto | 122:f9eeca106725 | 46 | }; |
Kojto | 122:f9eeca106725 | 47 | |
Kojto | 122:f9eeca106725 | 48 | struct i2c_s { |
Kojto | 122:f9eeca106725 | 49 | I2C_TypeDef *i2c; |
Kojto | 122:f9eeca106725 | 50 | uint16_t last_xfer_address; |
Kojto | 122:f9eeca106725 | 51 | }; |
Kojto | 122:f9eeca106725 | 52 | |
Kojto | 122:f9eeca106725 | 53 | struct spi_s { |
Kojto | 122:f9eeca106725 | 54 | SPI_TypeDef *spi; |
Kojto | 122:f9eeca106725 | 55 | }; |
Kojto | 122:f9eeca106725 | 56 | |
Kojto | 122:f9eeca106725 | 57 | struct analogin_s { |
Kojto | 122:f9eeca106725 | 58 | ADCName adc; |
Kojto | 122:f9eeca106725 | 59 | PinName pin; |
Kojto | 122:f9eeca106725 | 60 | uint32_t pin_number; |
Kojto | 122:f9eeca106725 | 61 | __IO uint32_t address; |
Kojto | 122:f9eeca106725 | 62 | }; |
Kojto | 122:f9eeca106725 | 63 | |
Kojto | 122:f9eeca106725 | 64 | #include "gpio_object.h" |
Kojto | 122:f9eeca106725 | 65 | |
Kojto | 122:f9eeca106725 | 66 | #ifdef __cplusplus |
Kojto | 122:f9eeca106725 | 67 | } |
Kojto | 122:f9eeca106725 | 68 | #endif |
Kojto | 122:f9eeca106725 | 69 | |
Kojto | 122:f9eeca106725 | 70 | #endif |