Commit Graph

185 Commits (bebc235ffb8f0625a0f5c40ab922818fefb10f7b)

Author SHA1 Message Date
0xc0170 9aee702b11 RTX - pull cmsis_os into rt_Timer
This causing a warning in the rt_cmsis.c, as they use preprocessor
to redefine a type. A fix is to move the macro above, as it should not
change anything else. This should be removed, and use a cast, however I am
not fully familiar why they do this macro trick.
2016-05-06 12:27:25 -05:00
0xc0170 def841979a RTOS - fix Cortex-M version - add macros required for new kernel
2 new macros were introduced to capture changes in the kernel. We used toolchains/__init__
script to capture those, which is not in the sync with actual sources. This fix introduces
those macros in the source, rather than a script.

We will further eliminate those macros to be used outside of RTX kernel (c++ API).
2016-05-06 11:50:21 -05:00
neilt6 a484830587 [RTOS] Improved Error Functions
Added error message to sysThreadError(), and improved os_error().
2016-05-05 14:43:56 -06:00
0xc0170 cacf085e73 rtx - set task id prior rt_init_context
This is a bugfix, which caused LPC1549 to fail (os_error). There was a fix
introduced to rtx mbed sources. For more information:
461403989c
2016-05-05 13:49:47 -05:00
0xc0170 239c40eb62 RTX - os_error invokes mbed error() 2016-05-05 12:11:11 -05:00
0xc0170 bc270f1fe2 RTX - expose rt_tid2ptcb() function to get TCB
This enables the stack info methods to be supported for Cortex-M
targets. The rt_TypeDef required one small change - rename new structure
member as this is a reserved keyword in C++.

We need to ask for tid everytime we need to use tcb, do not expose internal
RTX details, we keep it within Thread.cpp file.
2016-05-05 12:11:09 -05:00
Russ Butler ab3c1e3a16 RTX: Support stacks larger than 64k
Cherry pick commit d587474778 -
"RTX: Support stacks larger than 64k"

This allows the latest version of the RTOS to run mbed client over
ethernet without crashing.
2016-05-05 12:11:06 -05:00
Martin Kojtal 007223c954 RTX - fix missing header guards for Cortex-M4 (GCC ARM)
The HAL CM4 is valid only for FPU present. These guards were added
to mbed SDK, as there are targets Cortex-M4.
2016-05-05 12:11:04 -05:00
Martin Kojtal aa6f0b8df1 RTOS - update for RTX v4.79 for Cortex-M
Thread - stack methods are not available for now, as tcb pointer was removed from
internal structure. To obtain it, we could get it from the kernel, but this should be
reconsidered. Either RTOS should provide it, or these methods will become deprecated.
2016-05-05 12:11:02 -05:00
Martin Kojtal 9a68561b69 RTX - update to v4.79 for Cortex-M
Changes to the original kernel:

Cortex-M requires to define __CMSIS_OS_RTX, and __MBED_CMSIS_RTOS_CM. The macro __MBED_CMSIS_RTOS_CM
is mbed specific macro, to track changes to the kernel. This should keep us aware what has changed. For instance,
one breaking change was thread adding instances variable, which were not in mbed. This can be find as
it's protected via __MBED_CMSIS_RTOS_CM ifdef.

```
// added for mbed compatibility
// original RTX code
```

Startup for toolchains - mbed defines own stack pointer (set_main_stack()), therefore it should be called in the startup.
IAR added low level init calls and dynamic intialization to the IAR startup. All defined in RTX_CM_lib.h.

The timer thread has task id 0x01, main task 0x02. There are exception for main task not to check for
overflows. This is mbed specific, was reapplied from mbed code base.

IAR fixed SVC calls, this fix had to be reapplied (repo mbed PR 736 for more information).
2016-05-05 12:11:00 -05:00
Mahadevan Mahesh f512738f91 Add support for KL27Z FRDM board
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-04-29 15:45:05 -05:00
Grégory Soutadé d5489b3723 Typo fix in HAL_CM0.S of ARM7 rtx 2016-04-29 07:58:34 +02:00
Martin Kojtal 670e7bcb47 Merge pull request #1639 from mbedNoobNinja/master
New mbed platform VK_RZ_A1H
2016-04-28 19:07:17 -05:00
mbedNoobNinja fa0bf58e3c New mbed platform VK_RZ_A1H 2016-04-26 17:27:39 +03:00
svastm 8503cec203 [NUCLEO_L031K6] Add RTOS support 2016-04-21 16:26:43 +02:00
Neil Thiessen c52e0dce48 Update rtos_idle.h
Removed unnecessary loop function prototype.
2016-03-08 10:55:56 -07:00
neilt6 9db32475d6 [RTOS] Added idle hook API
Added a new API for attaching a user-provided function to be executed by
the idle task.
2016-03-08 09:48:02 -07:00
bcostm 052f23a70a Add STM32L073RZ device 2016-02-29 16:21:24 +01:00
adustm 1535bf2874 [NUCLEO_F746ZG] support rtos for this new target 2016-02-26 11:36:35 +00:00
modtronix-com b78542d10e Changed target name from NZ32SC151 to NZ32_SC151 2016-02-18 09:49:14 +00:00
tomoyuki yamanaka 60b7accf22 Additional changes to support of export function to the IAR.
In support of export function to the IAR, delete unnecessary extern declaration.
2016-02-17 11:39:01 +09:00
tomoyuki yamanaka 27caef30a4 Support of export function to the IAR.
We modified the following to support the export function to the IAR.
- In tools files, add RZ_A1H to the target of IAR.
- In tools files, add the tmpl files.
2016-02-15 14:49:31 +09:00
Paul Staron 91fae56245 Update Teensy3_1 OS_CLOCK
Corrected OS_CLOCK to 96MHz
2016-02-11 21:54:04 +00:00
Martin Kojtal 42ceddf229 Merge pull request #1467 from mbedmicro/fix_m7core
Fix m7core
2016-01-11 16:55:37 +00:00
0xc0170 50719edaf5 RTOS - M4 files reuse for M7 2016-01-11 13:50:59 +00:00
adustm 3bf8c187b3 allow rtos support 2016-01-06 13:51:39 +00:00
U-owner-PC\owner d5d98a76f6 correct LED pins and pass singletest.py 2015-12-11 18:43:40 -08:00
0xc0170 53fa2b9d6c RTOS - add m7 cmsis header 2015-12-07 15:38:55 +00:00
bcostm ea13cda3d2 [DISCO_F746NG] Add support of this target in RTOS config files 2015-11-30 15:42:25 +01:00
Wojciech Gorniak fe7cff48cf added target definition to RTOS-related files 2015-11-12 09:56:47 +01:00
dbestm b07521e08a [DISCO_F469NI] RTOS support 2015-10-21 17:26:09 +02:00
dbestm 7d245b9cff Merge branch 'master' of https://github.com/mbedmicro/mbed into dev_disco_f469ni 2015-10-21 16:26:16 +02:00
dbestm c01a13fe1f [DISCO_F469NI] add support of the disco f469ni 2015-10-21 16:26:06 +02:00
dbestm 86c139d13b [NUCLEO_F303K8] add support for the nucleo_f303k8 2015-10-12 11:34:06 +02:00
Martin Kojtal 0fa6058084 Revert "[NUCLEO_F303K8] add support of the STM32F303K8" 2015-09-28 19:01:26 +02:00
dbestm d7ab336a2b Merge branch 'master' of https://github.com/mbedmicro/mbed into dev_nucleo_f303k8
Conflicts:
	workspace_tools/host_tests/host_test.py
2015-09-28 14:23:53 +02:00
Martin Kojtal e8c24ba90d Merge pull request #1326 from TomoYamanaka/master
RZ_A1H - Modify to support NEON for RTOS.
2015-09-25 14:23:28 +02:00
dbestm 0fb5d52a8c [NUCLEO_F303K8] add rtos support 2015-09-24 16:33:57 +02:00
dbestm a798dbf688 Revert "[NUCLEO_F303K8] add RTOS support"
This reverts commit e9728b552e.
2015-09-24 16:19:40 +02:00
dbestm e9728b552e [NUCLEO_F303K8] add RTOS support 2015-09-24 15:49:02 +02:00
dbestm 8361259947 [NUCLEO_F303K8] add support of the STM32F303K8 2015-09-23 11:32:38 +02:00
tomoyuki yamanaka 39d801e5c6 Modify to support NEON for RTOS. (CMSIS-RTOS common code)
We modified to support NEON of CMSIS-RTOS RTX for Cortex-A9 and fixed some bugs of it.
2015-09-08 16:38:09 +09:00
tomoyuki yamanaka d8a3c68e2c Modify to support NEON for RTOS. (CMSIS-RTOS RTX for Cortex-A9)
We modified to support NEON of CMSIS-RTOS RTX for Cortex-A9 and fixed some bugs of it.
2015-09-08 16:37:18 +09:00
dbestm ee21754e9a [NUCLEO_DISCO_L476xG] add RTOS support 2015-09-07 14:39:40 +02:00
Jun-Ru Chang 680a647d0d Fix compilation warning
The warning message is shown as below.

Compile: Thread.cpp
[Warning] Thread.cpp@45: In constructor 'rtos::Thread::Thread(void (*)(const void*), void*, osPriority, uint32_t, unsigned char*)':
  comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Jun-Ru Chang <jrjang@gmail.com>
2015-08-13 00:07:29 +08:00
Neil Thiessen 6a5f4abd25 [RTOS] Fixed INITIAL_SP for LPC11U68
According to the LPC11U68 datasheet, the top of SRAM0 occurs at 0x10008000, not 0x10004000.
2015-07-10 09:01:18 -06:00
Martin Kojtal 161ee189d8 Merge pull request #1206 from Josephc3/master
Add KL26 Target
2015-07-08 14:37:11 +01:00
0xc0170 c052d893de Merge branch 'master' of https://github.com/dbestm/mbed into dbestm-master
Conflicts:
	libraries/rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c
2015-07-06 09:05:31 +01:00
Josephc3 720b8f2bc8 Added KL26 Target
Added KL26Z as a target.
2015-06-21 19:03:45 +01:00
sg- 85bf37b778 change all .asm to .S 2015-06-20 13:39:33 -05:00