Commit Graph

14046 Commits (37cf802a7adbb123218c5d74db19f77a334a3705)

Author SHA1 Message Date
Christopher Haster 88aad81345 bd: Adopted the get_erase_value function in the util block devices 2018-01-29 15:33:02 -06:00
Christopher Haster 7707c8b8b8 bd: Added get_erase_value function to the block device API
Default implementation returns -1 and is backwards compatible
2018-01-29 15:31:07 -06:00
amq 301438debb VS Code exporter: do not overwrite existing (launch|settings|tasks).json 2018-01-29 19:18:06 +00:00
bcostm b6efdd58c8 STM32 serial: improve index assignment in serial_init 2018-01-29 17:23:21 +01:00
bcostm e8454ff522 STM32 serial: improve irq index management for L0 devices 2018-01-29 17:23:21 +01:00
bcostm 78a5516726 STM32 serial: improve irq index management for F0 devices 2018-01-29 17:23:21 +01:00
bcostm 84269c7ca2 STM32 serial: improve irq index management for L4 devices 2018-01-29 17:23:21 +01:00
bcostm 665d4a8003 STM32 serial: improve irq index management for L1 devices 2018-01-29 17:23:21 +01:00
bcostm 689e15cf29 STM32 serial: improve irq index management for F7 devices 2018-01-29 17:23:21 +01:00
bcostm eeb4d2cd1d STM32 serial: improve irq index management for F3 devices 2018-01-29 17:23:21 +01:00
bcostm 1fa0557dbf STM32 serial: improve irq index management for F2 devices 2018-01-29 17:23:21 +01:00
bcostm 6974da239c STM32 serial: improve irq index management for F1 devices 2018-01-29 17:23:20 +01:00
bcostm 2305db6c98 STM32 serial: use uart_name in serial_irq_set function for F4 2018-01-29 17:23:20 +01:00
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 b5ac071b66 Add space for real stdin/out FileHandles
Index the FileHandle array from 0 - now if filehandle[0..2] is
NULL, it uses the built-in serial for stdin/stdout/stderr,
else it will use a FileHandle.

No mechanism to actually put a FileHandle in that position yet.
2018-01-29 15:29:02 +02:00
Kevin Bracey f391d8a0dc Add POSIX file functions
Fill in a gap by providing the POSIX file functions corresponding
to the FileHandle API, so FileHandles can be used from C without
going through the C library stdio layer.

This aligns with the fact we already provide POSIX directory
functions.

Fix EOF handling for ARM C Library _sys_read.
2018-01-29 15:29:02 +02: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