run ci with -DCMAKE_BUILD_TYPE=MinSizeRel

This commit is contained in:
hathach
2023-06-25 00:05:23 +07:00
parent 30ccfe0832
commit 15376397b1
5 changed files with 20 additions and 11 deletions

View File

@@ -143,9 +143,19 @@ void board_init(void)
GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
// Suppress warning caused by mcu driver
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
/* Enable USB FS Clocks */
__HAL_RCC_USB_OTG_FS_CLK_ENABLE();
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#if OTG_FS_VBUS_SENSE
/* Configure VBUS Pin */
GPIO_InitStruct.Pin = GPIO_PIN_9;