4d6b170769
* Fixing compiler warnings with -Wextra * More warnings suppression, WIP * Even more warning fixes * Added new lines at end of text files. * Padding fix * Additional fixes to warnings on different build configurations; added -Wextra to default build pipeline * Fixes for Secplus v1 * -additional warnings * +-Wredundant-decls fixes * FuriHal: print stack overflow task name in console * FuriHal: add missing include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
52 lines
1.6 KiB
C
52 lines
1.6 KiB
C
/**
|
|
******************************************************************************
|
|
* @file stm32_assert.h
|
|
* @author MCD Application Team
|
|
* @brief STM32 assert template file.
|
|
* This file should be copied to the application folder and renamed
|
|
* to stm32_assert.h.
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2019 STMicroelectronics.
|
|
* All rights reserved.
|
|
*
|
|
* This software is licensed under terms that can be found in the LICENSE file
|
|
* in the root directory of this software component.
|
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef STM32_ASSERT_H
|
|
#define STM32_ASSERT_H
|
|
|
|
#include <furi/check.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
/* Exported constants --------------------------------------------------------*/
|
|
/* Includes ------------------------------------------------------------------*/
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
|
|
/* We're confident in the parameters we pass to LL functions, so we can skip asserts
|
|
* since they introduce significant bloat to debug builds */
|
|
|
|
#ifdef FURI_LL_DEBUG
|
|
#define assert_param furi_assert
|
|
#else
|
|
#define assert_param(__e) \
|
|
do { \
|
|
((void)(__e)); \
|
|
} while(0)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* STM32_ASSERT_H */ |