Closed watsk closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.00%. Comparing base (
4732b96
) to head (cb85579
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@watsk Thank you for creating this PR. I will look into it and discuss with you.
@chinglee-iot Thank you for reviewing this PR. If you have any question, please let me know.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication
Improvement for 64bit Windows port
Description
64bit TickType_t is supported. (MSVC and MinGW) The case
configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_64_BITS
is added in portmacro.h. It is straightforward extension from 16bit and 32bit. This change is based on the following discussion on the FreeRTOS forum. https://forums.freertos.org/t/64bit-application-on-freertos-windows-port/19110Unnecessary compiler warning is disabled locally. (MinGW-w64 only)
pragma for ignoring the warning
cast-function-type
is added in port.c.MinGW-w64 reports this warning for the for the cast operation from
TaskFunction_t
toLPTHREAD_START_ROUTINE
. This warning should be ignored because it is unavoidable.TaskFunction_t
is an essential type in FreeRTOS andLPTHREAD_START_ROUTINE
is an essential type in win32api. This pragma option affects only one line. Other part is not affected.Test Steps
Define
configTICK_TYPE_WIDTH_IN_BITS
asTICK_TYPE_WIDTH_64_BITS
in FreeRTOSConfig.h and build FreeRTOS by MinGW-w64 or x64 platform on MSVC(Visual Studio).Regression tests are performed. All combinations of tick type width and compiler type have been tested.
MingW Demo: CodeCoverage configuration runs successfully in all cases. No error is reported in the console. No regression is found on coverage score. MSVC Demo: Demo application runs successfully. No error is reported in the console.
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.