From 3d1a86e9fb0b9495a726dab534e97c063b5f368b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 3 Mar 2015 10:02:55 +0000 Subject: MISRA-related fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7710 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM32/CMSIS-STM32F407-DISCOVERY/mcuconf.h | 5 +++++ demos/STM32/NIL-STM32F051-DISCOVERY/mcuconf.h | 5 +++++ demos/STM32/NIL-STM32F100-DISCOVERY/mcuconf.h | 4 ++++ demos/STM32/NIL-STM32F303-DISCOVERY/mcuconf.h | 5 +++++ demos/STM32/NIL-STM32F373-STM32373C_EVAL/mcuconf.h | 5 +++++ demos/STM32/NIL-STM32L152-DISCOVERY/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F030R8-NUCLEO/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F051-DISCOVERY/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F072-DISCOVERY/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F100-DISCOVERY/mcuconf.h | 4 ++++ demos/STM32/RT-STM32F103-MAPLEMINI/mcuconf.h | 4 ++++ demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h | 4 ++++ demos/STM32/RT-STM32F103RB-NUCLEO/mcuconf.h | 4 ++++ demos/STM32/RT-STM32F103_INEMO_DISCOVERY/mcuconf.h | 4 ++++ demos/STM32/RT-STM32F303-DISCOVERY/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F334R8-NUCLEO/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F373-STM32373C_EVAL/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F401RE-NUCLEO/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F407-DISCOVERY-G++/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F407-DISCOVERY-MEMS/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F407-DISCOVERY/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F411RE-NUCLEO/mcuconf.h | 5 +++++ demos/STM32/RT-STM32F429-DISCOVERY/mcuconf.h | 5 +++++ demos/STM32/RT-STM32L152-DISCOVERY/mcuconf.h | 5 +++++ demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h | 5 +++++ 26 files changed, 124 insertions(+) (limited to 'demos/STM32') diff --git a/demos/STM32/CMSIS-STM32F407-DISCOVERY/mcuconf.h b/demos/STM32/CMSIS-STM32F407-DISCOVERY/mcuconf.h index 993018b91..21e8e1931 100644 --- a/demos/STM32/CMSIS-STM32F407-DISCOVERY/mcuconf.h +++ b/demos/STM32/CMSIS-STM32F407-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F4xx drivers configuration. * The following settings override the default settings present in @@ -302,3 +305,5 @@ #define STM32_USB_OTG_THREAD_PRIO LOWPRIO #define STM32_USB_OTG_THREAD_STACK_SIZE 128 #define STM32_USB_OTGFIFO_FILL_BASEPRI 0 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/NIL-STM32F051-DISCOVERY/mcuconf.h b/demos/STM32/NIL-STM32F051-DISCOVERY/mcuconf.h index f3e60abb4..f00d17f23 100644 --- a/demos/STM32/NIL-STM32F051-DISCOVERY/mcuconf.h +++ b/demos/STM32/NIL-STM32F051-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F0xx drivers configuration. * The following settings override the default settings present in @@ -154,3 +157,5 @@ #define STM32_UART_USART1_DMA_PRIORITY 0 #define STM32_UART_USART2_DMA_PRIORITY 0 #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/NIL-STM32F100-DISCOVERY/mcuconf.h b/demos/STM32/NIL-STM32F100-DISCOVERY/mcuconf.h index a4116c746..61b1e758d 100644 --- a/demos/STM32/NIL-STM32F100-DISCOVERY/mcuconf.h +++ b/demos/STM32/NIL-STM32F100-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + #define STM32F100_MCUCONF /* @@ -180,3 +183,4 @@ #define STM32_UART_USART3_DMA_PRIORITY 0 #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/NIL-STM32F303-DISCOVERY/mcuconf.h b/demos/STM32/NIL-STM32F303-DISCOVERY/mcuconf.h index d3f27d556..d1582ae8b 100644 --- a/demos/STM32/NIL-STM32F303-DISCOVERY/mcuconf.h +++ b/demos/STM32/NIL-STM32F303-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F30x drivers configuration. * The following settings override the default settings present in @@ -217,3 +220,5 @@ #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/NIL-STM32F373-STM32373C_EVAL/mcuconf.h b/demos/STM32/NIL-STM32F373-STM32373C_EVAL/mcuconf.h index db5dfebb7..cc115e4e4 100644 --- a/demos/STM32/NIL-STM32F373-STM32373C_EVAL/mcuconf.h +++ b/demos/STM32/NIL-STM32F373-STM32373C_EVAL/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F30x drivers configuration. * The following settings override the default settings present in @@ -213,3 +216,5 @@ #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/NIL-STM32L152-DISCOVERY/mcuconf.h b/demos/STM32/NIL-STM32L152-DISCOVERY/mcuconf.h index b83806ebc..2adfdbff6 100644 --- a/demos/STM32/NIL-STM32L152-DISCOVERY/mcuconf.h +++ b/demos/STM32/NIL-STM32L152-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32L1xx drivers configuration. * The following settings override the default settings present in @@ -175,3 +178,5 @@ #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F030R8-NUCLEO/mcuconf.h b/demos/STM32/RT-STM32F030R8-NUCLEO/mcuconf.h index 8d3a8d5e8..50f7f6d06 100644 --- a/demos/STM32/RT-STM32F030R8-NUCLEO/mcuconf.h +++ b/demos/STM32/RT-STM32F030R8-NUCLEO/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F0xx drivers configuration. * The following settings override the default settings present in @@ -148,3 +151,5 @@ #define STM32_UART_USART1_DMA_PRIORITY 0 #define STM32_UART_USART2_DMA_PRIORITY 0 #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F051-DISCOVERY/mcuconf.h b/demos/STM32/RT-STM32F051-DISCOVERY/mcuconf.h index f3e60abb4..f00d17f23 100644 --- a/demos/STM32/RT-STM32F051-DISCOVERY/mcuconf.h +++ b/demos/STM32/RT-STM32F051-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F0xx drivers configuration. * The following settings override the default settings present in @@ -154,3 +157,5 @@ #define STM32_UART_USART1_DMA_PRIORITY 0 #define STM32_UART_USART2_DMA_PRIORITY 0 #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F072-DISCOVERY/mcuconf.h b/demos/STM32/RT-STM32F072-DISCOVERY/mcuconf.h index 6fb745217..d472167d5 100644 --- a/demos/STM32/RT-STM32F072-DISCOVERY/mcuconf.h +++ b/demos/STM32/RT-STM32F072-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F0xx drivers configuration. * The following settings override the default settings present in @@ -163,3 +166,5 @@ #define STM32_USB_USE_USB1 FALSE #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE #define STM32_USB_USB1_LP_IRQ_PRIORITY 3 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F100-DISCOVERY/mcuconf.h b/demos/STM32/RT-STM32F100-DISCOVERY/mcuconf.h index a4116c746..61b1e758d 100644 --- a/demos/STM32/RT-STM32F100-DISCOVERY/mcuconf.h +++ b/demos/STM32/RT-STM32F100-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + #define STM32F100_MCUCONF /* @@ -180,3 +183,4 @@ #define STM32_UART_USART3_DMA_PRIORITY 0 #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F103-MAPLEMINI/mcuconf.h b/demos/STM32/RT-STM32F103-MAPLEMINI/mcuconf.h index 2f28b5712..626332a6a 100644 --- a/demos/STM32/RT-STM32F103-MAPLEMINI/mcuconf.h +++ b/demos/STM32/RT-STM32F103-MAPLEMINI/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + #define STM32F103_MCUCONF /* @@ -203,3 +206,4 @@ #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h index 06edc0795..9b74b9557 100644 --- a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h +++ b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + #define STM32F103_MCUCONF /* @@ -203,3 +206,4 @@ #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F103RB-NUCLEO/mcuconf.h b/demos/STM32/RT-STM32F103RB-NUCLEO/mcuconf.h index 67af36f7b..0e37a0335 100644 --- a/demos/STM32/RT-STM32F103RB-NUCLEO/mcuconf.h +++ b/demos/STM32/RT-STM32F103RB-NUCLEO/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + #define STM32F103_MCUCONF /* @@ -203,3 +206,4 @@ #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/mcuconf.h b/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/mcuconf.h index 2f28b5712..626332a6a 100644 --- a/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/mcuconf.h +++ b/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + #define STM32F103_MCUCONF /* @@ -203,3 +206,4 @@ #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F303-DISCOVERY/mcuconf.h b/demos/STM32/RT-STM32F303-DISCOVERY/mcuconf.h index e8e0a19d5..20f75e884 100644 --- a/demos/STM32/RT-STM32F303-DISCOVERY/mcuconf.h +++ b/demos/STM32/RT-STM32F303-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F3xx drivers configuration. * The following settings override the default settings present in @@ -217,3 +220,5 @@ #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F334R8-NUCLEO/mcuconf.h b/demos/STM32/RT-STM32F334R8-NUCLEO/mcuconf.h index a2df10c1f..756c50eb0 100644 --- a/demos/STM32/RT-STM32F334R8-NUCLEO/mcuconf.h +++ b/demos/STM32/RT-STM32F334R8-NUCLEO/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F3xx drivers configuration. * The following settings override the default settings present in @@ -172,3 +175,5 @@ #define STM32_UART_USART2_DMA_PRIORITY 0 #define STM32_UART_USART3_DMA_PRIORITY 0 #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F373-STM32373C_EVAL/mcuconf.h b/demos/STM32/RT-STM32F373-STM32373C_EVAL/mcuconf.h index db5dfebb7..cc115e4e4 100644 --- a/demos/STM32/RT-STM32F373-STM32373C_EVAL/mcuconf.h +++ b/demos/STM32/RT-STM32F373-STM32373C_EVAL/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F30x drivers configuration. * The following settings override the default settings present in @@ -213,3 +216,5 @@ #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F401RE-NUCLEO/mcuconf.h b/demos/STM32/RT-STM32F401RE-NUCLEO/mcuconf.h index f2258c039..82e6f31d8 100644 --- a/demos/STM32/RT-STM32F401RE-NUCLEO/mcuconf.h +++ b/demos/STM32/RT-STM32F401RE-NUCLEO/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F4xx drivers configuration. * The following settings override the default settings present in @@ -224,3 +227,5 @@ #define STM32_USB_OTG_THREAD_PRIO LOWPRIO #define STM32_USB_OTG_THREAD_STACK_SIZE 128 #define STM32_USB_OTGFIFO_FILL_BASEPRI 0 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F407-DISCOVERY-G++/mcuconf.h b/demos/STM32/RT-STM32F407-DISCOVERY-G++/mcuconf.h index a462f546a..ab65a3f61 100644 --- a/demos/STM32/RT-STM32F407-DISCOVERY-G++/mcuconf.h +++ b/demos/STM32/RT-STM32F407-DISCOVERY-G++/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F4xx drivers configuration. * The following settings override the default settings present in @@ -302,3 +305,5 @@ #define STM32_USB_OTG_THREAD_PRIO LOWPRIO #define STM32_USB_OTG_THREAD_STACK_SIZE 128 #define STM32_USB_OTGFIFO_FILL_BASEPRI 0 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F407-DISCOVERY-MEMS/mcuconf.h b/demos/STM32/RT-STM32F407-DISCOVERY-MEMS/mcuconf.h index 989666e98..adbb05c94 100644 --- a/demos/STM32/RT-STM32F407-DISCOVERY-MEMS/mcuconf.h +++ b/demos/STM32/RT-STM32F407-DISCOVERY-MEMS/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F4xx drivers configuration. * The following settings override the default settings present in @@ -302,3 +305,5 @@ #define STM32_USB_OTG_THREAD_PRIO LOWPRIO #define STM32_USB_OTG_THREAD_STACK_SIZE 128 #define STM32_USB_OTGFIFO_FILL_BASEPRI 0 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F407-DISCOVERY/mcuconf.h b/demos/STM32/RT-STM32F407-DISCOVERY/mcuconf.h index 993018b91..21e8e1931 100644 --- a/demos/STM32/RT-STM32F407-DISCOVERY/mcuconf.h +++ b/demos/STM32/RT-STM32F407-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F4xx drivers configuration. * The following settings override the default settings present in @@ -302,3 +305,5 @@ #define STM32_USB_OTG_THREAD_PRIO LOWPRIO #define STM32_USB_OTG_THREAD_STACK_SIZE 128 #define STM32_USB_OTGFIFO_FILL_BASEPRI 0 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/mcuconf.h b/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/mcuconf.h index 14751a976..7f93c1095 100644 --- a/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/mcuconf.h +++ b/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F4xx drivers configuration. * The following settings override the default settings present in @@ -302,3 +305,5 @@ #define STM32_USB_OTG_THREAD_PRIO LOWPRIO #define STM32_USB_OTG_THREAD_STACK_SIZE 128 #define STM32_USB_OTGFIFO_FILL_BASEPRI 0 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F411RE-NUCLEO/mcuconf.h b/demos/STM32/RT-STM32F411RE-NUCLEO/mcuconf.h index 6e7e47f3b..be7d38f3b 100644 --- a/demos/STM32/RT-STM32F411RE-NUCLEO/mcuconf.h +++ b/demos/STM32/RT-STM32F411RE-NUCLEO/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F4xx drivers configuration. * The following settings override the default settings present in @@ -224,3 +227,5 @@ #define STM32_USB_OTG_THREAD_PRIO LOWPRIO #define STM32_USB_OTG_THREAD_STACK_SIZE 128 #define STM32_USB_OTGFIFO_FILL_BASEPRI 0 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32F429-DISCOVERY/mcuconf.h b/demos/STM32/RT-STM32F429-DISCOVERY/mcuconf.h index 62e35f211..859f99471 100644 --- a/demos/STM32/RT-STM32F429-DISCOVERY/mcuconf.h +++ b/demos/STM32/RT-STM32F429-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32F4xx drivers configuration. * The following settings override the default settings present in @@ -317,3 +320,5 @@ #define STM32_USB_OTG_THREAD_PRIO LOWPRIO #define STM32_USB_OTG_THREAD_STACK_SIZE 128 #define STM32_USB_OTGFIFO_FILL_BASEPRI 0 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32L152-DISCOVERY/mcuconf.h b/demos/STM32/RT-STM32L152-DISCOVERY/mcuconf.h index b83806ebc..2adfdbff6 100644 --- a/demos/STM32/RT-STM32L152-DISCOVERY/mcuconf.h +++ b/demos/STM32/RT-STM32L152-DISCOVERY/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32L1xx drivers configuration. * The following settings override the default settings present in @@ -175,3 +178,5 @@ #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 + +#endif /* _MCUCONF_H_ */ diff --git a/demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h b/demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h index 6d2b6367c..07fd9aaa1 100644 --- a/demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h +++ b/demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h @@ -14,6 +14,9 @@ limitations under the License. */ +#ifndef _MCUCONF_H_ +#define _MCUCONF_H_ + /* * STM32L1xx drivers configuration. * The following settings override the default settings present in @@ -175,3 +178,5 @@ #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 + +#endif /* _MCUCONF_H_ */ -- cgit v1.2.3