Commit graph

1309 commits

Author SHA1 Message Date
Gaurav-Aggarwal-AWS
3d236bd83d
Add x64 configuration to Win32-MSVC demo (#1164)
Add x64 configuration to Win32-MSVC demo.

This was originally contributed in this PR - #1139

---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: José Simões <jose.simoes@eclo.solutions>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
2024-01-30 10:44:47 +05:30
Moral-Hao
b0c6296cbf
Update all CMock configuration to compare_ptr. (#1123)
Bring the change of CMock configuration in directory tasks
to all other directories.

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
2024-01-29 12:35:30 +05:30
Gabriele Monaco
770e93bdfe
Add tests for streambuffers with different notification index (#1150)
* Add tests for streambuffers with different notification index

* Uncrustify: triggered by comment.

* Updated kernel with tested functionality

* Fix typo

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

---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
2024-01-29 12:04:40 +05:30
Soren Ptak
7fc12c29f3
Update FreeRTOS and AWS Library Submodules (#1162)
* Update the AWS and FreeRTOS Library Submodule Pointers
* Update the manifest.yml file for new submodules
2024-01-26 19:51:49 -05:00
chinglee-iot
c852aaeeeb
Update kernel submodule for vTaskSuspend change (#1161) 2024-01-25 10:55:40 +08:00
chinglee-iot
d603c9b1ba
Update for vTaskSuspend SMP unit test (#1160) 2024-01-24 19:34:14 +08:00
chinglee-iot
527ee9a799
Update kernel submodule for unit test (#1159)
* Update kernel submodule for unit test
2024-01-23 17:54:38 +08:00
chinglee-iot
3e1c9a51df
Update SMP unit test for vTaskDelete change (#1158)
* Fix vTaskDelete SMP unit test
2024-01-23 16:37:31 +08:00
Forty-Bot
154dee1c86
Fix msp430_GCC demo application (#1153)
* Update kernel

Update kernel to bring in a fix for MSP430 task initialization.

* msp430_GCC: Decrease heap size to avoid stack overflow

With 1800 bytes allocated to the heap, the stack overflows while
initializing tasks. Decrease the heap size so we have a bit more space
for the initial stack. We are using most of the heap, so 100 bytes is
about as much as we can decrease it by.
2024-01-15 10:24:11 +05:30
Kody Stribrny
7d09b88e5a
Fix C source and header file license spacing (#1155)
The line 'Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.'
used to have two spaces between the first and second sentences.
This would cause the header check to fail due to the copyright regex located
ab999f9624/.github/scripts/core_checker.py (L396)
2024-01-12 16:43:31 -08:00
chinglee-iot
bd56549a48
Update SMP unit test to cover prvInitialiseTaskLists (#1151)
* Update SMP unit test to cover prvInitialiseTaskLists
2024-01-08 13:12:28 +08:00
Rahul Kar
121fbe295b
Fix formatting in kernel demo application files (#1148)
* Fix formatting in kernel demo application files

* Fix header check fail in the demo files

* Add ignored patterns in core header check file

* Fix formatting

* Update vApplicationStackOverflowHook for AVR_ATMega4809_MPLAB.X/main.c

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>

* Update vApplicationStackOverflowHook for AVR_ATMega4809_MPLAB.X/main.c

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>

* Update vApplicationStackOverflowHook for AVR_Dx_IAR/main.c

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>

* Update vApplicationStackOverflowHook for AVR_Dx_IAR/main.c

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>

* Update vApplicationStackOverflowHook for AVR_Dx_MPLAB.X/main.c

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>

* Update vApplicationMallocFailedHook for AVR_Dx_MPLAB.X/main.c

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>

* Fix formatting AVR32_UC3

---------

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
2024-01-02 11:05:59 +05:30
Forty-Bot
85ed21bcfb
msp430_GCC: Make interrupts return void (#1146)
If a return type of a function is not specified, it defaults to int. Set
the return type of interrupts to void to avoid warnings.
2023-12-26 10:40:28 -08:00
chinglee-iot
31d6ace7e0
Add eTaskConfirmSleepModeStatus unit test for SMP (#1118)
* Add eTaskConfirmSleepModeStatus unit test for SMP
2023-12-26 14:16:21 +05:30
Ztex
660166b734
Riscv re-factoring (#1145)
* Refactor the trap handler macro
Since `portasmHANDLE_INTERRUPT` is removed at FreeRTOS-kernel, Riscv re-factoring (#444) (commit: 9efca75d1e)
We don't need this definition anymore
We also remove the unused function definition

* Styling the file header to pass the checker
Remove an extra space

Co-authored-by: ztex <ztex030640417@gmail.com>
2023-12-21 11:42:46 +05:30
chinglee-iot
ec25164e48
Update riscv eclipse project (#1143)
* Exclude examples in FreeRTOS-Kernel from build
* Update vega and microsemi risc-v eclipse project
* Update polarfire eclipse project
2023-12-20 16:50:43 +08:00
chinglee-iot
dc4bdf5f30
Update RISC-V QEMU project for GCC (#1142)
* Update RISC-V QEMU project for GCC
2023-12-19 14:38:18 +08:00
Soren Ptak
6b513cb1a2
Use MbedTLS 3.5.1 and Add TLS 1.3 Support to WinSim Demos (#1135)
* Bump up to MBed-TLS V3.5.1, make changes to Visual Studio Projects to account for this.
* Update MBedTLS Transport files to call psa_crypto_init() if the MBEDTLS_PSA_CRYPTO_C is set.
* Add WIN32_LEAN_AND_MEAN to the corePKCS11_MQTT_Mutual_Auth_Windows_Simulator demo. Add in a check for MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET when making a TLS handshake.
* Change transport interface files from using void * to mbedtls_pk_context * instead per changes in the MbedTLS API.
* Changes to Fleet Provisioning Demo and Demo Setup to use ECDSA keys
* Remove non-32 bit configs from various VisualStudio Projects. Enforce all projects using WIN32_LEAN_AND_MEAN as well as winsock2.h
2023-12-15 12:30:39 -08:00
Jeff Tenney
fee933f485
Disable new handler installation check for XMC1000 (#1132)
Disable handler checking in XMC1000 demo
2023-12-11 23:54:13 +05:30
Rahul Kar
012e618b6d
Update MPU Demos for Kernel V10.6.2 (#1124)
Update MPU Demos for Kernel V10.6.2
2023-12-11 23:24:53 +05:30
chinglee-iot
0857bd7b72
Update submodule for kernel and community demos (#1134) 2023-12-11 16:18:50 +08:00
chinglee-iot
76c0f8788c
Fix SMP unit test for switch hook (#1133)
* Fix SMP unit test for switch hook
2023-12-11 15:04:20 +08:00
chinglee-iot
0945a8ac50
Update FreeRTOS.h for portSWITCH_TASK_HOOK in unit test (#1131)
* Update FreeRTOS.h for portTASK_SWITCH_HOOK

---------

Co-authored-by: GitHub Action <action@github.com>
2023-12-11 13:29:32 +08:00
chinglee-iot
831035a00f
Update kernel submodule pointer for get idle task handle (#1129) 2023-12-05 15:10:12 +08:00
chinglee-iot
30fadd8d38
Add unit test for xTaskGetIdleTaskHandleForCore (#1119)
* Add unit test for xTaskGetIdleTaskHandleForCore()

---------

Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
2023-12-05 13:37:50 +08:00
Soren Ptak
f6d2b62ec6
Remove 64 Bit Visual Studio Configurations (#1120) 2023-12-01 06:00:16 -05:00
Moral-Hao
fd352fd185 Fix misusage of CMock in dir tasks.
1. Change CMock policy of pointer from smart to compare_ptr;
2. Fix errors in test cases found by CMock.
2023-11-27 12:51:35 -08:00
chinglee-iot
eccc2545d8
Add back mtCOVERAGE_TEST_MARKER in stream_buffer unit test (#1110)
* Add back mtCOVERAGE_TEST_MARKER in stream_buffer unit test
2023-11-16 12:19:24 +08:00
chinglee-iot
24eed82bee
Update kernel submodule (#1117) 2023-11-16 12:05:32 +08:00
chinglee-iot
0a62d564c1
Fix unit test for passive idle task (#1116)
* Fix comilation problem with unit test for passive idle task memory
2023-11-16 08:54:39 +08:00
chinglee-iot
174b4562f4
Add test cases to cover prvCreateIdleTasks for SMP (#1114)
* Add test cases to cover vApplicationGetIdleTaskMemory and 
  vApplicationGetPassiveIdleTaskMemory for prvCreateIdleTasks
2023-11-15 15:39:50 +08:00
Moral-Hao
ae39f8e245
Fix one typical misusage of CMock. (#1112)
* Fix one typical misusage of CMock.

CMock has three policies when dealing with pointer:
1. compare_ptr : compare the pointer itself;
2. compare_data : compare the data which is pointed by pointer;
3. smart : compare the pointer itself, or compare the data;
By default, CMock use compare_data policy.

Most test cases in FreeRTOS need to compare the pointer itself,
and we haven't use CMock properly.
For example, one test case of vTaskResume is wrong, because current
CMock compares the data pointed by pointer, so the error didn't exposed.

There are so many misusage need to fix, it will take a lot of work.
I'm here to fix one typical misusage first.

* Try to fix formatting syntax.
2023-11-13 15:44:59 -08:00
Moral-Hao
55d07daf0a
Add CMock test case for vTaskResume (#1111)
* Add Cmock test case for updates in vTaskResume API introduced in Kernel PR#865.

* Update Kernel submodule pointer

---------

Co-authored-by: Rahul Kar <karahulx@amazon.com>
2023-11-07 16:09:28 +05:30
Monika Singh
f60dd88609
Remove deprecated ipconfigRAND32 (#1108)
* Remove deprecated ipconfigRAND32

* Uncrustify: triggered by comment.

* Update

* Check for return value

* Uncrustify: triggered by comment.

* Update

---------

Co-authored-by: GitHub Action <action@github.com>
2023-11-01 12:33:25 +05:30
chinglee-iot
e7d39763db
Add unit test for FreeRTOS SMP (#1047)
* Add unit test for FreeRTOS SMP to verify SMP scheduler logic in tasks.c which is enclosed by `configNUMBER_OF_CORES > 1`.

---------

Co-authored-by: Joshua Zarr <joshzarr@amazon.com>
Co-authored-by: Anubhav Rawal <rawalexe@amazon.com>
Co-authored-by: Alfred Gedeon <alfred2g@hotmail.com>
Co-authored-by: Adam Scislowicz <adamds@amazon.com>
Co-authored-by: jannusi <121577776+jannusi@users.noreply.github.com>
Co-authored-by: Krishna Vamsi Tallapaneni <124737189+vamsitas@users.noreply.github.com>
Co-authored-by: Kody Stribrny <kstribrn@amazon.com>
Co-authored-by: kar-rahul-aws <118818625+kar-rahul-aws@users.noreply.github.com>
2023-10-31 08:34:59 +08:00
chinglee-iot
1114e8f39b
Add kernel base priority get unit test (#1099)
* Add uxTaskBasePriorityGet and uxTaskBasePriorityGetFromISR unit test
2023-10-18 15:03:39 +08:00
Rahul Kar
03926888d8
Fix Unit test for APIs ulTaskNotifyTake and xTaskNotifyWait (#1102) 2023-10-17 09:54:06 +05:30
Anubhav Rawal
ddb6e58d0a
Updates FreeRTOS-Plus-Trace to a submodule pointer (#1082)
This PR updates FreeRTOS-Plus-Trace to a submodule pointer and
updates the relevant project files.  Percepio recommends to use
streaming to ring buffer on a 64-bit system instead of snapshot
and therefore, POSIX demo is updated to use streaming to ring
buffer.
2023-10-13 11:04:55 +05:30
chinglee-iot
d3575643b8
Update for kernel idle task unit test (#1096)
* Update unit test to cover idle task name longer than configMAX_TASK_NAME_LEN
* Update community supported demo submodule pointer
* Update kernel submodule pointer
* Update CBMC test

---------

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
2023-10-12 12:53:52 +08:00
kar-rahul-aws
d1d78528a2
Remove CORTEX_M3_MPS2_QEMU_GCC demo (#1089)
* Remove CORTEX_M3_MPS2_QEMU_GCC demo
2023-09-20 10:59:36 +05:30
kar-rahul-aws
58765d6b4c
Fix duration of TimerMode Task in WIN32-MingW Demo (#1084)
* Reduce duration of prvDemonstrateChangingTimerReloadMode  Task

* Apply same change in WIN32-MingW Demo

* Add changes to Posix_GCC Demo
2023-09-18 11:14:05 +05:30
wuliyong
8104777681
RISC-V-Qemu-virt_GCC: correct configCPU_CLOCK_HZ define (#1086)
* RISC-V-Qemu-virt_GCC: correct configCPU_CLOCK_HZ define

fix configCPU_CLOCK_HZ define for correct freeRTOS tick:
Qemu simulator runs at 10MHZ, defined by
RISCV_ACLINT_DEFAULT_TIMEBASE_FREQ at
https://github.com/qemu/qemu/blob/master/include/hw/intc/riscv_aclint.h

* Fix CI check

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

---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
2023-09-12 21:27:42 +05:30
Gaurav-Aggarwal-AWS
99f5b80ae4
Install FreeRTOS trap handler (#1087)
Install FreeRTOS trap handler

The application is supposed to program mtvec correctly depending on
whether they want to use vectored interrupt or not.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2023-09-11 23:17:46 +05:30
Soren Ptak
3a2f6646f0
Use CI-CD-Github-Actions for spelling and formatting, add in the bot formatting action, update the CI-CD workflow files. Fix incorrect spelling and formatting on files. (#1083)
* Use new version of CI-CD Actions,  checkout@v3 instead of checkout@v2 on all jobs
* Use cSpell spell check, and use ubuntu-20.04 for formatting check
* Add in bot formatting action
* Update freertos_demo.yml and freertos_plus_demo.yml files to increase github log readability
* Add in a Qemu demo onto the workflows.
2023-09-06 12:35:37 -07:00
kar-rahul-aws
4e2a02323b
Fix ATMega port demos (#1060)
* Fix ATMEGA port demos

* Remove GCC folder from proj file
2023-08-24 00:00:58 +05:30
ActoryOu
20b6c13c07
Apply compile option change on RP2040 (#1064)
* Update kernel and community-supported-demos submodule pointer to apply compile option change on RP2040

* Update manifest

* Update +TCP submodule pointer

* Revert "Update +TCP submodule pointer"

This reverts commit d090230eef40f26a2a2c9b5f3d2d1b7a043a7521.

---------

Co-authored-by: kar-rahul-aws <118818625+kar-rahul-aws@users.noreply.github.com>
Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com>
2023-08-22 17:56:00 +08:00
Gaurav-Aggarwal-AWS
38a57333ed
Fix unit test for Kernel PR #760 (#1075)
* Fix unit test for Kernel PR #760
* Update kernel submodule pointer
---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2023-08-18 11:42:14 -07:00
kar-rahul-aws
80db00d98b
Add uxQueueGetQueueLength API in queue unit tests (#1074)
* Add uxQueueGetQueueLength API in queue unit tests
for code coverage

* Update Submodule pointer for Kernel V10.6.1

Signed-off-by: kar-rahul-aws <karahulx@amazon.com>
2023-08-18 16:13:50 +05:30
kar-rahul-aws
21f7947ab1
Make unit tests backward compatible (#1073)
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
2023-08-17 16:51:18 +05:30
chinglee-iot
ed2717767a
Posix demo use heap_3 in cmake (#1068) 2023-08-16 15:58:56 +08:00