FreeRTOS / FreeRTOS-Kernel

FreeRTOS kernel files only, submoduled into https://github.com/FreeRTOS/FreeRTOS and various other repos.
https://www.FreeRTOS.org
MIT License
2.71k stars 1.11k forks source link

Fix wrong source file list in CMake of GCC_ARM_CM0 port. #1045

Closed 0mhu closed 5 months ago

0mhu commented 5 months ago

Add GCC/ARM_CM0/mpu_wrappers_v2_asm.c and GCC/ARM_CM0/portasm.c as source files to 'freertos_kernel_port' library. This fixes the FREERTOS_PORT "GCC_ARM_CM0" CMake configuration.

Test Steps

Use Cmake to integrate FreeRTOS into a Cortex M0 project via set (FREERTOS_PORT "GCC_ARM_CM0"). It does not compile.

/usr/lib/gcc/arm-none-eabi/13.2.0/../../../../arm-none-eabi/bin/ld: .../FreeRTOS-Kernel/portable/GCC/ARM_CM0/port.c:835:(.text.SysTick_Handler+0x22): undefined reference tovClearInterruptMask'`

ulSetInterruptMask (=vClearInterruptMask) is defined in portasm.c which is not included in the build.

This PR is a fix for that.

Checklist:

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud