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_ARM_BEETLE_SOC/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_assert.h@128:9bcdf88f62b0, 2016-10-27 (annotated)
- Committer:
- <>
- Date:
- Thu Oct 27 16:45:56 2016 +0100
- Revision:
- 128:9bcdf88f62b0
- Parent:
- 122:f9eeca106725
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 | 122:f9eeca106725 | 1 | /*************************************************************************************************/ |
| Kojto | 122:f9eeca106725 | 2 | /*! |
| Kojto | 122:f9eeca106725 | 3 | * \file wsf_assert.h |
| Kojto | 122:f9eeca106725 | 4 | * |
| Kojto | 122:f9eeca106725 | 5 | * \brief Assert macro. |
| Kojto | 122:f9eeca106725 | 6 | * |
| <> | 128:9bcdf88f62b0 | 7 | * $Date: 2015-10-05 09:54:16 -0700 (Mon, 05 Oct 2015) $ |
| Kojto | 122:f9eeca106725 | 8 | * $Revision: 4112 $ |
| Kojto | 122:f9eeca106725 | 9 | * |
| <> | 128:9bcdf88f62b0 | 10 | * Copyright (c) 2009 Wicentric, Inc., all rights reserved. |
| <> | 128:9bcdf88f62b0 | 11 | * Wicentric confidential and proprietary. |
| Kojto | 122:f9eeca106725 | 12 | * |
| <> | 128:9bcdf88f62b0 | 13 | * IMPORTANT. Your use of this file is governed by a Software License Agreement |
| <> | 128:9bcdf88f62b0 | 14 | * ("Agreement") that must be accepted in order to download or otherwise receive a |
| <> | 128:9bcdf88f62b0 | 15 | * copy of this file. You may not use or copy this file for any purpose other than |
| <> | 128:9bcdf88f62b0 | 16 | * as described in the Agreement. If you do not agree to all of the terms of the |
| <> | 128:9bcdf88f62b0 | 17 | * Agreement do not use this file and delete all copies in your possession or control; |
| <> | 128:9bcdf88f62b0 | 18 | * if you do not have a copy of the Agreement, you must contact Wicentric, Inc. prior |
| <> | 128:9bcdf88f62b0 | 19 | * to any use, copying or further distribution of this software. |
| Kojto | 122:f9eeca106725 | 20 | */ |
| Kojto | 122:f9eeca106725 | 21 | /*************************************************************************************************/ |
| Kojto | 122:f9eeca106725 | 22 | #ifndef WSF_ASSERT_H |
| Kojto | 122:f9eeca106725 | 23 | #define WSF_ASSERT_H |
| Kojto | 122:f9eeca106725 | 24 | |
| Kojto | 122:f9eeca106725 | 25 | #ifdef __cplusplus |
| Kojto | 122:f9eeca106725 | 26 | extern "C" { |
| Kojto | 122:f9eeca106725 | 27 | #endif |
| Kojto | 122:f9eeca106725 | 28 | |
| Kojto | 122:f9eeca106725 | 29 | /************************************************************************************************** |
| Kojto | 122:f9eeca106725 | 30 | Function Prototypes |
| Kojto | 122:f9eeca106725 | 31 | **************************************************************************************************/ |
| Kojto | 122:f9eeca106725 | 32 | |
| Kojto | 122:f9eeca106725 | 33 | #if WSF_TOKEN_ENABLED == TRUE |
| Kojto | 122:f9eeca106725 | 34 | void WsfAssert(uint16_t modId, uint16_t line); |
| Kojto | 122:f9eeca106725 | 35 | #else |
| Kojto | 122:f9eeca106725 | 36 | void WsfAssert(const char *pFile, uint16_t line); |
| Kojto | 122:f9eeca106725 | 37 | #endif |
| Kojto | 122:f9eeca106725 | 38 | |
| Kojto | 122:f9eeca106725 | 39 | /************************************************************************************************** |
| Kojto | 122:f9eeca106725 | 40 | Macros |
| Kojto | 122:f9eeca106725 | 41 | **************************************************************************************************/ |
| Kojto | 122:f9eeca106725 | 42 | |
| Kojto | 122:f9eeca106725 | 43 | /*************************************************************************************************/ |
| Kojto | 122:f9eeca106725 | 44 | /*! |
| Kojto | 122:f9eeca106725 | 45 | * \def WSF_ASSERT |
| Kojto | 122:f9eeca106725 | 46 | * |
| Kojto | 122:f9eeca106725 | 47 | * \brief Run-time assert macro. The assert executes when the expression is FALSE. |
| Kojto | 122:f9eeca106725 | 48 | * |
| Kojto | 122:f9eeca106725 | 49 | * \param expr Boolean expression to be tested. |
| Kojto | 122:f9eeca106725 | 50 | */ |
| Kojto | 122:f9eeca106725 | 51 | /*************************************************************************************************/ |
| Kojto | 122:f9eeca106725 | 52 | #if WSF_ASSERT_ENABLED == TRUE |
| Kojto | 122:f9eeca106725 | 53 | #if WSF_TOKEN_ENABLED == TRUE |
| Kojto | 122:f9eeca106725 | 54 | #define WSF_ASSERT(expr) if (!(expr)) {WsfAssert(MODULE_ID, (uint16_t) __LINE__);} |
| Kojto | 122:f9eeca106725 | 55 | #else |
| Kojto | 122:f9eeca106725 | 56 | #define WSF_ASSERT(expr) if (!(expr)) {WsfAssert(__FILE__, (uint16_t) __LINE__);} |
| Kojto | 122:f9eeca106725 | 57 | #endif |
| Kojto | 122:f9eeca106725 | 58 | #else |
| Kojto | 122:f9eeca106725 | 59 | #define WSF_ASSERT(expr) |
| Kojto | 122:f9eeca106725 | 60 | #endif |
| Kojto | 122:f9eeca106725 | 61 | |
| Kojto | 122:f9eeca106725 | 62 | /*************************************************************************************************/ |
| Kojto | 122:f9eeca106725 | 63 | /*! |
| Kojto | 122:f9eeca106725 | 64 | * \def WSF_CT_ASSERT |
| Kojto | 122:f9eeca106725 | 65 | * |
| Kojto | 122:f9eeca106725 | 66 | * \brief Compile-time assert macro. This macro causes a compiler error when the |
| Kojto | 122:f9eeca106725 | 67 | * expression is FALSE. Note that this macro is generally used at file scope to |
| Kojto | 122:f9eeca106725 | 68 | * test constant expressions. Errors may result of it is used in executing code. |
| Kojto | 122:f9eeca106725 | 69 | * |
| Kojto | 122:f9eeca106725 | 70 | * \param expr Boolean expression to be tested. |
| Kojto | 122:f9eeca106725 | 71 | */ |
| Kojto | 122:f9eeca106725 | 72 | /*************************************************************************************************/ |
| Kojto | 122:f9eeca106725 | 73 | #define WSF_CT_ASSERT(expr) extern char wsf_ct_assert[(expr) ? 1 : -1] |
| Kojto | 122:f9eeca106725 | 74 | |
| Kojto | 122:f9eeca106725 | 75 | #ifdef __cplusplus |
| Kojto | 122:f9eeca106725 | 76 | }; |
| Kojto | 122:f9eeca106725 | 77 | #endif |
| Kojto | 122:f9eeca106725 | 78 | |
| Kojto | 122:f9eeca106725 | 79 | #endif /* WSF_ASSERT_H */ |


