Commit Graph

463 Commits (mbed-os-5.10)

Author SHA1 Message Date
Russ Butler 5e48ecedb7 Increase background stack size to fix overflows
On platforms using both tickless and the low power ticker wrapper
so much of the background stack is used that it overflows. To
ensure the background thread's stack doesn't overflow increase this
size by 256 bytes when tickless is enabled. Worst case usage
on the NUCLEO_F476RG was recorded at 656 when tickless is
turned on so this increased size should safely prevent overflows.
2018-11-16 14:49:17 +00:00
Amanda Butler cc736e50d8 Edit Kernel.h
Make minor copy edits for active voice, branding and deletion of extra spaces.
2018-11-16 14:49:17 +00:00
Senthil Ramakrishnan 3e27d99f21 Updated attach_thread_terminate_hook doxygen comments 2018-11-16 14:49:17 +00:00
Senthil Ramakrishnan 093fa1517c Kernel.h doxygen update 2018-11-16 14:49:17 +00:00
kegilbert 68b11b2dc8 Fix typos in RTOS doxygen. 2018-11-16 14:49:17 +00:00
adbridge 7a0911f328 Revert "RTOS: Add required header file and namespace element instead add all"
This reverts commit ba02b482ce.
Going to 5.11
2018-11-05 13:38:50 +00:00
Cruz Monrreal II 4a14db53b2 Make variables that are private in ConditionVariable.h, protected Paritally reverts docs PR 8511 2018-11-04 22:07:06 -06:00
Mel W cecd96f4f1 Breaking behaviors into two sections
as per @kjbracey-arm review
2018-11-04 22:06:11 -06:00
Mel W 99cc7f2fdf Adding missing punctuation. 2018-11-04 22:06:10 -06:00
Mel W 377be71ca7 True -> `true`, inserting article 2018-11-04 22:06:10 -06:00
Amanda Butler ea7be7c224 Edit Queue.h
Edit file, including existing text, mostly for active voice and consistent tense.
2018-11-04 22:00:49 -06:00
Steve Cartmell a5bb5246bb docs(api-queue): Update documentation for the Queue API 2018-11-04 22:00:49 -06:00
Melinda Weed 68081acb62 Capitalization, header level adjustment 2018-11-02 19:49:57 -05:00
Melinda Weed 9de93a19ee Adding punctuation 2018-11-02 19:49:57 -05:00
Melinda Weed e4acfe277b future to present tense 2018-11-02 19:49:57 -05:00
Amanda Butler 850cbb39ff Copy edit ConditionVariable.h
Copy edit file, including existing text.
2018-11-02 19:49:57 -05:00
Steve Cartmell 35bac5c5b9 docs(api-condvar): Update documentation for the ConditionVariable API
- Hide protected member structures from doxygen.
- Add some more details/comments to the example.
- Add some defined/undefined behaviours.
- Add some additional details to function documentation
2018-11-02 19:49:57 -05:00
Deepika ba02b482ce RTOS: Add required header file and namespace element instead add all 2018-11-02 19:49:55 -05:00
Amanda Butler 24f86d297d Edit EventFlags.h
Make minor copy edits to existing text.
2018-11-02 19:49:55 -05:00
Filip Jagodzinski 3623e6b0a1 EventFlags docs update. 2018-11-02 19:49:54 -05:00
Amanda Butler 49989d3cb8 Edit Mutex.h
Make minor copy edits to existing text.
2018-10-19 11:46:55 +01:00
Aashish chaddha 60eb38e5ee mutex doc changes 2018-10-19 11:46:55 +01:00
Aashish chaddha 56f365eca6 improve mutex doc 2018-10-19 11:46:55 +01:00
Aashish chaddha ab1a397029 improve mutex doc 2018-10-19 11:46:55 +01:00
Russ Butler ddceb6597a Replace macros with config options
Add a config option for the following values:
MBED_SYS_STATS_ENABLED
MBED_STACK_STATS_ENABLED
MBED_CPU_STATS_ENABLED
MBED_HEAP_STATS_ENABLED
MBED_THREAD_STATS_ENABLED
MBED_CONF_APP_MAIN_STACK_SIZE
MBED_CONF_APP_TIMER_THREAD_STACK_SIZE
MBED_CONF_APP_IDLE_THREAD_STACK_SIZE
MBED_CONF_APP_THREAD_STACK_SIZE

To maintain backwards compatibility inside the RTOS both
APP and RTOS config values can be used.
2018-10-08 15:18:50 +01:00
Deepika 6bcfdb91be Fixed: @44,18: unused variable 'tid' [-Wunused-variable] 2018-10-08 15:18:50 +01:00
Anna Bridge c2fdc0d972
Merge pull request #7423 from mprse/mutex_lock_assert
Fix issue #6872 - Mutex lock has possibility to fail at runtime (returning status flag)
2018-09-03 14:14:24 +01:00
Przemyslaw Stekiel fba9c4bc57 Address review comments.
Perform the following changes:
- change definition of `void Mutex::lock(void)` to `osStatus Mutex::lock(void)`.
- change definition of `void Mutex::unlock()` to `osStatus Mutex::unlock()`.
- use MBED_ERROR1 macro to check the lock/unlock operation status.
- add notes in the description of lock/unlock functions: "This function asserts status of the lock/unlock operation (will not return in case of failure). Use of the return value is deprecated, as the return is expected to become void in the future.".
- modify/add description of the return value.
- remove reference to Mbed 6.
- make `lock(millisec)` deprecated in favour of lock(), trylock() and trylock_for() functions.
2018-09-03 07:40:01 +02:00
Cruz Monrreal 48232be98e
Merge pull request #7872 from kjbracey-arm/thisthread
Add ThisThread namespace and deprecate static Thread methods
2018-09-02 15:10:18 -05:00
Cruz Monrreal 00b7700be2
Merge pull request #7875 from c1728p9/feature_CMSIS_5_0b521765
Update CMSIS to 5.4.0
2018-08-31 11:31:37 -05:00
Russ Butler 325565bf79 Refactor boot process
Refactor the Mbed 5 boot process to make is simpler and more modular.
This is done by breaking the boot sequence into 4 distinct steps -
Target setup, Toolchain setup, RTOS setup and Mbed setup. This patch
also move toolchain specific code into a per toolchain folder to make
it more maintainable.
2018-08-28 19:26:55 -05:00
Kevin Bracey 0ddd1d9af5 Make Thread methods const 2018-08-28 13:25:17 +03:00
Kevin Bracey 1330eeecd0 Add ThisThread 2018-08-28 13:25:17 +03:00
Kevin Bracey 6477b762d1 Style clean-up of Thread-related files 2018-08-27 12:30:33 +03:00
Przemyslaw Stekiel ac2db7cc06 Mutex: fixing missing include
Macro MBED_DEPRECATED_SINCE is defined in platform/mbed_toolchain.h which was not included.
If someone used member functions lock (which are prefixed with MBED_DEPRECATED_SINCE since some time), there would be a compile error instead of a warning.
Including mbed_toolchain.h fixes that.
2018-08-27 08:50:00 +02:00
Przemyslaw Stekiel c693eb512a Change `Mutex::unlock()` function definition - void return value
This is done for consistency with the new version of `Mutex::lock()` member function which does not return status.
2018-08-27 08:48:59 +02:00
Przemyslaw Stekiel b626e185ec `osStatus lock(uint32_t millisec=osWaitForever)` - remove default value
Since `void lock(void)` member function has been added we need to remove default value from deprecated `lock(uint32_t millisec=osWaitForever)` member function since otherwise calling `lock()` would be ambiguous.
2018-08-27 08:47:16 +02:00
Przemyslaw Stekiel 3decd510dc Fix codding style. 2018-08-27 08:47:16 +02:00
Przemyslaw Stekiel ca8070a482 Fix for issue #6872 - Mutex lock has possibility to fail at runtime (returning status flag)
Add assertions for statuses returned by osMutexAcquire().
Add void Mutex::lock(void) member function - lock function which does not return status and waits for the mutex forever.
Make osStatus Mutex::lock(uint32_t millisec=osWaitForever) member function deprecated in favour of bool Mutex::trylock_for(uint32_t millisec).
2018-08-27 08:47:16 +02:00
Russ Butler d5be92adb1 Fix define around EvrRtxKernelInitialized
Rename the define EVR_RTX_KERNEL_INITIALIZE_COMPLETED_DISABLE to
EVR_RTX_KERNEL_INITIALIZED_DISABLE so it matches the rest of RTX.
2018-08-25 20:41:11 -05:00
Russ Butler 6f7964b23f CMSIS/RTX: Remove the file os_tick_gtim.c
Cortex-A devices in mbed-os supply their own OS timer so the code
from RTX is not needed.
2018-08-25 20:41:11 -05:00
Bartek Szatkowski b7efe36125 CMSIS/RTX: Fix using FALSE/TRUE with preprocesor
(cherry picked from commit 1752803626)
2018-08-25 20:41:10 -05:00
deepikabhavnani 67b677d285 CMSIS/RTX: Pre-processor defines used for assembly
CMSIS repo does not support pre-processor defines, hence multiple assembly
files are added for secure/non-secure and floating point tools.

Mbed OS tools support assembly file pre-processing, but the build system
does not support multiple assembly files for each target, hence updating
the assembly files.

(cherry picked from commit 287121ffdc)
2018-08-25 20:41:09 -05:00
Bartek Szatkowski 4fd0daf9f5 CMSIS/RTX: Allow overwriting mutex ops for ARMC
(cherry picked from commit b88254809e)
2018-08-25 20:41:09 -05:00
Bartek Szatkowski 1be672d5f0 CMSIS/RTX: Patch RTX so irq_cm4f.s files work with no FPU targets
(cherry picked from commit cc2e0517e1)
2018-08-25 20:41:09 -05:00
Bartek Szatkowski 9a87d7b6a0 CMSIS/RTX: Patch RTX4 to preserve osThreadDef compatibility
mbed OS used older RTX4 version and with osThreadDef accepting only 3
parameters, to preserve compatibility we hardcode the 'instances'
parameter to 1.

(cherry picked from commit 428acae1b2ac15c3ad523e8d40755a9301220822)
(cherry picked from commit 4360b7bbf8)
2018-08-25 20:41:08 -05:00
Russ Butler 342841aa0f [CMSIS_5]: Updated to 0b521765 2018-08-25 20:41:00 -05:00
Russ Butler 5d0aac53bb Move Code to get Cortex A tick irqn
Move the function "mbed_get_a9_tick_irqn()" declared in os_tick.h
to SysTimer.h so it does not get overridden when RTX is updated.

This function was originally added in:
3d3e89097d
Fixes for RZ_A1H issue 6543
2018-08-25 20:40:17 -05:00
Oren Cohen 787317b7eb Remove uVisor from mbed-os 2018-08-22 16:36:59 +03:00
Cruz Monrreal f62e1032af
Merge pull request #7600 from c1728p9/remove_unnecissary_low_power_ticker_rescheduling
Remove unnecessary low power ticker rescheduling
2018-08-16 13:37:01 -05:00