Commit Graph

2932 Commits (08dc6f64eeb16e94e7476ed59c9f10ba58c09b81)
 

Author SHA1 Message Date
Paul Bartell 08dc6f64ee Change kernel revision in each file header from V10.4.3 to <DEVELOPMENT BRANCH>
Dan Good 8e2f723996
queue.c: Change some asserts into conditionals and improve overflow checks ()
alfred gedeon a1b918c1aa
Code: Fix stream buffer warning ()
Joseph Julicher 736f2302ae
deprecating the mcf5235 port ()
j4cbo f37bcd5c14
Wrap macros in do { ... } while( 0 ) ()
Evgeny Ermakov ac2c383bc1
Posix: fix copyright ()
RichardBarry 6bf3a75c6a
Create macro versions of uxListRemove() and vListInsertEnd() for use in xTaskIncrementTick(). This provides a minor optimisation to remove the need for a few function calls. ()
Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
Paul Bartell 71f5af4e0f
Fix regression in vQueueAddToRegistry. ()
Meco Jianting Man d8770748ff
[kernel & MemMang] use space to replace tab and remove meaningless space in the end of each line ()
Signed-off-by: Meco Man <920369182@qq.com>

Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
Paul Bartell 46f7feba81
Replace configASSERT( pcQueueName ) in vQueueAddToRegistry with a NULL pointer check. ()
* Replace configASSERT( pcQueueName ) in vQueueAddToRegistry with a NULL pointer check.

Fixes 

* Make NULL checks consistent.
Meco Jianting Man 99295c9ae8
simplify and beautify portBYTE_ALIGNMENT ()
Jeff Tenney 05ded5bd8d
Remove support for tmrCOMMAND_START_DONT_TRACE ()
* Remove support for tmrCOMMAND_START_DONT_TRACE

Prior to this commit, the timer task used tmrCOMMAND_START_DONT_TRACE
to reload a "backlogged" auto-reload timer -- one for which a reload
operation would have started a period that had already elapsed.  If the
command queue contained a stop or delete command when
tmrCOMMAND_START_DONT_TRACE was put into the queue for a reload, the
timer unexpectedly restarted when the timer task processed
tmrCOMMAND_START_DONT_TRACE.  This commit implements a new method of
reloading auto-reload timers and eliminates support for
tmrCOMMAND_START_DONT_TRACE.  No other code sends this private command.

However, the symbol tmrCOMMAND_START_DONT_TRACE remains defined, with
its original command value, so as not to impact trace applications.

Also fix one-shot timers that were not reliably being marked as not
active:
- when they expired before the start command could be processed
- when the expiration was processed during the timer list switch

Also improve consistency:
- Always reload auto-reload timers *before* calling the callback.
- Always call traceTIMER_EXPIRED() just prior to the callback.

* fix indent

* Revert unnecessary change to prvTimerTask()

Change was intended to faithfully work through a backlog that spanned a
list switch, and before processing a stop or delete command.  But, (1)
it isn't important to do that, and (2) the code didn't accomplish the
intention when *two* auto-reload timers were backlogged across a list
switch.  Best to simply leave this part of the code as it was before.

* fix style

Co-authored-by: Joseph Julicher <jjulicher@mac.com>
Paul Bartell a22b438e60
Overwrite existing QueueRegistry entries when a handle is added multiple times. ()
Overwrite an existing entry for a given xQueue handle when vQueueAddToRegistry is called with an xQueue handle of a queue that is already in the QueueRegistry.
Paul Bartell a31018d025
Update parent repository primary branch name from "master" to "main". ()
carlo-dev-git 75e0c36eb4
Code cleanup ()
* Update port.c

* Code cleanup

Misc coding style cleanup and typo fixes

* Fix ASM style

Fix ASM style

* Fix header check

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

Co-authored-by: Carl Lundin <53273776+lundinc2@users.noreply.github.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Gaurav-Aggarwal-AWS b08c19f745
Define default values of macros before first use ()
configSTACK_ALLOCATION_FROM_SEPARATE_HEAP was added recently in
https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/267. This macro was
used in portable.h before its default value was defined, resulting in a
warning when built with -Wundef. This changes moves the default value
definition for configSTACK_ALLOCATION_FROM_SEPARATE_HEAP to portable.h
to ensure that it is defined before first use.

portUSING_MPU_WRAPPERS check in mpu_wrappers.h was updated in
https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/285. The new check
results in a warning when built with -Wundef because
portUSING_MPU_WRAPPERS is not defined yet. This changes adds the default
value definition for portUSING_MPU_WRAPPERS to portable.h to ensure that
it is defined before first use.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Ming Yue 534eba66ce
Check NULL pointer input for vEventGroupDelete. ()
* Check NULL pointer input for vEventGroupDelete.

* Change the input parameter check with assertion.

Co-authored-by: Cobus van Eeden <35851496+cobusve@users.noreply.github.com>
Paul Bartell 9b679c347c
Fix comments in list.h and clarify list usage in xTaskRemoveFromEventList ()
* Change instances of "descending" to "ascending" to match implementation.

* Uncrustify

* Clarify list usage in xTaskRemoveFromEventList
Gaurav-Aggarwal-AWS 9efe10b805
Add assert to catch invalid task priority ()
* Add assert to catch invalid task priority

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Paul Bartell 4ad84923a0
Build the posix port on pushes and PRs to the Kernel repository ()
* Run posix build action when new commits are pushed to the FreeRTOS/Kernel repository

* Run kernel unit tests on push and pull_request actions
alfred gedeon 9cd19603e8
Code: Remove redundant check ()
RichardBarry 6b72419c78
Fix error introduced when merging . ()
milesfrain 6685c042cb
Fix race condition bugs when reading and writing to message buffers ()
* Fix inaccuracies in prvWriteBytesToBuffer description

* Perform atomic message write in prvWriteMessageToBuffer

* Remove unnecessary length arg from prvReadMessageFromBuffer

* Perform atomic message read in prvReadBytesFromBuffer

* Apply SpacesAvailable() fix

Original author: RichardBarry

* Apply review feedback

* Edit some prv functions for simplicity and consistency

- prvWriteMessageToBuffer
- prvReadMessageFromBuffer
- prvWriteBytesToBuffer
- prvReadBytesFromBuffer

* Significant simplification of prvWriteMessageToBuffer

* fixup off-by-one comment indentation

Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
Co-authored-by: RichardBarry <3073890+RichardBarry@users.noreply.github.com>
RichardBarry 086d52f9d3
A recent change in the FreeRTOS/FreeRTOS hub repo (which submodules this repo) introduced use of a new compile time constant configRUN_ADDITIONAL_TESTS. This check in adds a default for the constant that will be used in builds to which it does not apply. ()
alfred gedeon 9706a69850
Fix: testing for mpu wrapers to be equal to 1 ()
Tobias Schulte cb7bef09f2
Adjust portPOINTER_SIZE_TYPE to correct size ()
* Adjust portPOINTER_SIZE_TYPE to correct size

portPOINTER_SIZE_TYPE wasn't yet set correctly to be 16 bit

* Fixed FreeRTOS file header to comply with automatic checks

Co-authored-by: Cobus van Eeden <35851496+cobusve@users.noreply.github.com>
carlo-dev-git 49c38f08de
Update port.c ()
alfred gedeon 1059b35838
Comment: xTaskResumeAll: comment: doesn't match the code ()
Paul Bartell 95433d0284
Run CMock unit tests on each pull request with a github action. ()
Run CMock unit tests on each pull request with a github action.
Include coverage information reported by codecov.io
Ravishankar Bhagavandas 755daad276
Improve comments and assertions in stream buffer ()
* Improve comments and assertions in stream buffer

* Add back null check instead of assert

* Adding config assert back
Gaurav-Aggarwal-AWS 66b3f908df
Update comment in list.c ()
The tick interrupt priority must be configured to ensure that it cannot
interrupt a critical section. This change updates the comment to help
the application writer while debugging.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Paul Bartell 18d4ba9c07
Add some assertions and coverage exceptions to queue.c ()
* Add an LCOV_BRANCH exception for the check that sizeof( StaticQueue_t ) == sizeof( Queue_t )
* Add LCOV_BRANCH coverage exception for a configASSERT on pxQueueSetContainer with a condition that is unreachable.
* Add configASSERTs to alert when invalid parameters are passed into Queue Registry related functions.
* Assert that the semaphore handle passed into xQueueGetMutexHolder is not NULL.
* Correct some typos in queue.c
* Update lexicon.txt
xuelix de19eeb7d3
Moved git-secrets check to a different workflow ()
git-secrets check is now performed on all PR branches
alfred gedeon 4b5d1e4395
Comment: fix code comment for xTaskAbortDelay ()
xuelix 98eba938e2
Added git-secrets check to Github Actions ()
Co-authored-by: Gary Wicker <14828980+gkwicker@users.noreply.github.com>
Joseph Julicher 5e45472d6e
fixed documentation for ulTaskNotifyTake() and ulTaskNotifyTakeIndexed() ()
gomonovych 4fde4a8d0a
Add description for vTaskList ()
Describe each column which vTaskList print:
task name, task status, task priority, task stack unused watermark lewel, task number

Co-authored-by: David Chalco <59750547+dachalco@users.noreply.github.com>
Gaurav-Aggarwal-AWS 2a604f4a28
Support allocating stack from separate heap ()
The change adds support for allocating task stacks from separate heap.
When configSTACK_ALLOCATION_FROM_SEPARATE_HEAP is defined as 1 in
FreeRTOSConfig.h, task stacks are allocated and freed using
pvPortMallocStack and vPortFreeStack functions. This allows the
application writer to provide a separate allocator for task stacks.

When configSTACK_ALLOCATION_FROM_SEPARATE_HEAP is defined as 0, task
stacks are allocated and freed using FreeRTOS heap functions
pvPortMalloc and vPortFree.

For backward compatibility, configSTACK_ALLOCATION_FROM_SEPARATE_HEAP
defaults to 0.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Carl Lundin 81f5892105
Update python version to 3.7.10 ()
Jeff Tenney 1d4d16fd54
Update URL in history.txt ()
* Update URL in history.txt

* Configure CI header checker to ignore .txt files

Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
milesfrain 5b9549ab82
Remove unmatched braces in MessageBuffer pre tags ()
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
alfred gedeon a4b2e0c3f3
Check: improve verbosity of url verifier ()
* Check: improve verbosity of url verifier

* Fix Renesas url

* Fix Renesas url

* URL add Renesas full url

* Fix more Renesas URLs

* Fix Renesas url in IAR directory

* Testing new curl command for url checks

* Fix url_checker

* Fix url_verifier

* Revert Renesas url changes

* add txt to the ignored header checker extentions
Cobus van Eeden 21b1058bf7 Update issue templates
David Chalco 0345a20202
incorporate updates from common ()
* incorporate updates from common

* empty commit to rerun check
nazar01 6b4a3d0a6e
Typos ()
* Fix typos in FreeRTOS.h

* Fix typos in task.h

* Fix typos in tasks.c
David Chalco d0afede565
Delete gitattributes ()
Evgeny Ermakov 6b524a2fee
Fix typo in comment in task.h ()
alfred gedeon d060479353
Fix Github checks after move from master to main ()
David Chalco 578d040659
Add git attributes ()
* Add .gitattributes configured to normailze line endings to LF

* replace crlf with lf, per .gitattributes
Thomas Pedersen 23f641850d
Posix: fix build failure ()
Fixes: a48f137896 ("Posix Port: Comment and remove unused variables ()")

Authored-by: Thomas Pedersen <thomas@adapt-ip.com>