mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Diff: targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_def.h
- Revision:
- 489:119543c9f674
- Parent:
- 387:643a59b3dbac
--- a/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_def.h Thu Mar 05 13:15:07 2015 +0000 +++ b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_def.h Thu Mar 12 14:30:49 2015 +0000 @@ -2,14 +2,14 @@ ****************************************************************************** * @file stm32l0xx_hal_def.h * @author MCD Application Team - * @version V1.1.0 - * @date 18-June-2014 + * @version V1.2.0 + * @date 06-February-2015 * @brief This file contains HAL common defines, enumeration, macros and * structures definitions. ****************************************************************************** * @attention * - * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> + * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -46,6 +46,8 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32l0xx.h" +#include "stm32_hal_legacy.h" +#include <stdio.h> /* Exported types ------------------------------------------------------------*/ @@ -70,9 +72,8 @@ } HAL_LockTypeDef; /* Exported macro ------------------------------------------------------------*/ -#ifndef HAL_NULL - #define HAL_NULL (void *) 0 -#endif + +#define UNUSED(x) ((void)(x)) #define HAL_MAX_DELAY 0xFFFFFFFF @@ -133,6 +134,9 @@ #ifndef __packed #define __packed __attribute__((__packed__)) #endif /* __packed */ + + #define __NOINLINE __attribute__ ( (noinline) ) + #endif /* __GNUC__ */ @@ -172,6 +176,9 @@ */ #define __RAM_FUNC HAL_StatusTypeDef +#define __NOINLINE __attribute__ ( (noinline) ) + + #elif defined ( __ICCARM__ ) /* ICCARM Compiler --------------- @@ -179,6 +186,8 @@ */ #define __RAM_FUNC __ramfunc HAL_StatusTypeDef +#define __NOINLINE _Pragma("optimize = no_inline") + #elif defined ( __GNUC__ ) /* GNU Compiler ------------ @@ -196,3 +205,4 @@ #endif /* ___STM32L0xx_HAL_DEF */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ +