Commit Graph

11290 Commits (b1c5ca682bf6ec9e2465b960a8ce43982b38fa2c)

Author SHA1 Message Date
Vincent Coubard b1c5ca682b rtos Thread: Remove private copy constructor and assignment operators in favor of the NonCopyable traits. 2017-07-03 11:46:57 +01:00
Vincent Coubard 45163dd8b4 rtos: Tag non value type as NonCopyable.
The types marked are: Mail, MemoryPool, Mutex, Queue, RtosTimer and Semaphore.
2017-07-03 11:46:57 +01:00
Vincent Coubard e1bb30d10a platform: Replace private copy constructor and copy assignement operator by a NonCopyable tag.
The class concerned by this change are: ATCmdParser, CallChain, FileBase and Stream.
2017-07-03 11:46:57 +01:00
Vincent Coubard 34810e2771 platform: Tag classes DirHandle, FileHandle, FileLike, FileSystemHandle, FileSystemLike, LocalFileHandle, LocalFileSystem and PlatformMutex as non copyable.
This avoid unwanted copy of these type which is a programming error.
2017-07-03 11:46:57 +01:00
Vincent Coubard 0e1dcd8bed platform: Add NonCopyable class.
The NonCopyable template class avoid autogeneration of copy assignement
and copy construction function for classes inheriting from it.
2017-07-03 11:46:56 +01:00
jeromecoutant 3783556f53 STM32F4 set HSE timeout value to 100ms 2017-07-03 11:46:56 +01:00
adustm 451eb33ec7 Check that the HASH is not busy before save and restore iHW registers 2017-07-03 11:46:56 +01:00
adustm 7e864de0cc handle context swap + change macro name 2017-07-03 11:46:55 +01:00
adustm 9a8f5a7ef3 replace 64 by define 2017-07-03 11:46:55 +01:00
adustm 73fe3455f8 Remove MBEDTLS_SHA1_C 2017-07-03 11:46:55 +01:00
adustm 1bea47d976 Remove tabs, fix doxygen comments 2017-07-03 11:46:54 +01:00
adustm 95beb43bda Rework SHA1 update for buffer <4 bytes management 2017-07-03 11:46:54 +01:00
adustm f4287fd7db Handle 64 bytes buffers 2017-07-03 11:46:54 +01:00
adustm 3d3affadd2 Move MBEDTLS_SHA1_C from mbedtls_device.h to targets.json 2017-07-03 11:46:53 +01:00
adustm 284b230cc6 Improve memory management 2017-07-03 11:46:53 +01:00
adustm 726c313d56 Remove unneeded function declarations + include file Move include platform from sha1_alt.h to sha1_alt.c 2017-07-03 11:46:53 +01:00
adustm 57996887da Better explanation of the use of mbedtls_sha1_context fields 2017-07-03 11:46:53 +01:00
adustm bc3bf9f3f4 use mbedtls_zeroize instead of memset(xxx,0,xxx) 2017-07-03 11:46:52 +01:00
adustm fbab24db6b NUCLEO_F429ZI/mbedtls: add SHA1 hw_acceleration 2017-07-03 11:46:52 +01:00
bcostm 74361df787 DISCO_L072CZ_LRWAN1: Remove unused code 2017-07-03 11:46:52 +01:00
bcostm 2327be65a2 DISCO_L072CZ_LRWAN1: Add usb in build_travis.py 2017-07-03 11:46:51 +01:00
bcostm 6f2acf9721 DISCO_L072CZ_LRWAN1: Update HSI clock config for USB 2017-07-03 11:46:51 +01:00
bcostm 196b975f93 DISCO_L072CZ_LRWAN1: Add USB device configuration files 2017-07-03 11:46:51 +01:00
Marc Moreno Berengue 15c9effaf7 Update port api driver to add missing ports
This patch updates port api driver to add missing
ports.

Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-07-03 11:46:51 +01:00
Marc Moreno Berengue 060fec4111 Update CMSDK_CM3DS.h
This patch updates CMSDK_CM3DS.h to remove the
DMA peripheral memory map and defines, as
that peripheral is not present in the system.
In addition, some define names where updated
concerning rtc. RTC_api was updated accordingly.
This patch also updates SMM_MPS2 to align defines and
comments.

Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-07-03 11:46:50 +01:00
Marc Moreno Berengue 0e323d16fb Add analogin driver for CM3DS MPS2 target
This patch adds analogin driver for
CM3DS MPS2 target.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2017-07-03 11:46:50 +01:00
Marc Moreno Berengue 98d1c496e8 Add I2C driver for CM3DS MPS2 target
This patch adds the I2C driver for CM3DS MPS2 target.

Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-07-03 11:46:50 +01:00
Marc Moreno Berengue 20b8f80e4e Implement pin_function and gpio_set
This patch implements pin_function and gpio_set
with some fixes in the PinNames.
The patch also updates the serial and spi
drivers to use the pin_function.

Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-07-03 11:46:49 +01:00
bcostm a7c23f12b7 NUCLEO_F767ZI: Add missing IAR definitions 2017-07-03 11:46:49 +01:00
Hasnain Virk 2e1fd1d2b4 Avoid lock collision b/w SerialBase & UARTSerial
Fixes issue #4537. SerialBase and UARTSerial happened to have same names
for the mutex locking that confused the system of holding a mutex in interrupt context.
UARTSerial has to change so as to provide empty implementations for lock() and unlock()
becuase it uses SerialBase from interrupt context only or from its own critical section,
so no extra locks required.
Private locks for UARTSerial itself are renamed to api_lock() and api_unlock().
2017-07-03 11:46:49 +01:00
Jimmy Brisson 59839e03c7 Fill out remainder of LazyDict dict compatibility 2017-07-03 11:46:48 +01:00
Jimmy Brisson 11d0cd0e7a Correct len and iter operators for LazyDict 2017-07-03 11:46:48 +01:00
Jimmy Brisson abbf61adb7 Delay relative_to and win_to_unix operations over features 2017-07-03 11:46:48 +01:00
Jimmy Brisson 62d6d95e0f Delay feature scan until it's rquired 2017-07-03 11:46:48 +01:00
Jimmy Brisson 8d78e7150e Improve speed of .mbedignore processing 2017-07-03 11:46:47 +01:00
arostm 4eefbdb274 Fix_Issue_4404: add correction in PinNames.h 2017-07-03 11:46:47 +01:00
mickeyln daba7c5703 Update system_stm32f0xx.c 2017-07-03 11:46:47 +01:00
mickeyln daa84f015e Update system_stm32f0xx.c 2017-07-03 11:46:46 +01:00
Andrew Leech 49f46086f8 Prevent modifying existing targets.
A warning will be printed if it is attempted.
2017-07-03 11:46:46 +01:00
Andrew Leech 5f529a6df7 Add basic unit tests for custom_targets.json handling 2017-07-03 11:46:46 +01:00
Jimmy Brisson 1e2b7bef45 Clear custom-targets uppon setting new taregts.json location 2017-07-03 11:46:46 +01:00
Andrew Leech e940d204d7 Handle situation when options.source_dir is None 2017-07-03 11:46:45 +01:00
Andrew Leech 4606027784 Add custom_targets.json file contents to targets
Avoid duplication of update_target_data() code
Keep "custom_targets.json" filename definition in Targets()
2017-07-03 11:46:45 +01:00
Jimmy Brisson f22dd38ad5 Find extra targets in all source folders 2017-07-03 11:46:45 +01:00
Andrew Leech 9c575cdd1f Recursively merge extra_targets into targets
Recursively merge any target configs in extra_targets.json rather than completely replacing keys at the top level
2017-07-03 11:46:44 +01:00
Andrew Leech 95c681c951 Add extra_targets.json support to build tools
If the file extra_targets.json exists in the working directory load it over the top of the built in targets.json for defining new and overriding built in mbed target definitions.
2017-07-03 11:46:44 +01:00
Amanda Butler ee44ebad57 Update link in CONTRIBUTING.md
Provide a more precise link to the docs.mbed.com page
2017-07-03 11:46:44 +01:00
arostm 077eac3e05 DISCO_F413ZH: Add include of LL timer file 2017-07-03 11:46:44 +01:00
arostm 90a68fb074 DISCO_F413ZH: Remove usb from build_travis.py 2017-07-03 11:46:43 +01:00
arostm a7b41df447 DISCO_F413ZH: Typo correction in build_travis.py 2017-07-03 11:46:43 +01:00