Skip to content

Commit 5c537c2

Browse files
committed
change gcc to 10.3 due to freeRTOS warning
1 parent 956d1c9 commit 5c537c2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/build_win_mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Install ARM GCC
4545
uses: carlosperate/arm-none-eabi-gcc-action@v1
4646
with:
47-
release: '12.2.Rel1'
47+
release: '10.3-2021.10'
4848

4949
- name: Checkout TinyUSB
5050
uses: actions/checkout@v3

hw/bsp/stm32f1/family.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void HardFault_Handler (void)
151151
* @param line: assert_param error line source number
152152
* @retval None
153153
*/
154-
void assert_failed(char *file, uint32_t line)
154+
void assert_failed(const char *file, uint32_t line)
155155
{
156156
/* USER CODE BEGIN 6 */
157157
/* User can add his own implementation to report the file name and line number,

hw/bsp/stm32f1/stm32f1xx_hal_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@
362362
* If expr is true, it returns no value.
363363
* @retval None
364364
*/
365-
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
365+
#define assert_param(expr) ((expr) ? (void)0U : assert_failed(__FILE__, __LINE__))
366366
/* Exported functions ------------------------------------------------------- */
367-
void assert_failed(uint8_t* file, uint32_t line);
367+
void assert_failed(const char* file, uint32_t line);
368368
#else
369369
#define assert_param(expr) ((void)0U)
370370
#endif /* USE_FULL_ASSERT */

0 commit comments

Comments
 (0)