FreeRTOS-Kernel/FreeRTOS/Demo/WIN32-MingW
wat 076430b2ab
[WIN32-MingW Demo] TickType_t width is defined based on compiler type.(32bit/64bit) (#1199)
* [WIN32-MingW Demo] Add tick type width definition based on compiler type.(32bit/64bit)
32bit TickType_t is used if compiler is MinGW32. 64bit TickType_t is used if compiler is MinGW64.

Reason of change: Before this change, 32bit TickType_t is always used in MinGW demo. It is inefficient  for 64bit compiler. In addition, MinGW64 reported warnings for the cast operation between TickType_t and (void *) pointer because of different width. 64bit TickType_t should be used instead of 32bit if compiler is 64bit.

* [WIN32-MingW Demo] Change printf() format specifiers from %u to %llu.

Reason of change: %u specifier corrupts 64bit tick count because it supports only 32bit value. %llu can be used for both of 64bit value and 32bit value.(After casting to 64bit)

* [WIN32-MingW Demo] Change type of some variables from uint32_t to UBaseType_t.

Reason of change: These variables are cast to/from pointer type in existing codes. 64bit compiler(MinGW64) reports warnings for the cast operations between uint32_t and pointer type. UBaseType_t solves those warnings because it has same width as pointer type on both of MinGW32 and MinGW64.

* [WIN32-MingW Demo] Change type of some variables from uint32_t to UBaseType_t.

Same change as previous commit is applied to source codes which are built only on Debug configuration.

* [WIN32-MingW Demo] Add brackets to the condition in #if statement. Behavior is not changed. Reason of change is to follow coding style guide of FreeRTOS.

* Update "FreeRTOS/Source" submodule(FreeRTOS-kernel) to #1008.

* [WIN32-MingW Demo] Change type of one more variable from uint32_t to UBaseType_t.

Additional modification for solving compiler warnings for the cast operation on MinGW64.

* Update FreeRTOS-kernel submodule version in manifest.yml.

* Modify prefix of variables to follow coding style guide.

* Code review suggestions

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: ActoryOu <ousc@amazon.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
2024-03-27 15:34:46 +08:00
..
DemosModifiedForLowTickRate Fix C source and header file license spacing (#1155) 2024-01-12 16:43:31 -08:00
Trace_Recorder_Configuration Use MbedTLS 3.5.1 and Add TLS 1.3 Support to WinSim Demos (#1135) 2023-12-15 12:30:39 -08:00
.cproject Import the code coverage test additions from the (unpublished) Visual Studio project to the (published) MingW/Eclipse project. 2018-03-14 15:58:47 +00:00
.project Complete testing of changes that allow xQueueOverwrite() to be used on a queue that is part of a queue set. 2018-03-05 21:35:50 +00:00
code_coverage_additions.c [WIN32-MingW Demo] TickType_t width is defined based on compiler type.(32bit/64bit) (#1199) 2024-03-27 15:34:46 +08:00
FreeRTOSConfig.h [WIN32-MingW Demo] TickType_t width is defined based on compiler type.(32bit/64bit) (#1199) 2024-03-27 15:34:46 +08:00
main.c Fix formatting in kernel demo application files (#1148) 2024-01-02 11:05:59 +05:30
main_blinky.c Fix formatting in kernel demo application files (#1148) 2024-01-02 11:05:59 +05:30
main_full.c [WIN32-MingW Demo] TickType_t width is defined based on compiler type.(32bit/64bit) (#1199) 2024-03-27 15:34:46 +08:00
Makefile Updates FreeRTOS-Plus-Trace to a submodule pointer (#1082) 2023-10-13 11:04:55 +05:30
Run-time-stats-utils.c Fix C source and header file license spacing (#1155) 2024-01-12 16:43:31 -08:00