diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-01-25 22:02:09 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-01-25 22:02:09 +0100 |
commit | 7f89aea2016ebde61b02914abc7984df50537f29 (patch) | |
tree | f21117d11242e26aeb880058f07263431adf869d /cmake/mcu-stm32/conf/stm32f10x_conf.h | |
parent | 8a3fedbcb8fc58dae8b43db3cae39688ec0332ef (diff) | |
download | stm32f103-playground-7f89aea2016ebde61b02914abc7984df50537f29.tar.gz stm32f103-playground-7f89aea2016ebde61b02914abc7984df50537f29.tar.bz2 stm32f103-playground-7f89aea2016ebde61b02914abc7984df50537f29.tar.xz stm32f103-playground-7f89aea2016ebde61b02914abc7984df50537f29.zip |
o Improving the mcu-stm32 cmake library a bit. Starting on a USB example.
Diffstat (limited to 'cmake/mcu-stm32/conf/stm32f10x_conf.h')
-rw-r--r-- | cmake/mcu-stm32/conf/stm32f10x_conf.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 |