Commit Graph

6060 Commits (a076f9a41586978d85126875324b2724e0e8eab2)

Author SHA1 Message Date
Alessandro Angelino a076f9a415 K64F: Add call to uvisor_init() in the startup code
This is backwards-compatible with unsupported targets.

If an application is compiled using the K64F target without uVisor
(UVISOR_PRESENT not set or set to 0) then uvisor_init() will just be an
empty function that immediately returns.
2016-06-10 16:56:17 +01:00
Alessandro Angelino 6aeafab6b3 K64F: Add page allocator sections to linker script
These changes are backwards compatible.

Targets that do not use the page allocator heap will have the same stack
and heap sizes available.
2016-06-10 16:56:17 +01:00
Alessandro Angelino eb9d124230 K64F: Add uVisor sections to the linker script
This commit includes all sections that are just added to the linker
script. These changes are backwards-compatible, meaning that they will
not affect the existing code.

Targets that do not support uVisor will leave those sections empty.
2016-06-10 16:56:17 +01:00
Niklas Hauser f81cf5d686 Add default implementation of malloc wrapping
For GCC malloc is always wrapped, but only used for FEATURE_UVISOR.
Otherwise we have to simply forward the wrappers.
2016-06-10 16:56:17 +01:00
Jaeden Amero 5d48984914 Initialize uvisor-lib
uvisor-lib has an init function that must be called before the RTOS kernel
is initialized. Call uvisor_lib_init from software_init_hook to accomplish
this.
2016-06-10 16:56:17 +01:00
Jaeden Amero 43e595aec3 Wrap software_init_hook
Wrap software_init_hook so that it can be used or extended from outside the
RTOS. This is desirable so that code can be added to the software_init_hook
without making the RTOS depend on new features or libraries.
2016-06-10 16:56:17 +01:00
Niklas Hauser 61166870ed RTX: Add context to osThreadCreate/Terminate 2016-06-10 16:56:16 +01:00
Niklas Hauser 259bd28c45 RTX: Add pointer to context to task structure 2016-06-10 16:56:16 +01:00
Jaeden Amero 4cdc4a7b45 Add OsEventObserver
Add the OsEventObserver mechanism. A client interested in receiving
notifications on certain OS events can register to receive notifications
with osRegisterForOsEvents. This is useful for clients like the secure
memory allocator, which observes thread switching events in order to swap
in and out different memory allocator objects.
2016-06-10 16:56:16 +01:00
Jaeden Amero 55f464da27 Copy memory management code over from uVisor
Add the memory management code from uVisor to a shared location that is
suitable for both supported and unsupported use. To do this, we copy all
the RTX-specific files from the RTX folders in uVisor.

Note that the page allocator code is so identical between uVisor supported
and unsupported mode that we can copy the file as-is from uVisor for use on
unsupported targets. This commit performs that copying, to a file called
page_allocator.c_inc, which is included from unsupported_page_allocator.c
only for targets where uVisor is not present.
2016-06-10 16:56:16 +01:00
Milosch Meriac 10d9c2fa97 Add updated uVisor importer script 2016-06-10 16:56:16 +01:00
Martin Kojtal 9714a0edf6 Merge pull request #1892 from geky/fix-ksdk2-lwip
Fixed uninitialized port in lwip dragged in by KSDK2
2016-06-09 18:52:38 +01:00
Christopher Haster f046234ce8 Fixed uninitialized port in lwip dragged in by KSDK2 2016-06-09 12:43:00 -05:00
Martin Kojtal 641e3a8748 Merge pull request #1891 from c1728p9/restore_interrupts
KSDK2 - restore interrupts in InstallIRQHandler
2016-06-09 18:31:02 +01:00
Russ Butler 9d7ca3e405 KSDK2 - restore interrupts in InstallIRQHandler
Restore the state of interrupts inside InstallIRQHandler rather than
leaving them enabled.
2016-06-09 18:27:22 +01:00
Martin Kojtal 24e767c10f Merge pull request #1888 from sg-/feature-label
Feature label
2016-06-09 15:40:46 +01:00
Sam Grove d71f015659 Added features to Target description to support the changed names and build extensions 2016-06-09 15:00:36 +01:00
Martin Kojtal 91b96131bc Merge pull request #1887 from rgrover/master
the contents of Driver_Storage.h don't need to be guarded by #if DEVI…
2016-06-09 14:13:08 +01:00
Mihail Stoyanov e7c3c883de Introduce FEATURE_ keyword which behaves like TARGET_ but is generated from targets features (see targets.json) 2016-06-09 14:10:52 +01:00
Rohit Grover 527e305df5 the contents of Driver_Storage.h don't need to be guarded by #if DEVICE_STORAGE 2016-06-09 13:30:54 +01:00
Martin Kojtal 7d583e5541 Merge pull request #1853 from svastm/update_cube_l4
[STM32L4XX] Update HAL_Cube_L4 to 1.5.1
2016-06-09 11:35:35 +01:00
Martin Kojtal bead0173d9 Merge pull request #1881 from mbedmicro/rename_features
Rename "features" to "device_has" in targets.json
2016-06-09 11:32:21 +01:00
Martin Kojtal 7f952dc19e Merge pull request #1884 from 0xc0170/fix_rtos_config
RTOS - add mbed_lib.json file
2016-06-09 11:12:29 +01:00
Martin Kojtal 2197b87cca Merge pull request #1886 from kjbracey-arm/gpio_no_fsl
Don't pull KSDK FSL libraries into apps
2016-06-09 11:12:09 +01:00
Martin Kojtal f7e6a0f9ca Merge pull request #1879 from sbutcher-arm/mbedtls-entropy-collector
Add entropy collector for K64F to mbed HAL for use in mbed TLS
2016-06-09 11:07:24 +01:00
Kevin Bracey ecff7753fc Don't pull KSDK FSL libraries into apps
Freescale KSDK2 gpio_object.h pulled in Freescale libraries to inline
some GPIO operations.

The resulting namespace pollution (status_t) doesn't seem to be worth
the function call overhead. Hopefully making the base address array
non-automatic will offset that loss.
2016-06-09 10:28:56 +01:00
svastm 92688edc31 [STM32L4XX] Reset UART on init 2016-06-09 11:25:51 +02:00
svastm 2f29b9af2e [STM32L4XX] Fix deinit of SystemCoreClock on ARM toolchain 2016-06-09 11:25:51 +02:00
svastm 32bca79452 [STM32L4XX] Init daylight saving time 2016-06-09 11:25:51 +02:00
svastm a29e15e07c [STM32L4XX] Update HAL_Cube_L4 to 1.5.1 2016-06-09 11:25:51 +02:00
Martin Kojtal 117cd1d984 Merge pull request #1885 from iriark01/patch-1
Adding a blank line to commit
2016-06-09 10:25:02 +01:00
Irit Arkin 9e32456929 Adding a blank line to commit
Because the encoding is wrong, and we can't build the API docs like that. GitHub said a commit will fix the encoding, so I'm comitting.
2016-06-09 10:19:08 +01:00
Simon Butcher f450786174 Add entropy collector for K64F to mbed HAL for use in mbed TLS
mbed TLS requires an entropy source, and this provides support for one through
the K64F RNG.
The macro MBEDTLS_ENTROPY_HARDWARE_ALT also added to target.json to enable use
of the entropy collector by mbed TLS.
2016-06-09 00:51:14 +01:00
0xc0170 f3f4430b8f RTOS - add config mbed_lib.json file
Defines that rtos is present, this resolves in the macro:
"MBED_CONF_RTOS_PRESENT=1"
2016-06-08 18:41:29 +01:00
Bogdan Marinescu 05059a617f Rename "features" to "device_has" in targets.json
"features" will make more sense in the context of the feature support
that we'll introduce later (related to #1878). Plus, "device_has" is
arguably a better description of the actual content of this key.
2016-06-08 18:32:39 +03:00
Martin Kojtal d7a196e89e Merge pull request #1826 from jeromecoutant/PR_UpdateF0_driver_v1_5_0
[STM32F0] update Cube driver to v1.5.0
2016-06-08 14:11:59 +01:00
Martin Kojtal 5c60eb61d0 Merge pull request #1867 from rgrover/master
introduce the CMSIS Storage driver and its implementation for K64F
2016-06-08 13:56:27 +01:00
Martin Kojtal c9a15d0530 Merge pull request #1854 from pan-/nrf51_port
RTOS port for NRF51 targets
2016-06-08 13:52:32 +01:00
Rohit Grover 00feaa02f2 adding STORAGE to the list of device features for K64F 2016-06-08 12:16:00 +01:00
Rohit Grover 93564b6b57 add a missing extern to a global declaration of a status register 2016-06-08 11:23:44 +01:00
Rohit Grover 0986c54b20 guard code within DEVICE_STORAGE
as required by mbedmicro
2016-06-08 11:16:57 +01:00
Martin Kojtal 83aec2dc12 Merge pull request #1877 from mbedmicro/change_uvisor_flag
Add a K64F target with uVisor enabled
2016-06-08 11:16:50 +01:00
Rohit Grover 0a9bba4eca rename intermediate folder from "storage-abstraction" to "storage_abstraction" 2016-06-08 11:15:40 +01:00
Bogdan Marinescu b368c4ac48 Add a K64F target with uVisor enabled
Also, remove UVISOR_SUPPORTED from the other targets.
2016-06-08 13:00:41 +03:00
Martin Kojtal 9947072504 Merge pull request #1875 from mbedmicro/add_uvisor_flag
Add UVISOR_SUPPORTED to the K64F based targets
2016-06-08 10:55:41 +01:00
Bogdan Marinescu 6cd41fd314 Add UVISOR_SUPPORTED to the K64F based targets 2016-06-08 12:36:07 +03:00
Mahesh Mahadevan 847d3aa37b Fix for Issue# 1834 (#1871)
Explicitly disable the config for differential conversion

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-06-08 09:39:00 +01:00
Martin Kojtal a169d6c0b9 Merge pull request #1874 from BartSX/can-st-json
[STM32] Move CAN device.h defines to targets.json
2016-06-08 09:36:23 +01:00
Bartosz Szczepanski 5562f9a40a [STM32] Move CAN device.h defines to targets.json
This patch moves all CAN defines, for all STM32 boards with CAN support, to
targets.json file.

Change-Id: Ic3335cd4237e646d849b3554de69a9048846b186
2016-06-08 09:24:46 +02:00
Vincent Coubard c58198e52b Remove setbuf from rtos tests. 2016-06-07 17:50:00 +01:00