File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ void HardFault_Handler (void)
165
165
* @param line: assert_param error line source number
166
166
* @retval None
167
167
*/
168
- void assert_failed (uint8_t * file , uint32_t line )
168
+ void assert_failed (const char * file , uint32_t line )
169
169
{
170
170
(void ) file ; (void ) line ;
171
171
/* USER CODE BEGIN 6 */
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ GCC_CFLAGS += \
24
24
-nostdlib -nostartfiles \
25
25
26
26
# suppress warning caused by vendor mcu driver
27
- GCC_CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align -Wno-error=cast-qual
27
+ GCC_CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align
28
28
29
29
# IAR Flags
30
30
IAR_CFLAGS += --cpu cortex-m0
Original file line number Diff line number Diff line change 303
303
* If expr is true, it returns no value.
304
304
* @retval None
305
305
*/
306
- #define assert_param (expr ) ((expr) ? (void)0U : assert_failed((uint8_t *) __FILE__, __LINE__))
306
+ #define assert_param (expr ) ((expr) ? (void)0U : assert_failed(__FILE__, __LINE__))
307
307
/* Exported functions ------------------------------------------------------- */
308
- void assert_failed (uint8_t * file , uint32_t line );
308
+ void assert_failed (const char * file , uint32_t line );
309
309
#else
310
310
#define assert_param (expr ) ((void)0U)
311
311
#endif /* USE_FULL_ASSERT */
You can’t perform that action at this time.
0 commit comments