2790 Commits

Author SHA1 Message Date
2df5eeef57 Feature/multiple direct to task notifications (#73)
* Add TaskNotifyArray.c with the single task tests updated to use the task notification array up to the point where the timer is created.

* Continue working on TaskNotifyArray.c to test the new task notification indexes.  Next TaskNotifyArray.c will be refactored to break the tests up a bit.

* Refactor and update the comments in TaskNotifyArray.c - no functional changes.

* Change from the task notify "array" to task notification "indexed" nomenclature in the new task notification API functions that work on one particular task notification with the array of task notifications.

* Update the implementation of the taskNOTIFY_TAKE() and taskNOTIFY_WAIT() trace macros to take the array index of the task notification they are acting on.
Rename configNUMBER_OF_TASK_NOTIFICATIONS to configTASK_NOTIFICATION_ARRAY_ENTRIES.
Add FreeRTOS/Demo/Common/Minimal/TaskNotifyArray.c to the Visual Studio project - the file implements tests specific to the behaviour of the indexed task notification functions and should be used in addition to the tests already provided in FreeRTOS/Demo/Common/Minimal/TaskNotify.c.
2020-06-08 14:22:46 -07:00
b9e4ecfaf7 Remove Empty and Un-referenced folder from Demo (#86) 2020-06-05 11:10:58 -07:00
f11bcc8acc Fix a Bug and corresponding CBMC patch (#84)
* Update remove-static-in-freertos-tcp-ip.patch

* Update FreeRTOS_TCP_IP.c

* Update remove-static-in-freertos-tcp-ip.patch

* Update remove-static-in-freertos-tcp-ip.patch

Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
2020-06-03 16:52:31 -07:00
bb9f92f771 Submodule FreeRTOS/Source 10bbbcf0b..6199b72fb (#82) 2020-06-03 10:46:55 -07:00
6efc39f44b Add Project for running integration tests v2 (#80)
* Project for integration tests

* relative paths in project files

* relative paths in project files-1

* relative paths in project files-2

* addressed comments

* addressed comments v2

Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
2020-06-02 15:09:25 -07:00
0eb5909fb0 readme.md for ATmega328PB Xplained Mini. (#76)
readme.md to get users jump started.
2020-05-28 17:05:24 -07:00
cb7edd2323 Sync with a:FR (#75)
* AFR sync

* AFR sync: CBMC

* AFR sync: CBMC: remove .bak files

* AFR sync: CBMC: more cleanup

* Corrected CBMC proofs

* Corrected CBMC patches

* Corrected CBMC patches-1

* Corrected CBMC patches-2

* remove .bak files (3)

Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
2020-05-28 10:11:58 -07:00
6557291e54 Test: Add Linux Networking support with demo application (#71)
* Test: Add Linux Networking support with demo application

* Test: revert files affected by uncrustify

* Test: revert files affected by uncrustify

Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
2020-05-27 14:44:33 -07:00
8b079bc394 ATmega328PB Xplained Mini -- demo project for ATmega port. (#70)
* Bootstrap a demo from START. No driver is added in this commit.

* Add FreeRTOS source code to project. Remove unnecessary folder nesting.

Heap_4 is used here.

* Copy over main.c, FreeRTOSConfig.h, and regtest.{c, h}.

This commit compiles, but will need some work on timer used.

* This port has 2KB RAM. We are using 1KB for heap.

Further decreasing minimum stack size, and also use stack overflow check 1 to save some stack space.

* Preserve EEPROM set to false.

* End of the line.

* Reduce register test stack size.

32 8-bit register + 10 bytes for stack frame cost. Round up to 50.

* Adding Queue test in Integer test.

- g3 to easy debugging.
- mainCHECK_PERIOD is set to 1000 ticks. Note that this port for now use WDT as tick timer, and period is set to 15ms.
- vErrorChecks, is of highest priority. So if this task gets run before other tasks, the very first check will fail.

* Avoid false alarm.

Since we don't know in which order the tasks are scheduled, clearing any error for the first entry of vErrorChecks.

Signed-off-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>

* ParTest.c to init, set, toggle onboard user LED at PB5.

* Added a task to blink onboard user LED.

Need a magic number for stack size.

Signed-off-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>

* Explicitly setting timing slicing to 0.
This is to avoid unecessary context switch when multiple tasks are of the same priority.


Signed-off-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>

* Add taskYIELD() at the end of the loop in each register test task.

This is to give other tasks of the same priority a chance to run, regardless of scheduling algorithm.

Signed-off-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>

* minor, update comment in main.c.
2020-05-27 10:44:03 -07:00
95a3a02f95 FreeRTOS-Plus: Unit testing Infrastructure and examples (#72)
* Added CMock as submodule

* Makefile added

* Removed TEMP from Makefile

* Added configuration files and header files

* Update Makefile

* Test runner working

* make clean

* Example added with README

* Update README.md

* Restored +TCP files

* Cleared +TCP changes

* removed comments from Makefile

* Update README.md

* Update README.md

* Update README.md

* Updated Test/Unit-test/readme.md
2020-05-22 16:26:59 -07:00
5003d17fed FreeRTOS+TCP : renewing DHCP lease while network is down (#53)
Co-authored-by: Hein Tibosch <hein@htibosch.net>
Co-authored-by: Gary Wicker <14828980+gkwicker@users.noreply.github.com>
2020-05-06 11:16:56 -07:00
d95624c5d6 Move CBMC proofs to FreeRTOS+ directory (#64)
* move CBMC proofs to FreeRTOS+ directory

* Failing proofs corrected

* ParseDNSReply proof added back

* removed queue_init.h from -Plus/Test

Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
2020-05-05 09:57:18 -07:00
95ae7c6575 Change cbmc-viewer invocation in CBMC makefile (#63)
* Exclude FreeRTOS/Demo from CBMC proof reports.

The script cbmc-viewer generates the CBMC proof reports.  The script
searches source files for symbol definitions and annotates source
files with coverage information.  This patch causes cbmc-viewer to
ignore the directory FreeRTOS/Demo containing 348M of data.  The
script now terminates in a few seconds.

* Make report default target for CBMC Makefile.

Modify the Makefile for CBMC proofs to generate the report by default
(and not just property checking) and modify property checking to
ignore failures (due to property assertions failing) and terminating
report generation.

Co-authored-by: Mark R. Tuttle <mrtuttle@amazon.com>
2020-04-28 21:27:45 -07:00
d421ccc89f Reword readme.md under ./Test. (#61) 2020-04-25 16:57:35 -07:00
3841286598 Removed a:FR reference. (#60) 2020-04-25 16:56:54 -07:00
4db195c916 Adding FreeRTOS+TCP CBMC proofs to FreeRTOS/FreeRTOS (#56)
ParseDNSReply is to be added in the next PR.
2020-04-21 15:40:08 -07:00
40a31b6d35 'uL' -> 'UL' 2020-04-13 14:08:51 -07:00
5b3a289b69 Changes after Gary's comments 2020-04-13 14:08:51 -07:00
edf68637dd Update FreeRTOS_ARP.c 2020-04-13 14:08:51 -07:00
35f3ac32a8 correct debug output 2020-04-13 14:08:51 -07:00
5e12a70db4 Debugging flag check added 2020-04-13 14:08:51 -07:00
4e8ac8de25 Comment style consistency and Yuhui's suggestions 2020-04-13 14:08:51 -07:00
e43f7cd086 Cleanup 2020-04-13 14:08:51 -07:00
ab3b51c7a0 Update after Gary's comments 2020-04-13 14:08:51 -07:00
97f7009699 Update after richard's comments 2020-04-13 14:08:51 -07:00
a9fcafc074 Corrected the formatting
- visual studio had messed up the formatting
2020-04-13 14:08:51 -07:00
c381861014 commit 2 after gary's comments 2020-04-13 14:08:51 -07:00
75677a8d85 Commit after Gary's comments 2020-04-13 14:08:51 -07:00
666c0da366 Update after Yuhui's comments
- removed (void) from before memcpy, memset etc.
- corrected memcpy style as suggested by Yuhui
- Added logging for xNetworkInterfaceOutput. No need to configASSERT
2020-04-13 14:08:51 -07:00
4a1148d15b Coverity + MISRA compliance
Modified code to conform to the MISRA directives more closely.
2020-04-13 14:08:51 -07:00
fa74f7dccf Removing writes to read-only PLIC interrupt pending registers.
Signed-off-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
2020-04-07 10:09:20 -07:00
5b9777e11e A readme file to introduce what ./Test directory is about. 2020-03-31 14:21:53 -07:00
211bb4cbd9 Ignore whitespace when working with patches. 2020-03-31 14:21:53 -07:00
8156f64d1c Copying CBMC proofs from aws/amazon-freertos repo ./tools/cbmc to this repo ./FreeRTOS/Test/CBMC as is.
The commit ID in aws/amazon-freertos is 0c8e0217f2a43bdeb364b58ae01c6c259e03ef1b.
2020-03-31 14:21:53 -07:00
9f316c246b Demo/Posix_GCC: add demo application for Posix port using GCC
This is largely a copy of the Windows demo application with a few key
changes:

- heap_3 (use malloc()/free()) so tools like valgrind "just work".

- printf() wrapped in a mutex to prevent deadlocks on the internal
  pthread mutexes inside printf().

SCons (https://scons.org/) is used as the build system.

This will be built as a 64-bit application, but note that the memory
allocation trace points only record the lower 32-bits of the address.
2020-03-24 13:46:18 -07:00
f78f919b3e Fix function comments 2020-03-22 20:26:43 -07:00
1cd2d38d96 unix separators for path and remove .exe suffix from risc compiler (works on windows/mac) 2020-03-22 20:23:03 -07:00
938b19419e Removing ./FreeRTOS-Labs directory, since:
- IoT libraries are now in LTS branch.
- FAT/POSIX/Light-weight MQTT are in https://github.com/FreeRTOS/FreeRTOS-Labs.
2020-03-19 18:32:04 -07:00
1a4abbc9e9 Maintenance -- clean up readme.txt and add url to GitHub. (#38)
* Removing readme.txt, as now we have README.md in place.

The only information missing from README.md is about FAQ.

* Adding FAQ information in README.md.

* Adding a .url to root to redict user to FreeRTOS github home page.
2020-03-17 19:30:02 -07:00
47bb466aa1 Update issue templates
Template maintenance. 

- adding title prefix.
- adding examples to "additional context" section.
2020-03-17 13:07:44 -07:00
f506290041 Create SECURITY.md
Apply the recommended SECURITY.md from AWS to our repo.
2020-03-17 10:15:07 -07:00
8982a2f80a Add ./lib directory to make sure Zynq project compiles. 2020-03-16 12:42:14 -07:00
ecf0f12aa1 Sync up with Amazon-freertos repo (10th March 2020) (#34)
* Sync up with amazon-freertos

* Sync up with amazon-freertos

* Sync up with amazon-freertos
2020-03-11 10:19:48 -07:00
0acffef047 GitHub PR template. (#29) 2020-03-10 10:20:48 -07:00
c40a6da2e4 pass payload length when calling UDP callback (#30)
* pass payload length when calling UDP callback
2020-03-09 11:18:48 -07:00
12d580e93d Update issue templates
Initial issue template. Created following https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser. 

If change is needed, we could go another round.
2020-03-06 18:16:51 -08:00
9debffb5e0 Update README.md to remove dead link.
See the conversation 42c627b2b8 (comments) .

Linkage for both ```./FreeRTOS/Source``` and ```./FreeRTOS/Demo``` are removed, since it looks weird to only provide linkage to Demo.
2020-03-06 17:27:46 -08:00
7e1a4bf563 Fix DHCP option Client-identifier (#28) 2020-03-06 15:18:09 -08:00
42c627b2b8 Update readme and revert relative URL. (#27)
* Reordering: bumping cloning instruction up.

* Rewording readme.md to be clear kernel code is a submodule of this repository.

* Reverting relative URL, since user cannot click through on GitHub page.

(With URL, user could still download the correct version of the code. Reverting simply due to UI issue.)
2020-03-06 09:15:11 -08:00
5751ae9b60 Update CORTEX_MPU_M33F_NXP_LPC55S69_MCUXpresso project (#26)
This commit updates the project for LPC55S69 so that it works with the
latest version of MCUXpresso and SDK.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2020-03-06 09:11:42 -08:00