aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-03-03 10:02:55 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-03-03 10:02:55 +0000
commit3d1a86e9fb0b9495a726dab534e97c063b5f368b (patch)
treeb4f2ee8b71ba6682cb897553ba0df9f7376f1562 /demos
parent390fbb5acfe140fa4b65eac5180ae726381d3b4f (diff)
downloadChibiOS-3d1a86e9fb0b9495a726dab534e97c063b5f368b.tar.gz
ChibiOS-3d1a86e9fb0b9495a726dab534e97c063b5f368b.tar.bz2
ChibiOS-3d1a86e9fb0b9495a726dab534e97c063b5f368b.zip
MISRA-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7710 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r--demos/AVR/NIL-ARDUINOMEGA/mcuconf.h5
-rw-r--r--demos/AVR/RT-ARDUINOMEGA/mcuconf.h5
-rw-r--r--demos/KINETIS/RT-FREEDOM-K20D50M-EXT/mcuconf.h5
-rw-r--r--demos/KINETIS/RT-FREEDOM-K20D50M/mcuconf.h5
-rw-r--r--demos/KINETIS/RT-FREEDOM-KL25Z-EXT/mcuconf.h5
-rw-r--r--demos/KINETIS/RT-FREEDOM-KL25Z/mcuconf.h5
-rw-r--r--demos/KINETIS/RT-MCHCK-K20-GPT/mcuconf.h4
-rw-r--r--demos/KINETIS/RT-MCHCK-K20-SPI/mcuconf.h5
-rw-r--r--demos/KINETIS/RT-TEENSY3/mcuconf.h5
-rw-r--r--demos/LPC21xx/RT-LPC214x-OLIMEX/mcuconf.h5
-rw-r--r--demos/SPC5/NIL-SPC560D-EVB/mcuconf.h5
-rw-r--r--demos/SPC5/RT-SPC560B-EVB/mcuconf.h5
-rw-r--r--demos/SPC5/RT-SPC560D-EVB/mcuconf.h5
-rw-r--r--demos/SPC5/RT-SPC560P-EVB/mcuconf.h5
-rw-r--r--demos/SPC5/RT-SPC563M-EVB/mcuconf.h5
-rw-r--r--demos/SPC5/RT-SPC564A-EVB/mcuconf.h5
-rw-r--r--demos/SPC5/RT-SPC56EC-EVB/mcuconf.h5
-rw-r--r--demos/SPC5/RT-SPC56EL-EVB/mcuconf.h5
-rw-r--r--demos/STM32/CMSIS-STM32F407-DISCOVERY/mcuconf.h5
-rw-r--r--demos/STM32/NIL-STM32F051-DISCOVERY/mcuconf.h5
-rw-r--r--demos/STM32/NIL-STM32F100-DISCOVERY/mcuconf.h4
-rw-r--r--demos/STM32/NIL-STM32F303-DISCOVERY/mcuconf.h5
-rw-r--r--demos/STM32/NIL-STM32F373-STM32373C_EVAL/mcuconf.h5
-rw-r--r--demos/STM32/NIL-STM32L152-DISCOVERY/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F030R8-NUCLEO/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F051-DISCOVERY/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F072-DISCOVERY/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F100-DISCOVERY/mcuconf.h4
-rw-r--r--demos/STM32/RT-STM32F103-MAPLEMINI/mcuconf.h4
-rw-r--r--demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h4
-rw-r--r--demos/STM32/RT-STM32F103RB-NUCLEO/mcuconf.h4
-rw-r--r--demos/STM32/RT-STM32F103_INEMO_DISCOVERY/mcuconf.h4
-rw-r--r--demos/STM32/RT-STM32F303-DISCOVERY/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F334R8-NUCLEO/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F373-STM32373C_EVAL/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F401RE-NUCLEO/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY-G++/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY-MEMS/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F411RE-NUCLEO/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32F429-DISCOVERY/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32L152-DISCOVERY/mcuconf.h5
-rw-r--r--demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h5
44 files changed, 213 insertions, 0 deletions
diff --git a/demos/AVR/NIL-ARDUINOMEGA/mcuconf.h b/demos/AVR/NIL-ARDUINOMEGA/mcuconf.h
index cb354779e..3682828bf 100644
--- a/demos/AVR/NIL-ARDUINOMEGA/mcuconf.h
+++ b/demos/AVR/NIL-ARDUINOMEGA/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* AVR drivers configuration.
* The following settings override the default settings present in
@@ -77,3 +80,5 @@
*/
#define AVR_SPI_USE_SPI1 FALSE
#define AVR_SPI_USE_16BIT_POLLED_EXCHANGE FALSE
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/AVR/RT-ARDUINOMEGA/mcuconf.h b/demos/AVR/RT-ARDUINOMEGA/mcuconf.h
index cb354779e..3682828bf 100644
--- a/demos/AVR/RT-ARDUINOMEGA/mcuconf.h
+++ b/demos/AVR/RT-ARDUINOMEGA/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* AVR drivers configuration.
* The following settings override the default settings present in
@@ -77,3 +80,5 @@
*/
#define AVR_SPI_USE_SPI1 FALSE
#define AVR_SPI_USE_16BIT_POLLED_EXCHANGE FALSE
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/KINETIS/RT-FREEDOM-K20D50M-EXT/mcuconf.h b/demos/KINETIS/RT-FREEDOM-K20D50M-EXT/mcuconf.h
index 2b013b687..198a03dcf 100644
--- a/demos/KINETIS/RT-FREEDOM-K20D50M-EXT/mcuconf.h
+++ b/demos/KINETIS/RT-FREEDOM-K20D50M-EXT/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
#define K20x_MCUCONF
/*
@@ -109,3 +112,5 @@
#define KINETIS_EXT_PORTD_WIDTH 16
#define KINETIS_EXT_PORTE_WIDTH 13
#endif
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/KINETIS/RT-FREEDOM-K20D50M/mcuconf.h b/demos/KINETIS/RT-FREEDOM-K20D50M/mcuconf.h
index 2277ad4b4..61897094e 100644
--- a/demos/KINETIS/RT-FREEDOM-K20D50M/mcuconf.h
+++ b/demos/KINETIS/RT-FREEDOM-K20D50M/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
#define K20x_MCUCONF
/*
@@ -67,3 +70,5 @@
* SERIAL driver system settings.
*/
#define KINETIS_SERIAL_USE_UART0 TRUE
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/KINETIS/RT-FREEDOM-KL25Z-EXT/mcuconf.h b/demos/KINETIS/RT-FREEDOM-KL25Z-EXT/mcuconf.h
index bd2abc1d3..da7ba95f0 100644
--- a/demos/KINETIS/RT-FREEDOM-KL25Z-EXT/mcuconf.h
+++ b/demos/KINETIS/RT-FREEDOM-KL25Z-EXT/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
#define KL2x_MCUCONF
/*
@@ -142,3 +145,5 @@
#ifndef KINETIS_EXT_PORTE_WIDTH
#define KINETIS_EXT_PORTE_WIDTH 0
#endif
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/KINETIS/RT-FREEDOM-KL25Z/mcuconf.h b/demos/KINETIS/RT-FREEDOM-KL25Z/mcuconf.h
index 5ddb8fe7e..3b77632f7 100644
--- a/demos/KINETIS/RT-FREEDOM-KL25Z/mcuconf.h
+++ b/demos/KINETIS/RT-FREEDOM-KL25Z/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
@@ -69,3 +72,5 @@
* SERIAL driver system settings.
*/
#define KINETIS_SERIAL_USE_UART0 TRUE
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/KINETIS/RT-MCHCK-K20-GPT/mcuconf.h b/demos/KINETIS/RT-MCHCK-K20-GPT/mcuconf.h
index efe95cb44..cc4b58127 100644
--- a/demos/KINETIS/RT-MCHCK-K20-GPT/mcuconf.h
+++ b/demos/KINETIS/RT-MCHCK-K20-GPT/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
#define K20x_MCUCONF
/*
@@ -72,3 +75,4 @@
/* TODO: Move this to a KINETIS registry */
#define KINETIS_HAS_PIT0 TRUE
+#endif /* _MCUCONF_H_ */
diff --git a/demos/KINETIS/RT-MCHCK-K20-SPI/mcuconf.h b/demos/KINETIS/RT-MCHCK-K20-SPI/mcuconf.h
index 4cb8eb628..70b86cf72 100644
--- a/demos/KINETIS/RT-MCHCK-K20-SPI/mcuconf.h
+++ b/demos/KINETIS/RT-MCHCK-K20-SPI/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
#define K20x_MCUCONF
/*
@@ -63,3 +66,5 @@
*/
#define KINETIS_SPI_USE_SPI0 TRUE
#define KINETIS_SPI_SPI0_IRQ_PRIORITY 8
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/KINETIS/RT-TEENSY3/mcuconf.h b/demos/KINETIS/RT-TEENSY3/mcuconf.h
index e216230c8..ae35fe36d 100644
--- a/demos/KINETIS/RT-TEENSY3/mcuconf.h
+++ b/demos/KINETIS/RT-TEENSY3/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
#define K20x_MCUCONF
/*
@@ -55,3 +58,5 @@
* SERIAL driver system settings.
*/
#define KINETIS_SERIAL_USE_UART0 TRUE
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/LPC21xx/RT-LPC214x-OLIMEX/mcuconf.h b/demos/LPC21xx/RT-LPC214x-OLIMEX/mcuconf.h
index 313ad505c..20e2e2152 100644
--- a/demos/LPC21xx/RT-LPC214x-OLIMEX/mcuconf.h
+++ b/demos/LPC21xx/RT-LPC214x-OLIMEX/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* LPC214x drivers configuration.
* The following settings override the default settings present in
@@ -51,3 +54,5 @@
* SPI driver system settings.
*/
#define USE_LPC214x_SPI1 TRUE
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/SPC5/NIL-SPC560D-EVB/mcuconf.h b/demos/SPC5/NIL-SPC560D-EVB/mcuconf.h
index 195a81a2e..0b48d33e0 100644
--- a/demos/SPC5/NIL-SPC560D-EVB/mcuconf.h
+++ b/demos/SPC5/NIL-SPC560D-EVB/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* SPC560B/Cxx drivers configuration.
* The following settings override the default settings present in
@@ -146,3 +149,5 @@
SPC5_ME_PCTL_LP(2))
#define SPC5_ADC_ADC1_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
SPC5_ME_PCTL_LP(0))
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/SPC5/RT-SPC560B-EVB/mcuconf.h b/demos/SPC5/RT-SPC560B-EVB/mcuconf.h
index 161c03b97..b510c5be3 100644
--- a/demos/SPC5/RT-SPC560B-EVB/mcuconf.h
+++ b/demos/SPC5/RT-SPC560B-EVB/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* SPC560Bxx drivers configuration.
* The following settings override the default settings present in
@@ -266,3 +269,5 @@
SPC5_ME_PCTL_LP(2))
#define SPC5_ADC_ADC1_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
SPC5_ME_PCTL_LP(0))
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/SPC5/RT-SPC560D-EVB/mcuconf.h b/demos/SPC5/RT-SPC560D-EVB/mcuconf.h
index 195a81a2e..0b48d33e0 100644
--- a/demos/SPC5/RT-SPC560D-EVB/mcuconf.h
+++ b/demos/SPC5/RT-SPC560D-EVB/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* SPC560B/Cxx drivers configuration.
* The following settings override the default settings present in
@@ -146,3 +149,5 @@
SPC5_ME_PCTL_LP(2))
#define SPC5_ADC_ADC1_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
SPC5_ME_PCTL_LP(0))
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/SPC5/RT-SPC560P-EVB/mcuconf.h b/demos/SPC5/RT-SPC560P-EVB/mcuconf.h
index f5ea0dbc4..6ec56ad71 100644
--- a/demos/SPC5/RT-SPC560P-EVB/mcuconf.h
+++ b/demos/SPC5/RT-SPC560P-EVB/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* SPC560Pxx drivers configuration.
* The following settings override the default settings present in
@@ -187,3 +190,5 @@
SPC5_ME_PCTL_LP(2))
#define SPC5_ADC_ADC1_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
SPC5_ME_PCTL_LP(0))
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/SPC5/RT-SPC563M-EVB/mcuconf.h b/demos/SPC5/RT-SPC563M-EVB/mcuconf.h
index 83acd51a4..e8f7ebd81 100644
--- a/demos/SPC5/RT-SPC563M-EVB/mcuconf.h
+++ b/demos/SPC5/RT-SPC563M-EVB/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* SPC563Mxx drivers configuration.
* The following settings override the default settings present in
@@ -151,3 +154,5 @@
#define SPC5_CAN_USE_FLEXCAN1 FALSE
#define SPC5_CAN_FLEXCAN1_USE_EXT_CLK FALSE
#define SPC5_CAN_FLEXCAN1_IRQ_PRIORITY 11
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/SPC5/RT-SPC564A-EVB/mcuconf.h b/demos/SPC5/RT-SPC564A-EVB/mcuconf.h
index 8c6e534b4..9094394d5 100644
--- a/demos/SPC5/RT-SPC564A-EVB/mcuconf.h
+++ b/demos/SPC5/RT-SPC564A-EVB/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* SPC564Axx drivers configuration.
* The following settings override the default settings present in
@@ -181,3 +184,5 @@
#define SPC5_CAN_USE_FLEXCAN2 FALSE
#define SPC5_CAN_FLEXCAN2_USE_EXT_CLK FALSE
#define SPC5_CAN_FLEXCAN2_IRQ_PRIORITY 11
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/SPC5/RT-SPC56EC-EVB/mcuconf.h b/demos/SPC5/RT-SPC56EC-EVB/mcuconf.h
index 96d37c06d..0172e8182 100644
--- a/demos/SPC5/RT-SPC56EC-EVB/mcuconf.h
+++ b/demos/SPC5/RT-SPC56EC-EVB/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* SPC56ECxx drivers configuration.
* The following settings override the default settings present in
@@ -286,3 +289,5 @@
SPC5_ME_PCTL_LP(2))
#define SPC5_ADC_ADC1_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
SPC5_ME_PCTL_LP(0))
+
+#endif /* _MCUCONF_H_ */
diff --git a/demos/SPC5/RT-SPC56EL-EVB/mcuconf.h b/demos/SPC5/RT-SPC56EL-EVB/mcuconf.h
index 542294fa3..bf28f0965 100644
--- a/demos/SPC5/RT-SPC56EL-EVB/mcuconf.h
+++ b/demos/SPC5/RT-SPC56EL-EVB/mcuconf.h
@@ -14,6 +14,9 @@
limitations under the License.
*/
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
/*
* SPC56ELxx drivers configuration.
* The following settings override the default settings present in
@@ -287,3 +290,5 @@
SPC5_ME_PCTL_LP(2))
#define SPC5_SPI_DSPI2_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
SPC5_ME_PCTL_LP(0))
+
+#endif /* _MCUCONF_H_ */
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_ */