Skip to content

Commit e9d8608

Browse files
committed
Update boards.txt to manage boards properly
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent ee202cf commit e9d8608

21 files changed

+140
-103
lines changed

boards.txt

Lines changed: 90 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,112 @@
11
# See: http://code.google.com/p/arduino/wiki/Platforms
22

33
menu.upload_method=Upload method
4+
menu.Nucleo_64_board=Nucleo 64 boards
5+
menu.Nucleo_144_board=Nucleo 144 boards
6+
menu.Disco_board=Discovery boards
47

58
################################################################################
9+
# Nucleo 144 boards
10+
11+
Nucleo_144.name=Nucleo-144 (Select board from submenu)
12+
13+
Nucleo_144.build.vid=0x0483
14+
Nucleo_144.build.pid=0x5711
15+
Nucleo_144.vid.0=0x0483
16+
Nucleo_144.pid.0=0x5711
17+
18+
Nucleo_144.build.core=arduino
19+
Nucleo_144.build.board=Nucleo_144
20+
621
# NUCLEO_F429ZI board
722

8-
NUCLEO_F429ZI.name=Nucleo F429ZI
9-
10-
NUCLEO_F429ZI.vid.0=0x0483
11-
NUCLEO_F429ZI.pid.0=0x5711
12-
NUCLEO_F429ZI.node=NODE_F429ZI
13-
14-
NUCLEO_F429ZI.upload.tool=nucleoFlasher
15-
NUCLEO_F429ZI.upload.protocol=nucleoFlasher
16-
NUCLEO_F429ZI.upload.maximum_size=2097151
17-
NUCLEO_F429ZI.upload.maximum_data_size=262144
18-
19-
NUCLEO_F429ZI.build.mcu=cortex-m4
20-
NUCLEO_F429ZI.build.f_cpu=16000000L
21-
NUCLEO_F429ZI.build.vid=0x0483
22-
NUCLEO_F429ZI.build.pid=0x5711
23-
NUCLEO_F429ZI.build.usb_product="NUCLEO-F429ZI"
24-
NUCLEO_F429ZI.build.board=NUCLEO_F429ZI
25-
NUCLEO_F429ZI.build.series=STM32F4xx
26-
NUCLEO_F429ZI.build.core=arduino
27-
NUCLEO_F429ZI.build.ldscript=linker_scripts/gcc/STM32F429ZI_FLASH.ld
28-
NUCLEO_F429ZI.build.variant=STM32F429ZI_Nucleo
29-
NUCLEO_F429ZI.build.cmsis_lib_gcc=arm_cortexM4l_math
23+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI=Nucleo F429ZI
24+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.node=NODE_F429ZI
25+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.upload.maximum_size=2097152
26+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.upload.maximum_data_size=262144
27+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.build.mcu=cortex-m4
28+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.build.f_cpu=16000000L
29+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.build.usb_product="NUCLEO-F429ZI"
30+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.build.board=NUCLEO_F429ZI
31+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.build.series=STM32F4xx
32+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.build.ldscript=linker_scripts/gcc/STM32F429ZI_FLASH.ld
33+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.build.variant=NUCLEO_F429ZI
34+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.build.cmsis_lib_gcc=arm_cortexM4l_math
3035
#To enable USB add '-DUSBCON'
3136
#To enable HID (keyboard and mouse support) add also '-DUSBD_USE_HID_COMPOSITE'
32-
NUCLEO_F429ZI.build.extra_flags=-DSTM32F429xx {build.usb_flags}
37+
Nucleo_144.menu.Nucleo_144_board.NUCLEO_F429ZI.build.extra_flags=-DSTM32F429xx {build.usb_flags}
38+
3339

34-
NUCLEO_F429ZI.menu.upload_method.MassStorageMethod=Mass Storage
35-
NUCLEO_F429ZI.menu.upload_method.MassStorageMethod.upload.protocol=
36-
NUCLEO_F429ZI.menu.upload_method.MassStorageMethod.upload.tool=nucleoFlasher
40+
Nucleo_144.menu.upload_method.MassStorageMethod=Mass Storage
41+
Nucleo_144.menu.upload_method.MassStorageMethod.upload.protocol=
42+
Nucleo_144.menu.upload_method.MassStorageMethod.upload.tool=nucleoFlasher
3743

38-
NUCLEO_F429ZI.menu.upload_method.STLinkMethod=STLink
39-
NUCLEO_F429ZI.menu.upload_method.STLinkMethod.upload.protocol=STLink
40-
NUCLEO_F429ZI.menu.upload_method.STLinkMethod.upload.tool=stlink_upload
44+
Nucleo_144.menu.upload_method.STLinkMethod=STLink
45+
Nucleo_144.menu.upload_method.STLinkMethod.upload.protocol=STLink
46+
Nucleo_144.menu.upload_method.STLinkMethod.upload.tool=stlink_upload
4147

4248
################################################################################
49+
# Nucleo 64 boards
50+
51+
Nucleo_64.name=Nucleo-64 (Select board from submenu)
52+
53+
Nucleo_64.build.vid=0x0483
54+
Nucleo_64.build.pid=0x5711
55+
Nucleo_64.vid.0=0x0483
56+
Nucleo_64.pid.0=0x5711
57+
58+
Nucleo_64.build.core=arduino
59+
Nucleo_64.build.board=Nucleo_64
60+
61+
62+
Nucleo_64.menu.upload_method.MassStorageMethod=Mass Storage
63+
Nucleo_64.menu.upload_method.MassStorageMethod.upload.protocol=
64+
Nucleo_64.menu.upload_method.MassStorageMethod.upload.tool=nucleoFlasher
65+
66+
Nucleo_64.menu.upload_method.STLinkMethod=STLink
67+
Nucleo_64.menu.upload_method.STLinkMethod.upload.protocol=STLink
68+
Nucleo_64.menu.upload_method.STLinkMethod.upload.tool=stlink_upload
69+
70+
################################################################################
71+
# Discovery boards
72+
73+
Disco_board.name=Discovery (Select board from submenu)
74+
75+
Disco_board.build.vid=0x0483
76+
Disco_board.build.pid=0x5711
77+
Disco_board.vid.0=0x0483
78+
Disco_board.pid.0=0x5711
79+
80+
Disco_board.build.core=arduino
81+
Disco_board.build.board=Disco_board
82+
4383
# DISCO_F407VG board
4484

45-
DISCO_F407VG.name=STM32F407G-DISC1
46-
47-
DISCO_F407VG.vid.0=0x0483
48-
DISCO_F407VG.pid.0=0x5712B
49-
DISCO_F407VG.node=DIS_F407VG
50-
51-
DISCO_F407VG.upload.tool=nucleoFlasher
52-
DISCO_F407VG.upload.protocol=nucleoFlasher
53-
DISCO_F407VG.upload.maximum_size=1048576
54-
DISCO_F407VG.upload.maximum_data_size=196608
55-
56-
DISCO_F407VG.build.mcu=cortex-m4
57-
DISCO_F407VG.build.f_cpu=16000000L
58-
DISCO_F407VG.build.vid=0x0483
59-
DISCO_F407VG.build.pid=0x5712B
60-
DISCO_F407VG.build.usb_product="DISCO-F407G"
61-
DISCO_F407VG.build.board=DISCO_F407VG
62-
DISCO_F407VG.build.series=STM32F4xx
63-
DISCO_F407VG.build.core=arduino
64-
DISCO_F407VG.build.ldscript=linker_scripts/gcc/STM32F407VGTx_FLASH.ld
65-
DISCO_F407VG.build.variant=STM32F407VG_Disco
66-
DISCO_F407VG.build.cmsis_lib_gcc=arm_cortexM4l_math
85+
Disco_board.menu.Disco_board.DISCO_F407VG=STM32F407G-DISC1
86+
Disco_board.menu.Disco_board.DISCO_F407VG.node=DIS_F407VG
87+
Disco_board.menu.Disco_board.DISCO_F407VG.upload.maximum_size=1048576
88+
Disco_board.menu.Disco_board.DISCO_F407VG.upload.maximum_data_size=196608
89+
Disco_board.menu.Disco_board.DISCO_F407VG.build.mcu=cortex-m4
90+
Disco_board.menu.Disco_board.DISCO_F407VG.build.f_cpu=16000000L
91+
Disco_board.menu.Disco_board.DISCO_F407VG.build.usb_product="DISCO-F407G"
92+
Disco_board.menu.Disco_board.DISCO_F407VG.build.board=DISCO_F407VG
93+
Disco_board.menu.Disco_board.DISCO_F407VG.build.series=STM32F4xx
94+
Disco_board.menu.Disco_board.DISCO_F407VG.build.ldscript=linker_scripts/gcc/STM32F407VGTx_FLASH.ld
95+
Disco_board.menu.Disco_board.DISCO_F407VG.build.variant=DISCO_F407VG
96+
Disco_board.menu.Disco_board.DISCO_F407VG.build.cmsis_lib_gcc=arm_cortexM4l_math
6797

6898
#To enable USB add '-DUSBCON'
6999
#To enable HID (keyboard and mouse support) add also '-DUSBD_USE_HID_COMPOSITE'
70-
DISCO_F407VG.build.extra_flags=-DSTM32F407xx {build.usb_flags}
100+
Disco_board.menu.Disco_board.DISCO_F407VG.build.extra_flags=-DSTM32F407xx {build.usb_flags}
101+
102+
103+
Disco_board.menu.upload_method.MassStorageMethod=Mass Storage
104+
Disco_board.menu.upload_method.MassStorageMethod.upload.protocol=
105+
Disco_board.menu.upload_method.MassStorageMethod.upload.tool=nucleoFlasher
71106

72-
DISCO_F407VG.menu.upload_method.MassStorageMethod=Mass Storage
73-
DISCO_F407VG.menu.upload_method.MassStorageMethod.upload.protocol=
74-
DISCO_F407VG.menu.upload_method.MassStorageMethod.upload.tool=nucleoFlasher
107+
Disco_board.menu.upload_method.STLinkMethod=STLink
108+
Disco_board.menu.upload_method.STLinkMethod.upload.protocol=STLink
109+
Disco_board.menu.upload_method.STLinkMethod.upload.tool=stlink_upload
75110

76-
DISCO_F407VG.menu.upload_method.STLinkMethod=STLink
77-
DISCO_F407VG.menu.upload_method.STLinkMethod.upload.protocol=STLink
78-
DISCO_F407VG.menu.upload_method.STLinkMethod.upload.tool=stlink_upload
79111

80112
################################################################################

variants/STM32F429ZI_Nucleo/stm32f4xx_hal_conf.h renamed to variants/NUCLEO_F429ZI/stm32f4xx_hal_conf.h

Lines changed: 50 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
******************************************************************************
33
* @file stm32f4xx_hal_conf_template.h
44
* @author MCD Application Team
5-
* @version V1.5.1
6-
* @date 01-July-2016
5+
* @version V1.7.1
6+
* @date 14-April-2017
77
* @brief HAL configuration template file.
88
* This file should be copied to the application folder and renamed
99
* to stm32f4xx_hal_conf.h.
1010
******************************************************************************
1111
* @attention
1212
*
13-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
13+
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
1414
*
1515
* Redistribution and use in source and binary forms, with or without modification,
1616
* are permitted provided that the following conditions are met:
@@ -97,6 +97,7 @@
9797
// #define HAL_SPDIFRX_MODULE_ENABLED
9898
// #define HAL_DFSDM_MODULE_ENABLED
9999
// #define HAL_LPTIM_MODULE_ENABLED
100+
//#define HAL_MMC_MODULE_ENABLED
100101

101102
/* ########################## HSE/HSI Values adaptation ##################### */
102103
/**
@@ -105,11 +106,11 @@
105106
* (when HSE is used as system clock source, directly or through the PLL).
106107
*/
107108
#if !defined (HSE_VALUE)
108-
#define HSE_VALUE ((uint32_t)25000000U) /*!< Value of the External oscillator in Hz */
109+
#define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */
109110
#endif /* HSE_VALUE */
110111

111112
#if !defined (HSE_STARTUP_TIMEOUT)
112-
#define HSE_STARTUP_TIMEOUT ((uint32_t)100U) /*!< Time out for HSE start up, in ms */
113+
#define HSE_STARTUP_TIMEOUT 100U /*!< Time out for HSE start up, in ms */
113114
#endif /* HSE_STARTUP_TIMEOUT */
114115

115116
/**
@@ -118,26 +119,26 @@
118119
* (when HSI is used as system clock source, directly or through the PLL).
119120
*/
120121
#if !defined (HSI_VALUE)
121-
#define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/
122+
#define HSI_VALUE 16000000U /*!< Value of the Internal oscillator in Hz */
122123
#endif /* HSI_VALUE */
123124

124125
/**
125126
* @brief Internal Low Speed oscillator (LSI) value.
126127
*/
127128
#if !defined (LSI_VALUE)
128-
#define LSI_VALUE ((uint32_t)32000U) /*!< LSI Typical Value in Hz*/
129+
#define LSI_VALUE 32000U /*!< LSI Typical Value in Hz */
129130
#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
130131
The real value may vary depending on the variations
131132
in voltage and temperature.*/
132133
/**
133134
* @brief External Low Speed oscillator (LSE) value.
134135
*/
135136
#if !defined (LSE_VALUE)
136-
#define LSE_VALUE ((uint32_t)32768U) /*!< Value of the External Low Speed oscillator in Hz */
137+
#define LSE_VALUE 32768U /*!< Value of the External Low Speed oscillator in Hz */
137138
#endif /* LSE_VALUE */
138139

139140
#if !defined (LSE_STARTUP_TIMEOUT)
140-
#define LSE_STARTUP_TIMEOUT ((uint32_t)5000U) /*!< Time out for LSE start up, in ms */
141+
#define LSE_STARTUP_TIMEOUT 5000U /*!< Time out for LSE start up, in ms */
141142
#endif /* LSE_STARTUP_TIMEOUT */
142143

143144
/**
@@ -146,7 +147,7 @@
146147
* frequency, this source is inserted directly through I2S_CKIN pad.
147148
*/
148149
#if !defined (EXTERNAL_CLOCK_VALUE)
149-
#define EXTERNAL_CLOCK_VALUE ((uint32_t)12288000U) /*!< Value of the Internal oscillator in Hz*/
150+
#define EXTERNAL_CLOCK_VALUE 12288000U /*!< Value of the External oscillator in Hz*/
150151
#endif /* EXTERNAL_CLOCK_VALUE */
151152

152153
/* Tip: To avoid modifying this file each time you need to use different HSE,
@@ -156,8 +157,8 @@
156157
/**
157158
* @brief This is the HAL system configuration section
158159
*/
159-
#define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */
160-
#define TICK_INT_PRIORITY ((uint32_t)0x0FU) /*!< tick interrupt priority */
160+
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
161+
#define TICK_INT_PRIORITY 0x0FU /*!< tick interrupt priority */
161162
#define USE_RTOS 0U
162163
#define PREFETCH_ENABLE 1U
163164
#define INSTRUCTION_CACHE_ENABLE 1U
@@ -185,56 +186,56 @@
185186
/* Definition of the Ethernet driver buffers size and count */
186187
#define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */
187188
#define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for transmit */
188-
#define ETH_RXBUFNB ((uint32_t)4U) /* 4 Rx buffers of size ETH_RX_BUF_SIZE */
189-
#define ETH_TXBUFNB ((uint32_t)4U) /* 4 Tx buffers of size ETH_TX_BUF_SIZE */
189+
#define ETH_RXBUFNB 4U /* 4 Rx buffers of size ETH_RX_BUF_SIZE */
190+
#define ETH_TXBUFNB 4U /* 4 Tx buffers of size ETH_TX_BUF_SIZE */
190191

191192
/* Section 2: PHY configuration section */
192193

193194
/* DP83848 PHY Address*/
194195
#define DP83848_PHY_ADDRESS 0x01U
195196
/* PHY Reset delay these values are based on a 1 ms Systick interrupt*/
196-
#define PHY_RESET_DELAY ((uint32_t)0x000000FFU)
197+
#define PHY_RESET_DELAY 0x000000FFU
197198
/* PHY Configuration delay */
198-
#define PHY_CONFIG_DELAY ((uint32_t)0x00000FFFU)
199+
#define PHY_CONFIG_DELAY 0x00000FFFU
199200

200-
#define PHY_READ_TO ((uint32_t)0x0000FFFFU)
201-
#define PHY_WRITE_TO ((uint32_t)0x0000FFFFU)
201+
#define PHY_READ_TO 0x0000FFFFU
202+
#define PHY_WRITE_TO 0x0000FFFFU
202203

203204
/* Section 3: Common PHY Registers */
204205

205-
#define PHY_BCR ((uint16_t)0x0000U) /*!< Transceiver Basic Control Register */
206-
#define PHY_BSR ((uint16_t)0x0001U) /*!< Transceiver Basic Status Register */
206+
#define PHY_BCR ((uint16_t)0x0000) /*!< Transceiver Basic Control Register */
207+
#define PHY_BSR ((uint16_t)0x0001) /*!< Transceiver Basic Status Register */
207208

208-
#define PHY_RESET ((uint16_t)0x8000U) /*!< PHY Reset */
209-
#define PHY_LOOPBACK ((uint16_t)0x4000U) /*!< Select loop-back mode */
210-
#define PHY_FULLDUPLEX_100M ((uint16_t)0x2100U) /*!< Set the full-duplex mode at 100 Mb/s */
211-
#define PHY_HALFDUPLEX_100M ((uint16_t)0x2000U) /*!< Set the half-duplex mode at 100 Mb/s */
212-
#define PHY_FULLDUPLEX_10M ((uint16_t)0x0100U) /*!< Set the full-duplex mode at 10 Mb/s */
213-
#define PHY_HALFDUPLEX_10M ((uint16_t)0x0000U) /*!< Set the half-duplex mode at 10 Mb/s */
214-
#define PHY_AUTONEGOTIATION ((uint16_t)0x1000U) /*!< Enable auto-negotiation function */
215-
#define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200U) /*!< Restart auto-negotiation function */
216-
#define PHY_POWERDOWN ((uint16_t)0x0800U) /*!< Select the power down mode */
217-
#define PHY_ISOLATE ((uint16_t)0x0400U) /*!< Isolate PHY from MII */
209+
#define PHY_RESET ((uint16_t)0x8000) /*!< PHY Reset */
210+
#define PHY_LOOPBACK ((uint16_t)0x4000) /*!< Select loop-back mode */
211+
#define PHY_FULLDUPLEX_100M ((uint16_t)0x2100) /*!< Set the full-duplex mode at 100 Mb/s */
212+
#define PHY_HALFDUPLEX_100M ((uint16_t)0x2000) /*!< Set the half-duplex mode at 100 Mb/s */
213+
#define PHY_FULLDUPLEX_10M ((uint16_t)0x0100) /*!< Set the full-duplex mode at 10 Mb/s */
214+
#define PHY_HALFDUPLEX_10M ((uint16_t)0x0000) /*!< Set the half-duplex mode at 10 Mb/s */
215+
#define PHY_AUTONEGOTIATION ((uint16_t)0x1000) /*!< Enable auto-negotiation function */
216+
#define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200) /*!< Restart auto-negotiation function */
217+
#define PHY_POWERDOWN ((uint16_t)0x0800) /*!< Select the power down mode */
218+
#define PHY_ISOLATE ((uint16_t)0x0400) /*!< Isolate PHY from MII */
218219

219-
#define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020U) /*!< Auto-Negotiation process completed */
220-
#define PHY_LINKED_STATUS ((uint16_t)0x0004U) /*!< Valid link established */
221-
#define PHY_JABBER_DETECTION ((uint16_t)0x0002U) /*!< Jabber condition detected */
220+
#define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020) /*!< Auto-Negotiation process completed */
221+
#define PHY_LINKED_STATUS ((uint16_t)0x0004) /*!< Valid link established */
222+
#define PHY_JABBER_DETECTION ((uint16_t)0x0002) /*!< Jabber condition detected */
222223

223224
/* Section 4: Extended PHY Registers */
224225

225-
#define PHY_SR ((uint16_t)0x0010U) /*!< PHY status register Offset */
226-
#define PHY_MICR ((uint16_t)0x0011U) /*!< MII Interrupt Control Register */
227-
#define PHY_MISR ((uint16_t)0x0012U) /*!< MII Interrupt Status and Misc. Control Register */
226+
#define PHY_SR ((uint16_t)0x0010) /*!< PHY status register Offset */
227+
#define PHY_MICR ((uint16_t)0x0011) /*!< MII Interrupt Control Register */
228+
#define PHY_MISR ((uint16_t)0x0012) /*!< MII Interrupt Status and Misc. Control Register */
228229

229-
#define PHY_LINK_STATUS ((uint16_t)0x0001U) /*!< PHY Link mask */
230-
#define PHY_SPEED_STATUS ((uint16_t)0x0002U) /*!< PHY Speed mask */
231-
#define PHY_DUPLEX_STATUS ((uint16_t)0x0004U) /*!< PHY Duplex mask */
230+
#define PHY_LINK_STATUS ((uint16_t)0x0001) /*!< PHY Link mask */
231+
#define PHY_SPEED_STATUS ((uint16_t)0x0002) /*!< PHY Speed mask */
232+
#define PHY_DUPLEX_STATUS ((uint16_t)0x0004) /*!< PHY Duplex mask */
232233

233-
#define PHY_MICR_INT_EN ((uint16_t)0x0002U) /*!< PHY Enable interrupts */
234-
#define PHY_MICR_INT_OE ((uint16_t)0x0001U) /*!< PHY Enable output interrupt events */
234+
#define PHY_MICR_INT_EN ((uint16_t)0x0002) /*!< PHY Enable interrupts */
235+
#define PHY_MICR_INT_OE ((uint16_t)0x0001) /*!< PHY Enable output interrupt events */
235236

236-
#define PHY_MISR_LINK_INT_EN ((uint16_t)0x0020U) /*!< Enable Interrupt on change of link status */
237-
#define PHY_LINK_INTERRUPT ((uint16_t)0x2000U) /*!< PHY link status interrupt mask */
237+
#define PHY_MISR_LINK_INT_EN ((uint16_t)0x0020) /*!< Enable Interrupt on change of link status */
238+
#define PHY_LINK_INTERRUPT ((uint16_t)0x2000) /*!< PHY link status interrupt mask */
238239

239240
/* ################## SPI peripheral configuration ########################## */
240241

@@ -426,6 +427,10 @@
426427
#include "stm32f4xx_hal_lptim.h"
427428
#endif /* HAL_LPTIM_MODULE_ENABLED */
428429

430+
#ifdef HAL_MMC_MODULE_ENABLED
431+
#include "stm32f4xx_hal_mmc.h"
432+
#endif /* HAL_MMC_MODULE_ENABLED */
433+
429434
/* Exported macro ------------------------------------------------------------*/
430435
#ifdef USE_FULL_ASSERT
431436
/**
@@ -436,11 +441,11 @@
436441
* If expr is true, it returns no value.
437442
* @retval None
438443
*/
439-
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
444+
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
440445
/* Exported functions ------------------------------------------------------- */
441446
void assert_failed(uint8_t* file, uint32_t line);
442447
#else
443-
#define assert_param(expr) ((void)0)
448+
#define assert_param(expr) ((void)0U)
444449
#endif /* USE_FULL_ASSERT */
445450

446451

0 commit comments

Comments
 (0)