Vincent Coubard
55a35f9b9b
Use attributes from toolchain.h instead of compiler specific declaration.
2016-06-06 13:59:17 +01:00
Vincent Coubard
e46b659799
Merge branch 'master' of https://github.com/mbedmicro/mbed into nrf51_port
2016-06-05 20:46:42 +01:00
Vincent Coubard
c854d0180f
Build RTOS tests on nrf51 based targets.
2016-06-05 19:55:16 +01:00
Vincent Coubard
39a459f4b6
Port RTOS tests to nrf51.
...
Provide fixed stack stize for nrf51 targets.
Disable memory allocation for stdout otherwise tests fail on mkit target.
2016-06-05 18:32:47 +01:00
Vincent Coubard
c0a6c7c6d4
Better generation of heap section.
...
With this change, the heap section occupy the whole space from the end of
the bss section to the start of the stack section instead of taking a
fixed size in RAM.
This change allows applications to make a more efficient use of the RAM
available and allows application to be compiled if the space between end
of bss and start of stack is less than 2048 bytes.
2016-06-05 17:56:01 +01:00
Martin Kojtal
d1ec4beabe
Merge pull request #1830 from theotherjimmy/device-h-to-target-json
...
provided a script for moving from device.h to target.json
2016-06-04 07:51:31 +01:00
Jimmy Brisson
66574aaa9d
made features a first class citizen
2016-06-03 16:18:23 -05:00
Jimmy Brisson
ff11e7f022
updated readme to include a basic description of features.
2016-06-03 14:08:50 -05:00
Jimmy Brisson
dbeee2ab69
added device MICRONFCBOARD's provides to targets.json
2016-06-03 14:08:50 -05:00
Jimmy Brisson
9cf326861b
HUGE COMMIT WARNING device.h defines -> target.json features
...
one problem:
[WARNING] device APPNEARME_MICRONFCBOARD did not have an associated entry in targets.json
2016-06-03 14:08:40 -05:00
Jimmy Brisson
2fe708d526
added features support to all of the toolchains
2016-06-03 14:03:50 -05:00
Jimmy Brisson
76e6c885a2
auto-formatted target.json
2016-06-03 14:03:50 -05:00
Jimmy Brisson
ca8ae5c5d6
provided a scirpt for moving from device.h to target.json
...
use -h to find out how it works!
2016-06-03 14:03:50 -05:00
Martin Kojtal
986225d2a8
Merge pull request #1838 from egostm/dev_F4_V1.12.0
...
[STM32F4xx] Update Cube hal to v1.12.0
2016-06-03 15:22:34 +01:00
Martin Kojtal
f3d547e909
Merge pull request #1771 from BartSX/can-devel-f4
...
[STM32F4xx] CAN development for STM32F4xx family
2016-06-03 15:11:32 +01:00
Martin Kojtal
7c294554a2
Merge pull request #1784 from geky/attributes
...
Add useful attributes supported by supported compilers
2016-06-03 14:56:58 +01:00
Erwan GOURIOU
e5a12ea505
[STM32F4][DISCO-F429ZI] LSE not soldered. Use LSI RTC
2016-06-03 15:48:25 +02:00
Erwan GOURIOU
2afce67e5c
[STM32F4][V1.12.0] SystemCoreClock update
...
With ARM and uARM toolchains, SystemCoreClock is reset before UART init by libc.
Fix to perform SystemCoreClock init with UART init out of HAL init.
2016-06-03 15:48:25 +02:00
Erwan GOURIOU
a9b27da409
[STM32F4] Update Cube FW to V1.12.0
...
CMSIS to V2.5.0
HAL to V1.5.0
2016-06-03 15:48:25 +02:00
Erwan GOURIOU
8e15a6cc55
[STM32F4][V1.11.0] Update serial_api.c to support new UART_HandleTypeDef
...
Following cube update, there has been changes in cube HAL that impact
the serial_api.c layer. The global state has been moved to separate
global/tx and rx states, so we can now differentiate both.
2016-06-03 15:48:25 +02:00
Laurent Meunier
8955b6690d
[STM32F4] Update to cube V1.11.0
...
This cube version includes
HAL to V1.4.4
CMSIS to V2.4.3
2016-06-03 15:48:25 +02:00
Laurent Meunier
08733d131d
[STM32F4] Update to cube V1.10.0
...
CMSIS to V2.4.2
HAL to V1.4.3
2016-06-03 15:48:25 +02:00
Bartosz Szczepanski
766b5c29e2
[DISCO_F429ZI] Added CAN support
...
Added CAN API support for DISCO_F429ZI target.
Change-Id: I54b7d0ed25baf179fd899087297f4b8e76fc040a
2016-06-03 15:13:39 +02:00
Bartosz Szczepanski
ce781448b7
[DISCO_F469NI] Added CAN support
...
Added CAN API support for DISCO_F469NI target.
Change-Id: Icfc52ec532aa71412814f245b41494fa69df4430
2016-06-03 15:13:39 +02:00
Bartosz Szczepanski
96787cd79e
[NUCLEO_F446RE] Added CAN support
...
Added CAN API support for NUCLEO_F446RE target.
Change-Id: I6e585fd5ef9e5395c1dc5b9c31d09427927a0021
2016-06-03 14:48:20 +02:00
Vincent Coubard
000e04d768
RTOS port for nrf51.
...
The NRF51 doesn't have a systick. When the MCU doesn't have a systick, the
HAL has to export several functions which will be use by the kernel to
manage the tick:
* os_tick_init provides the initialization function for the alternative
hardware timer.
* os_tick_val returns the current value of the alternative hardware timer.
* os_tick_ovf returns the overflow flag of the alternative hardware timer.
* os_tick_irqack is an interrupt acknowledge function that is called to
confirm the alternative hardware timer interrupt.
The HAL should also call OS_Tick_Handler needs to be called as the
hardware timer interrupt function.
In the case of the NRF51, two RTCs are available:
* RTC0: reserved for soft device
* RTC1: used by us_ticker.
RTC1 is a 4 channels timers, channel 0 is used for us_ticker, and
in this port channel 1 is used for tick generation.
Implementation notes:
* RTC1_IRQHandler: has to be written in assembly otherwise a stack
overflow will occur because the function OS_Tick_Handler never
returns. This function is called when RTC1 channel IRQ is triggered.
* tick generation has been optimised for a tick with a duration of
1000us.
* us_ticker can still be compiled and used without RTX enabled.
More information about alternative timer as RTX Kernel Timer:
https://www.keil.com/pack/doc/CMSIS/RTX/html/_timer_tick.html
2016-06-03 10:13:10 +01:00
Martin Kojtal
bddce7ce7e
Merge pull request #1847 from svastm/pr_1743_continuation
...
[STM32L0XX] SlaveCounter type correction
2016-06-03 10:09:43 +01:00
svastm
d3c14f6bde
[STM32L0XX] SlaveCounter type correction
2016-06-03 11:03:53 +02:00
Martin Kojtal
57645936ba
Merge pull request #1811 from lindvalla/lpc4088_misc_fixes
...
Misc fixes for LPC4088/LPC4088DM:
2016-06-03 09:22:38 +01:00
0xc0170
2a19ddc9d1
Add lpc821 cocorico target
...
Added by @ElektorLabs PR #1840 , squashed manually.
2016-06-03 09:20:30 +01:00
Martin Kojtal
ff7d7aa337
Merge pull request #1776 from adamgreen/i2cRepeatedStartFix
...
Fix NXP LPCxxxx i2c_start() handling of repeated start
2016-06-03 08:18:28 +01:00
Martin Kojtal
5ac648f866
Merge pull request #1762 from BartSX/can-devel-f3
...
[STM32F3xx] CAN development for STM32F3xx family
2016-06-03 07:59:19 +01:00
Martin Kojtal
f68cdcb695
Merge pull request #1802 from theotherjimmy/callback-rtos
...
Adopt Callback class in rtos Threads
2016-06-02 17:08:59 +01:00
Martin Kojtal
7643399c1d
Merge pull request #1835 from stevew817/feature/rtos_support_efm32
...
[Silicon Labs] Disable RTOS support for EFM32ZG
2016-06-02 11:51:00 +01:00
Steven Cooreman
d14fc7f744
Forgot to remove ZG RTOS from the automated build...
2016-06-02 11:56:09 +02:00
Steven Cooreman
0015943bd9
Remove RTOS support for EFM32 Zero Gecko because of too little RAM
2016-06-02 10:06:26 +02:00
Martin Kojtal
5df96fbec3
Merge pull request #1815 from stevew817/feature/rtos_support_efm32
...
[Silicon Labs] Provide RTOS support for EFM32 targets
2016-06-02 08:08:20 +01:00
Christopher Haster
5cdb151193
Changed MBED_PACKED to a macro
...
Supports both __packed and __attribute__((packed)) styles of attriubtes
MBED_PACKED(struct) foo {
blablabla
};
2016-06-01 16:10:19 -05:00
geky
a08d04c751
Fixed typo in FORCEINLINE definition on IAR
...
per @c1728p9
2016-06-01 15:27:26 -05:00
geky
b7bcb931a8
Fix backwards compatibility for WEAK/PACKED attributes
2016-06-01 15:27:26 -05:00
Christopher Haster
4c7a4de673
Added MBED prefix to attributes
2016-06-01 15:27:26 -05:00
Christopher Haster
3f7fbe696d
Added useful attributes supported by supported compilers
...
Merges compiler-polyfill into hal/api/toolchain.h following the existing
mbed conventions.
tested on:
- GCC
- Clang
- ARMCC (online compiler)
- IAR
attributes:
- PACK
- ALIGN
- UNUSED
- WEAK
- PURE
- FORCEINLINE
- NORETURN
- UNREACHABLE
- DEPRECATED
2016-06-01 15:27:26 -05:00
Christopher Haster
e079c2e0e9
Added support for Callback to Thread lifetime
2016-06-01 12:11:05 -05:00
Martin Kojtal
02b0267143
Merge pull request #1765 from c1728p9/thread_safe
...
Thread safe
2016-06-01 18:01:18 +01:00
Steven Cooreman
b1accd3b07
Fix stack size on EFM32 RTOS tests to avoid heap overflow
2016-06-01 14:53:48 +02:00
Martin Kojtal
2db84dadcb
Merge pull request #1785 from geky/thread-lifetime
...
Add lifetime management to threads
2016-06-01 11:42:28 +01:00
Anders Lindvall
617caf6d98
Added all symbols to assembler (not just FPU_PRESENT=1). Removed unused c
...
compiler argument.
2016-06-01 09:22:40 +02:00
Christopher Haster
0180125293
Adopt Callback class in rtos Threads
2016-05-31 20:39:39 -05:00
Russ Butler
5b23d9b268
Remove assembler directives
...
Remove the assembler directives from the inline assembly in
RTX_CM_lib.h since these can have unintended side effects in
the surrounding C code.
2016-05-31 16:17:50 -05:00
Russ Butler
793f9c566a
Add partial thread safety to GCC
...
Add lock functions so that malloc and environment variable access are
thread safe. Add the compiler option "-o thread-safe" to use the full
version of newlib which is thread safe.
Note that this patch does NOT make file access thread safe.
2016-05-31 16:16:59 -05:00