mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 03:03:10 +00:00
734820c137
* Targets: add F6 * F6: Update linker script for use with internal storage * F6: synchronize with F5, add all changes arriving in V9 board, update cube project. Github workflow: add multi-target build, add F6 to build targets. * CI: fix full assembly * CI: better artifact naming scheme * CI: fix artifacts wildcard * F6: Swap C10 - A15, vibro and sdcard detect pins
53 lines
2 KiB
C
53 lines
2 KiB
C
/**
|
|
******************************************************************************
|
|
* @file stm32_assert.h
|
|
* @brief STM32 assert file.
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* <h2><center>© Copyright (c) 2019 STMicroelectronics.
|
|
* All rights reserved.</center></h2>
|
|
*
|
|
* This software component is licensed by ST under BSD 3-Clause license,
|
|
* the "License"; You may not use this file except in compliance with the
|
|
* License. You may obtain a copy of the License at:
|
|
* opensource.org/licenses/BSD-3-Clause
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __STM32_ASSERT_H
|
|
#define __STM32_ASSERT_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
/* Exported constants --------------------------------------------------------*/
|
|
/* Includes ------------------------------------------------------------------*/
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
#ifdef USE_FULL_ASSERT
|
|
/**
|
|
* @brief The assert_param macro is used for function's parameters check.
|
|
* @param expr: If expr is false, it calls assert_failed function
|
|
* which reports the name of the source file and the source
|
|
* line number of the call that failed.
|
|
* If expr is true, it returns no value.
|
|
* @retval None
|
|
*/
|
|
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
|
|
/* Exported functions ------------------------------------------------------- */
|
|
void assert_failed(uint8_t* file, uint32_t line);
|
|
#else
|
|
#define assert_param(expr) ((void)0U)
|
|
#endif /* USE_FULL_ASSERT */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __STM32_ASSERT_H */
|
|
|
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|