Sam Grove
83f24fb0bd
Merge pull request #2227 from mbedmicro/include_rtos_by_default
...
Includre rtos.h in mbed.h if present
2016-07-22 15:50:43 -05:00
Bogdan Marinescu
b8ab75db03
Includre rtos.h in mbed.h if present
...
So that apps don't need to include "rtos.h" explicitly anymore.
2016-07-22 18:08:32 +03:00
Martin Kojtal
6b8ff8feb3
Merge pull request #2192 from egostm/sleep_code_refactor
...
[STM32] Sleep code refactor
2016-07-22 13:40:06 +01:00
Mihail Stoyanov
c8a5aae7ab
Merge pull request #2098 from svastm/switch_default_build
...
[STM32XX] Fix default build
2016-07-22 12:11:07 +01:00
Vincenzo Frascino
015067f73b
[BEETLE] Add comment to clarify LEDs Emulation
...
Beetle board is built to optimize power consumption therefore does not
provide on-board LEDs.
This patch adds a comment in PinNames in order to clarify that the
Emulated LEDs are provided for compatibility reasons with the MBED test
suite.
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-07-22 10:28:27 +01:00
Martin Kojtal
51cd3cb972
Merge pull request #2191 from geky/callback-fp-deprecate
...
[api] Mark FunctionPointer and friends as deprecated
2016-07-22 10:25:07 +01:00
Martin Kojtal
37e254fa16
Merge pull request #2204 from fvincenzo/master
...
Lp_ticker and Us_ticker time count fix
2016-07-22 09:50:05 +01:00
Martin Kojtal
781fda0465
Merge pull request #2193 from neilt6/lpc15xx-ticker-fix
...
[LPC15XX] Fixed µs_ticker implementation
2016-07-22 09:11:17 +01:00
Vincent Coubard
07d7165f98
Remove LF clock initialization from os_init_clock.
...
The LF clock initialization is already handled by the SystemInit function.
This code was causing troubles when run on targets with an alternate LF
clock.
2016-07-21 19:36:58 +01:00
svastm
44da533625
[STM32XX] Fix default build
2016-07-21 13:09:26 +02:00
Martin Kojtal
dd010097ba
Merge pull request #2159 from jeromecoutant/PR_dev_NUCLEO_F207ZG
...
New STM32 board : NUCLEO_F207ZG
2016-07-21 11:13:33 +01:00
Martin Kojtal
89d5583bde
Merge pull request #2190 from geky/callback-const
...
[api] Fix handling of const objects in Callback class
2016-07-21 11:07:03 +01:00
Martin Kojtal
c9d8690fa9
Merge pull request #2194 from zgoda/BLUEPILL_fix_int_handler
...
[BLUEPILL_F103C8] Fix interrupt handler
2016-07-21 10:56:21 +01:00
Vincenzo Frascino
4f5b191e74
[BEETLE] Fix US_Ticker read
...
MBED OS requires an us_ticker_read function that returns a 32bit
value in microseconds. This can not be represented directly on
the Beetle Timer Load register.
max_us_on_reg = (0xFFFFFFFF ticks)/DIVIDER_US
This patch introduces an intermediate layer that counts the timer wraps
around and returns the correct value of us to the MBED library.
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-07-21 10:38:20 +01:00
Vincenzo Frascino
1b364a1e52
[BEETLE] Fix Lp_Ticker read
...
MBED OS requires an lp_ticker_read function that returns a 32bit
value in microseconds. This can not be represented directly on
the Beetle Dual Timer Load register.
max_us_on_reg = (0xFFFFFFFF ticks)/DIVIDER_US
This patch introduces an intermediate layer that counts the timer wraps
around and returns the correct value of us to the MBED library.
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-07-21 10:38:20 +01:00
Christopher Haster
e806b89df6
Fixed handling of const objects in Callback class
...
Before, the following results in a compilation error:
const struct Object *obj;
void obj_doit(const Object *obj);
Callback<void()> cb(obj, obj_doit);
This is especially noticable when migrating from the old Thread
constructor, which previously _required_ const.
Short term fix for all cv qualifiers through a C cast:
void *_obj = (void*)obj;
2016-07-20 19:20:32 -05:00
Neil Thiessen
22598341cd
[LPC15XX] Modified μs_ticker to use critical API
...
Replaced __disable_irq() and __enable_irq() with core_util_critical_section_enter() and core_util_critical_section_exit().
2016-07-20 08:55:14 -06:00
Jarek Zgoda
c005781063
[BLUEPILL] fix interrupt handler
2016-07-20 11:06:58 +02:00
Sam Grove
d89c3c18f9
Merge pull request #2158 from c1728p9/singleton_support
...
Singleton support
2016-07-19 16:34:20 -05:00
Neil Thiessen
d5f09859de
[LPC15XX] Fixed µs_ticker implementation for GCC
...
Modified SCT3 match register critical section for compatibility with GCC toolchain.
2016-07-19 11:41:44 -06:00
neilt6
9f6b2c47ca
[LPC15XX] Fixed µs_ticker implementation
...
Re-wrote µs_ticker implementation to use SCT3 instead of RIT in order to
fix a serious rollover bug at 1:11:34.
2016-07-19 10:24:02 -06:00
Erwan GOURIOU
f7120413ec
[STM32L4xx] Sleep API factorization
...
In order to enable sleep API factorization, HAL_Suspend/ResumeTick
functions have been implemented in hal_tick.c for each platform.
2016-07-19 16:36:33 +02:00
Erwan GOURIOU
75bbc0a3e1
[STM32L1xx] Sleep API factorization
...
In order to enable sleep API factorization, HAL_Suspend/ResumeTick
functions have been implemented in hal_tick.c for each platform.
2016-07-19 16:36:27 +02:00
Erwan GOURIOU
34c37c8b94
[STM32L0xx] Sleep API factorization
...
In order to enable sleep API factorization, HAL_Suspend/ResumeTick
functions have been implemented in hal_tick.c for each platform.
2016-07-19 15:28:21 +02:00
Erwan GOURIOU
8f6090d002
[STM32F7xx] Sleep API factorization
...
In order to enable sleep API factorization, HAL_Suspend/ResumeTick
functions have been implemented in hal_tick.c for each platform.
2016-07-19 15:28:19 +02:00
Erwan GOURIOU
3ab56972bc
[STM32F4xx] Sleep API factorization
...
In order to enable sleep API factorization, HAL_Suspend/ResumeTick
functions have been implemented in hal_tick.c for each platform.
2016-07-19 15:28:16 +02:00
Erwan GOURIOU
2afde47b46
[STM32F3xx] Sleep API factorization
...
In order to enable sleep API factorization, HAL_Suspend/ResumeTick
functions have been implemented in hal_tick.c for each platform.
2016-07-19 15:28:08 +02:00
Erwan GOURIOU
a227a9438c
[STM32F1xx] Sleep API factorization
...
In order to enable sleep API factorization, HAL_Suspend/ResumeTick
functions have been implemented in hal_tick.c for each platform.
2016-07-19 15:13:49 +02:00
Erwan GOURIOU
c1e0663922
[STM32F0xx] Sleep API factorization
...
In order to enable sleep API factorization, HAL_Suspend/ResumeTick
functions have been implemented in hal_tick.c for each platform.
2016-07-19 15:13:32 +02:00
0xc0170
c8fc07928a
Merge branch 'fix_int_handler' of https://github.com/svastm/mbed into svastm-fix_int_handler
...
Conflicts:
hal/targets/hal/TARGET_STM/TARGET_STM32F0/pwmout_api.c
hal/targets/hal/TARGET_STM/TARGET_STM32F7/pwmout_api.c
2016-07-19 14:10:25 +01:00
0xc0170
edf015ad92
Merge branch 'master' into release
...
Conflicts:
tools/export/uvision4.py
tools/export/uvision5.py
2016-07-19 08:44:34 +01:00
Christopher Haster
ad07ab8174
Marked FunctionPointer and friends as deprecated
...
FunctionPointer/FunctionPointerArg0/FunctionPointerArg1 has been
replaced by the more flexible Callback template class.
For the motivation behind adopting the Callback class:
https://github.com/mbedmicro/mbed/pull/1783
2016-07-18 16:22:21 -05:00
Russ Butler
348b32c3c6
Create singleton class and update code to use it
...
Create the wrapper class SingletonPtr. This provides a safe way to
declare and use singletons. This class allows both the lazy
initialization of a singleton, and allows the singleton to be
garbage collected by the linker if it is never referenced.
This patch also updates the HAL to use SingletonPtr when declaring
singleton mutexes.
2016-07-15 14:37:43 -05:00
Martin Kojtal
38ae4f9289
Merge pull request #2128 from LMESTM/fix_F4_serial_it_issue2119
...
[STM32] Serial interrupt TC vs. TXE
2016-07-15 15:21:49 +01:00
Martin Kojtal
1201f4a09c
Merge pull request #2127 from svastm/fix_rtc_min_year
...
[STM32XX] Fix RTC minimum date
2016-07-15 15:03:14 +01:00
Martin Kojtal
ee2f9174ad
Merge pull request #2097 from jamike/STM32F3
...
Target STM32F3
2016-07-15 11:05:02 +01:00
Martin Kojtal
829289bdd9
Merge pull request #2129 from jamike/Fix_for_#2124
...
Fix issue #2124 : IAR no rtos
2016-07-15 10:48:53 +01:00
Martin Kojtal
46057c5d70
Merge pull request #2103 from LMESTM/fix_pwmout_period
...
Fix pwmout period
2016-07-15 10:26:08 +01:00
Martin Kojtal
edd539b499
Merge pull request #2123 from jamike/remove_uARM_sys_cpp
...
[TARGET_STM] : remove sys.cpp not used in TOOLCHAIN_ARM_MICRO
2016-07-14 10:08:41 +01:00
jeromecoutant
616494bcc1
Minor updates after ST internal review
2016-07-13 11:35:27 +02:00
jeromecoutant
d32c215f4e
Add new NUCLEO_F207ZG (CMSIS)
...
source: STM32Cube_FW_F2_V1.4.0
- CMSIS v2.1.1 => v2.1.2
- HAL v1.1.2 => v1.1.3
2016-07-12 16:40:30 +02:00
jeromecoutant
4f579ecf7f
Add new NUCLEO_F207ZG (HAL)
2016-07-12 16:38:23 +02:00
jeromecoutant
7ab31e8524
Add new STM32F2 family (HAL)
2016-07-12 16:38:19 +02:00
jeromecoutant
cc729709fb
Update targets.json to add NUCLEO_F207ZG
2016-07-12 16:38:02 +02:00
Bogdan Marinescu
6f86064ece
Merge pull request #2140 from mbedmicro/k64f_flow_control
...
Added flow control for K64F
2016-07-12 13:07:11 +03:00
Bogdan Marinescu
089b67cc79
Merge pull request #2144 from geky/stdio-baud-config
...
Add config option for stdio baud rate
2016-07-12 13:06:29 +03:00
Martin Kojtal
4b441c9e9e
Merge pull request #2121 from rgrover/develop
...
introduce a context structure to encompass global state in the K64F Storage driver
2016-07-12 10:22:36 +01:00
Hasnain Virk
a4475a0cf8
Use correct mask for CTS flow control
2016-07-12 11:31:58 +03:00
Russ Butler
0343ad2674
KSDK2 - set ADC mux before taking measurement
...
Set the channel mux before taking a reading rather than on
initialization. This allows ADC pins on both mux A and B to be used in
the same application.
2016-07-11 20:34:58 -05:00
Christopher Haster
126de5b07a
Added config option for stdio baud rate
2016-07-11 18:42:44 -05:00