diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-07-21 20:29:14 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-07-21 22:40:56 -0400 |
commit | 893acdb56bddbe8c24b51050187325f71e439798 (patch) | |
tree | 705cd4b3422c83967a8e0b4533aee21b32ea3b3d /lib/stm32f1/hal/include/stm32_assert_template.h | |
parent | 17bd595b155304e9f1defa480f5eb7d8c060d9d6 (diff) | |
download | kutter-893acdb56bddbe8c24b51050187325f71e439798.tar.gz kutter-893acdb56bddbe8c24b51050187325f71e439798.tar.xz kutter-893acdb56bddbe8c24b51050187325f71e439798.zip |
lib: Update stm32f1 code to version 1.8.0
Update the stm32f1 code to the latest from ST. Merge the
lib/cmsis-stm32f1/ and lib/hal-stm32f1/ into a single lib/stm32f1/
directory. Document all the differences from the pristine upstream
code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'lib/stm32f1/hal/include/stm32_assert_template.h')
-rw-r--r-- | lib/stm32f1/hal/include/stm32_assert_template.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/lib/stm32f1/hal/include/stm32_assert_template.h b/lib/stm32f1/hal/include/stm32_assert_template.h new file mode 100644 index 00000000..009a5491 --- /dev/null +++ b/lib/stm32f1/hal/include/stm32_assert_template.h @@ -0,0 +1,57 @@ +/**
+ ******************************************************************************
+ * @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
+ *
+ * <h2><center>© Copyright (c) 2016 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****/
|