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.

Committer:
Kojto
Date:
Tue Feb 14 11:24:20 2017 +0000
Revision:
136:ef9c61f8c49f
Parent:
123:b0220dba8be7
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?

UserRevisionLine numberNew contents of line
Kojto 123:b0220dba8be7 1 /*
Kojto 123:b0220dba8be7 2 * Copyright (c) 2013 Nordic Semiconductor ASA
Kojto 123:b0220dba8be7 3 * All rights reserved.
Kojto 123:b0220dba8be7 4 *
Kojto 123:b0220dba8be7 5 * Redistribution and use in source and binary forms, with or without modification,
Kojto 123:b0220dba8be7 6 * are permitted provided that the following conditions are met:
Kojto 123:b0220dba8be7 7 *
Kojto 123:b0220dba8be7 8 * 1. Redistributions of source code must retain the above copyright notice, this list
Kojto 123:b0220dba8be7 9 * of conditions and the following disclaimer.
Kojto 123:b0220dba8be7 10 *
Kojto 123:b0220dba8be7 11 * 2. Redistributions in binary form, except as embedded into a Nordic Semiconductor ASA
Kojto 123:b0220dba8be7 12 * integrated circuit in a product or a software update for such product, must reproduce
Kojto 123:b0220dba8be7 13 * the above copyright notice, this list of conditions and the following disclaimer in
Kojto 123:b0220dba8be7 14 * the documentation and/or other materials provided with the distribution.
Kojto 123:b0220dba8be7 15 *
Kojto 123:b0220dba8be7 16 * 3. Neither the name of Nordic Semiconductor ASA nor the names of its contributors may be
Kojto 123:b0220dba8be7 17 * used to endorse or promote products derived from this software without specific prior
Kojto 123:b0220dba8be7 18 * written permission.
Kojto 123:b0220dba8be7 19 *
Kojto 123:b0220dba8be7 20 * 4. This software, with or without modification, must only be used with a
Kojto 123:b0220dba8be7 21 * Nordic Semiconductor ASA integrated circuit.
Kojto 123:b0220dba8be7 22 *
Kojto 123:b0220dba8be7 23 * 5. Any software provided in binary or object form under this license must not be reverse
Kojto 123:b0220dba8be7 24 * engineered, decompiled, modified and/or disassembled.
Kojto 123:b0220dba8be7 25 *
Kojto 123:b0220dba8be7 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
Kojto 123:b0220dba8be7 27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Kojto 123:b0220dba8be7 28 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 123:b0220dba8be7 29 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
Kojto 123:b0220dba8be7 30 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
Kojto 123:b0220dba8be7 31 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
Kojto 123:b0220dba8be7 32 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
Kojto 123:b0220dba8be7 33 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Kojto 123:b0220dba8be7 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Kojto 123:b0220dba8be7 35 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 123:b0220dba8be7 36 *
Kojto 123:b0220dba8be7 37 */
Kojto 123:b0220dba8be7 38
Kojto 123:b0220dba8be7 39
Kojto 123:b0220dba8be7 40 /**
Kojto 123:b0220dba8be7 41 * @file device_manager_cnfg.h
Kojto 123:b0220dba8be7 42 *
Kojto 123:b0220dba8be7 43 * @cond
Kojto 123:b0220dba8be7 44 * @defgroup device_manager_cnfg Device Manager Configuration
Kojto 123:b0220dba8be7 45 * @ingroup device_manager
Kojto 123:b0220dba8be7 46 * @{
Kojto 123:b0220dba8be7 47 *
Kojto 123:b0220dba8be7 48 * @brief Defines application specific configuration for Device Manager.
Kojto 123:b0220dba8be7 49 *
Kojto 123:b0220dba8be7 50 * @details All configurations that are specific to application have been defined
Kojto 123:b0220dba8be7 51 * here. Application should configuration that best suits its requirements.
Kojto 123:b0220dba8be7 52 */
Kojto 123:b0220dba8be7 53
Kojto 123:b0220dba8be7 54 #ifndef DEVICE_MANAGER_CNFG_H__
Kojto 123:b0220dba8be7 55 #define DEVICE_MANAGER_CNFG_H__
Kojto 123:b0220dba8be7 56
Kojto 123:b0220dba8be7 57 /**
Kojto 123:b0220dba8be7 58 * @defgroup device_manager_inst Device Manager Instances
Kojto 123:b0220dba8be7 59 * @{
Kojto 123:b0220dba8be7 60 */
Kojto 123:b0220dba8be7 61 /**
Kojto 123:b0220dba8be7 62 * @brief Maximum applications that Device Manager can support.
Kojto 123:b0220dba8be7 63 *
Kojto 123:b0220dba8be7 64 * @details Maximum application that the Device Manager can support.
Kojto 123:b0220dba8be7 65 * Currently only one application can be supported.
Kojto 123:b0220dba8be7 66 * Minimum value : 1
Kojto 123:b0220dba8be7 67 * Maximum value : 1
Kojto 123:b0220dba8be7 68 * Dependencies : None.
Kojto 123:b0220dba8be7 69 */
Kojto 123:b0220dba8be7 70 #define DEVICE_MANAGER_MAX_APPLICATIONS 1
Kojto 123:b0220dba8be7 71
Kojto 123:b0220dba8be7 72 /**
Kojto 123:b0220dba8be7 73 * @brief Maximum connections that Device Manager should simultaneously manage.
Kojto 123:b0220dba8be7 74 *
Kojto 123:b0220dba8be7 75 * @details Maximum connections that Device Manager should simultaneously manage.
Kojto 123:b0220dba8be7 76 * Minimum value : 1
Kojto 123:b0220dba8be7 77 * Maximum value : Maximum links supported by SoftDevice.
Kojto 123:b0220dba8be7 78 * Dependencies : None.
Kojto 123:b0220dba8be7 79 */
Kojto 123:b0220dba8be7 80 #define DEVICE_MANAGER_MAX_CONNECTIONS 1
Kojto 123:b0220dba8be7 81
Kojto 123:b0220dba8be7 82
Kojto 123:b0220dba8be7 83 /**
Kojto 123:b0220dba8be7 84 * @brief Maximum bonds that Device Manager should manage.
Kojto 123:b0220dba8be7 85 *
Kojto 123:b0220dba8be7 86 * @details Maximum bonds that Device Manager should manage.
Kojto 123:b0220dba8be7 87 * Minimum value : 1
Kojto 123:b0220dba8be7 88 * Maximum value : 254.
Kojto 123:b0220dba8be7 89 * Dependencies : None.
Kojto 123:b0220dba8be7 90 * @note In case of GAP Peripheral role, the Device Manager will accept bonding procedure
Kojto 123:b0220dba8be7 91 * requests from peers even if this limit is reached, but bonding information will not
Kojto 123:b0220dba8be7 92 * be stored. In such cases, application will be notified with DM_DEVICE_CONTEXT_FULL
Kojto 123:b0220dba8be7 93 * as event result at the completion of the security procedure.
Kojto 123:b0220dba8be7 94 */
Kojto 123:b0220dba8be7 95 #define DEVICE_MANAGER_MAX_BONDS 7
Kojto 123:b0220dba8be7 96
Kojto 123:b0220dba8be7 97
Kojto 123:b0220dba8be7 98 /**
Kojto 123:b0220dba8be7 99 * @brief Maximum Characteristic Client Descriptors used for GATT Server.
Kojto 123:b0220dba8be7 100 *
Kojto 123:b0220dba8be7 101 * @details Maximum Characteristic Client Descriptors used for GATT Server.
Kojto 123:b0220dba8be7 102 * Minimum value : 1
Kojto 123:b0220dba8be7 103 * Maximum value : 254.
Kojto 123:b0220dba8be7 104 * Dependencies : None.
Kojto 123:b0220dba8be7 105 */
Kojto 123:b0220dba8be7 106 #define DM_GATT_CCCD_COUNT 2
Kojto 123:b0220dba8be7 107
Kojto 123:b0220dba8be7 108
Kojto 123:b0220dba8be7 109 /**
Kojto 123:b0220dba8be7 110 * @brief Size of application context.
Kojto 123:b0220dba8be7 111 *
Kojto 123:b0220dba8be7 112 * @details Size of application context that Device Manager should manage for each bonded device.
Kojto 123:b0220dba8be7 113 * Size had to be a multiple of word size.
Kojto 123:b0220dba8be7 114 * Minimum value : 4.
Kojto 123:b0220dba8be7 115 * Maximum value : 256.
Kojto 123:b0220dba8be7 116 * Dependencies : Needed only if Application Context saving is used by the application.
Kojto 123:b0220dba8be7 117 * @note If set to zero, its an indication that application context is not required to be managed
Kojto 123:b0220dba8be7 118 * by the module.
Kojto 123:b0220dba8be7 119 */
Kojto 123:b0220dba8be7 120 #define DEVICE_MANAGER_APP_CONTEXT_SIZE 0
Kojto 123:b0220dba8be7 121
Kojto 123:b0220dba8be7 122 /* @} */
Kojto 123:b0220dba8be7 123 /* @} */
Kojto 123:b0220dba8be7 124 /** @endcond */
Kojto 123:b0220dba8be7 125 #endif // DEVICE_MANAGER_CNFG_H__
Kojto 123:b0220dba8be7 126