From 7f89aea2016ebde61b02914abc7984df50537f29 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 25 Jan 2017 22:02:09 +0100 Subject: o Improving the mcu-stm32 cmake library a bit. Starting on a USB example. --- cmake/mcu-stm32/conf/stm32f10x_conf.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cmake/mcu-stm32/conf/stm32f10x_conf.h (limited to 'cmake/mcu-stm32/conf') diff --git a/cmake/mcu-stm32/conf/stm32f10x_conf.h b/cmake/mcu-stm32/conf/stm32f10x_conf.h new file mode 100644 index 0000000..c8f4a4d --- /dev/null +++ b/cmake/mcu-stm32/conf/stm32f10x_conf.h @@ -0,0 +1,18 @@ +#ifndef __STM32F10x_CONF_H +#define __STM32F10x_CONF_H + +#ifdef USE_FULL_ASSERT +#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) + +#ifdef __cplusplus +extern "C" { +#endif + void assert_failed(uint8_t* file, uint32_t line); +#ifdef __cplusplus +} +#endif +#else +#define assert_param(expr) ((void)0) +#endif + +#endif -- cgit v1.2.3