bcostm
a908d28f26
STM32 serial: coding style
2018-01-29 17:23:20 +01:00
bcostm
73ffc06ffd
STM32 serial: fix linking error
2018-01-29 17:23:20 +01:00
bcostm
e446c26584
STM32 serial: use uart_name instead of uart_base
2018-01-29 17:23:20 +01:00
bcostm
7256af0d5b
STM32 serial: change serial_get_irq_n function for F4 devices
2018-01-29 17:23:20 +01:00
bcostm
172c02a856
STM32 serial: use get_uart_index function for F4 devices
2018-01-29 17:23:20 +01:00
bcostm
066da18e0d
STM32 serial: add get_uart_index utility function
2018-01-29 17:23:20 +01:00
bcostm
0efd33f010
STM32 serial: move init_uart function at the end of file
2018-01-29 17:23:20 +01:00
Cruz Monrreal
cf5065c312
Merge pull request #5901 from cmens23/netbeans_exporter
...
Netbeans Exporter Bugfix
2018-01-29 10:11:59 -06:00
Cruz Monrreal
702eaff3eb
Merge pull request #5929 from ARMmbed/prettybars
...
Add pretty bars for compile output
2018-01-29 10:11:20 -06:00
Cruz Monrreal
6da5d54e40
Merge pull request #5933 from phyokyaw/master
...
Add OpenOCD 5x launch file to e2 studio and update naming
2018-01-29 10:10:08 -06:00
Cruz Monrreal
49cdb0bb07
Merge pull request #5945 from kjbracey-arm/dns_multiple
...
Correct return value of nsapi_dns_query_multiple
2018-01-29 10:09:42 -06:00
Cruz Monrreal
ebc8adbd4f
Merge pull request #5951 from jeromecoutant/PR_STDIO2
...
STM32 NUCLEO F413ZH and L433RC : STDIO configuration
2018-01-29 10:09:19 -06:00
bcostm
8ed0f26d80
Check cache before enabling it
...
The mbed_sdk_init can be called either during cold boot or during
application boot after bootloader has been executed.
In case the bootloader has already enabled the cache,
is is needed to not enable it again.
2018-01-29 16:04:46 +01:00
bcostm
5ad0887d7e
NUCLEO_F767ZI: Add bootloader support
2018-01-29 15:53:44 +01:00
bcostm
e933971f92
BL NUCLEO_F746ZG: change scb->vector assignment
2018-01-29 15:53:24 +01:00
bcostm
39cc300cd2
BL NUCLEO_F746ZG: enable bootloader
2018-01-29 15:53:12 +01:00
bcostm
e10e555520
BL STM32746xG: Update scatter/link files
2018-01-29 15:52:33 +01:00
Kevin Bracey
2b77caa32c
Add Semaphore::wait_until
...
Given the 64-bit timebase, add wait_until to Semaphore.
Naming is based on Thread::wait_until.
pthreads uses "timedwait", but that's not a good fit against our
existing wait() - pthreads only has an absolute-time wait, not relative.
2018-01-29 15:26:41 +02:00
Kevin Bracey
cd573a603f
Add Mutex::trylock_until and trylock_for
...
Given the 64-bit timebase, add trylock_until to Mutex.
Naming is based on a combination of Mutex::trylock, Thread::wait_until,
and C++11 timed_mutex::try_lock_until.
pthreads and C11 use "timedlock", but that's not a good fit against our
existing trylock() and lock(timeout) - they have only absolute-time
waits, not relative.
To increase the similarity to C++11, add trylock_for - same parameters
as lock, but with the bool return value of trylock and trylock_until.
Add an assertion when convering status codes to booleans to check that
there are no non-timeout errors.
2018-01-29 15:26:41 +02:00
Kevin Bracey
bbefeb4432
Add ConditionVariable::wait_until
...
Given the 64-bit timebase, add wait_until to ConditionVariable.
Move the timeout example to wait_until(), and give wait_for() an
alternative example, as it's no longer the best option for a
timeout.
Tidy up - remove the redundant RESUME_SIGNAL definition.
2018-01-29 15:26:41 +02:00
Kevin Bracey
3bb2c445ca
Correct ConditionVariable ISR comments
...
No ConditionVariable methods are useable from ISR, due to the built-in
mutex and the requirement that the caller of notify holds the mutex.
2018-01-29 15:26:41 +02:00
Kevin Bracey
99dc805e79
Add Thread::wait_until
...
API is somewhat loose to cope with potential shift in the underlying
RTOS APIs.
2018-01-29 15:26:41 +02:00
Kevin Bracey
4d3888c06a
Add Kernel::get_ms_count
...
Give C++ access to the RTOS's absolute timebase, reducing the need to
run private Timers and similar. Allows wait_until functionality, and
makes it easier to avoid time drift.
Place it in a new header and namespace in case we want more kernel
functions in future.
Try to cover over the breaking API change potentially upcoming in
CMSIS-RTOS 2.1.1, when it reduces the tick count from 64-bit to 32-bit.
(See https://github.com/ARM-software/CMSIS_5/issues/277 )
Explicitly state that ticks are milliseconds in mbed OS, despite CMSIS
RTOS 2 permitting different tick rates.
See also https://github.com/ARMmbed/mbed-os/pull/3648 (wait_until
for condition variables) and
https://github.com/ARMmbed/mbed-os/issues/5378 (EventQueue should
use RTOS tick count).
2018-01-29 15:26:41 +02:00
Ashok Rao
e1d901204b
Add license info
2018-01-29 12:20:00 +00:00
jeromecoutant
8f647beacb
STM32 : set all PinMap structures as weak
...
This allow custom overwrites
2018-01-29 09:26:49 +01:00
Cruz Monrreal
3c793a714c
Merge pull request #5087 from mprse/rtc_test
...
Add RTC time test.
2018-01-26 17:26:38 -06:00
Cruz Monrreal
6e964a6fe4
Merge pull request #5476 from ubirch/add-cmake-export
...
add cmake exporter for CLion use
2018-01-26 15:07:55 -06:00
sarahmarshy
695dc0059d
Change exception in ArmPackManager FLM reader
2018-01-26 13:24:29 -06:00
sarahmarshy
58330fb858
Treat start variable as addrss in `generate_bootloader_build`
...
Correct spacing.
2018-01-26 13:24:29 -06:00
sarahmarshy
623b1711f9
Introduce sector ceiling/floor rounding
...
Use ceiling for bootloader end address
Use floor for application size
2018-01-26 13:24:29 -06:00
sarahmarshy
785dd100cf
Use Config class sector variable
2018-01-26 13:24:29 -06:00
sarahmarshy
6f39d5a063
Error check existence of sectors
2018-01-26 13:24:29 -06:00
Sarah Marsh
41dac7a34a
Add pyelftools dependency
2018-01-26 13:24:29 -06:00
Sarah Marsh
86d4ce1991
Align managed bootloader addresses on sector boundaries
...
Aligns application start address to sector boundary
Aligns application end address to sector boundary
2018-01-26 13:24:29 -06:00
Sarah Marsh
c74de99872
Fix typo in _generate_bootloader_build
2018-01-26 13:24:29 -06:00
Sarah Marsh
a2195082cc
Add functions for getting sectors in Config class
2018-01-26 13:24:29 -06:00
Sarah Marsh
5009fdb5fc
Move FLM parsing to arm_pack_manager and regenerate index
...
Modify arm_pack_manager to look for new keys in pdsc files, because some
vendors have changed their format
2018-01-26 13:24:29 -06:00
Wilfried Chauveau
e6b19d838c
add support for STM32L443RC & WISE-1510
2018-01-26 17:06:39 +00:00
Cruz Monrreal
da6532e57a
Merge pull request #5857 from TomoYamanaka/master
...
Registration GR-LYCHEE board as a new mbed board
2018-01-26 10:50:44 -06:00
jeromecoutant
c9c6857c7c
STM32 NUCLEO F413ZH and L433RC : STDIO configuration
...
#5795 patches are missing for these 2 targets
STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-01-26 17:50:10 +01:00
Cruz Monrreal
ce4d6c9f36
Merge pull request #5942 from c1728p9/remove_tickless_assert
...
Remove tickless assert for tick count
2018-01-26 10:43:44 -06:00
Cruz Monrreal
24859e90e1
Merge pull request #5789 from maciejbocianski/hal_critical_section_tests
...
Add tests for critical section HAL API
2018-01-26 10:39:33 -06:00
Cruz Monrreal
fe87499af8
Merge pull request #5874 from c1728p9/usb_fixes_and_improvements
...
USB fixes and improvements
2018-01-26 10:37:13 -06:00
Cruz Monrreal
dfa55336f5
Merge pull request #5907 from bcostm/fix_f0_usart_irq
...
STM32F0: fix issue with usarts sharing the same irq vector
2018-01-26 10:36:55 -06:00
Cruz Monrreal
9a47f09ea9
Merge pull request #5910 from OSHChip/typo-fix
...
fix typos in lint.py
2018-01-26 10:36:33 -06:00
Cruz Monrreal
b67b69ee54
Merge pull request #5912 from MikeDK/critical_section_lock_fix
...
CriticalSectionLock: fixing missing include
2018-01-26 10:36:04 -06:00
Cruz Monrreal
ce87bdaf19
Merge pull request #5913 from DBS06/efm32_flash_api
...
Add missing EFM32 HAL flash init/deinit function calls
2018-01-26 10:35:35 -06:00
Cruz Monrreal
124fbf4c9b
Merge pull request #5918 from scamille/master
...
NXP LPC4088: Add missing SPI SSEL pin to Pinmap
2018-01-26 10:35:11 -06:00
Cruz Monrreal
6f9421baeb
Merge pull request #5920 from bcostm/use_rawserial_in_mbed_11_test
...
Fix issue with MBED_11 test (mbed2)
2018-01-26 10:34:50 -06:00
Cruz Monrreal
215a043bac
Merge pull request #5923 from yangkunming99/rtl8195am_restructure_target_files
...
rtl8195am - restructure target folder
2018-01-26 10:34:04 -06:00