Commit Graph

11777 Commits (mbed-os-5.5)

Author SHA1 Message Date
adustm 8dc7851916 Align SHA256 with MD5 and SHA1 implementation
This will solve Size <4 issues
2017-07-03 12:10:15 +01:00
adustm 2300386b84 NUCLEO_F429ZI/mbedtls: add SHA256 hw_acceleration 2017-07-03 12:09:14 +01:00
adbridge 62463a3ffe Updated MBED versionning block for patch release 2017-07-03 11:47:08 +01:00
Yuguo Zou 9ef8909d3d Coding style fix 2017-07-03 11:47:08 +01:00
Yuguo Zou 878b4bfa9c Add FlashIAP support for REALTEK_RTL8195AM 2017-07-03 11:47:08 +01:00
Laurent MEUNIER 325ffbc530 STM32: STM32F413xH dac_s common definition
Fixing conflict as STM32F413xH target has been merged after the first
version of moving dac_s structure definition to common_ojects.h
2017-07-03 11:47:07 +01:00
Laurent MEUNIER 85b382b322 STM32: STM32L475xG dac_s common definition
Fixing conflict as STM32L475xG target has been merged after the first
version of moving dac_s structure definition to common_ojects.h.
2017-07-03 11:47:07 +01:00
Laurent MEUNIER 90f0c63cda STM32: analog_out: generalize code for multiple instance handling
Moving some code in common to be able to manage several ADC instances,
or several channels of an instance.

The change involves:
- moving dac_s structure definition to common_object.h
- create TARGET_STM/analogout_api.c and move fully common analog_out
functions in there
- rename analogout_api.c of each target family into analogout_device.c
to keep platform specific code
- update analogout_device.c to rely on obj->handle and obj->channel
- align analogout_init function as much as possible between families in
analogout_device.c files
2017-07-03 11:47:07 +01:00
Laurent MEUNIER 7eab814a71 STM32: analog_out: Enable Buffer and switch
ADC1 channel2 and ADC2 of few targets only have an output switch and no
buffer. This switch needs to be enabled, and also the buffer can be enabled
in order to reduce the output impedance on output, and to drive external
loads directly without having to add an external operational amplifier.
2017-07-03 11:47:06 +01:00
Laurent MEUNIER cea590963c STM32: analag_out: Use dynamic handle in object rather than static
This allows a proper handling of multiple instances. Also this commit
stores the channel in the HAL format so that it can be re-used more easily
and call to HAL are straightforward.
2017-07-03 11:47:06 +01:00
Martin Kojtal e911d9867c retarget: fix microlib for mbed 2
This is as it used to be, reverting the removal. uARM does not have any hook
that we could use for mbed sdk init and copy nvic, therefore _open is used that
should be sufficient, but not ideal.

For more information, visit https://github.com/ARMmbed/mbed-os/pull/2160/files#r76563844.
2017-07-03 11:47:06 +01:00
Laurent MEUNIER 9797c7c3d2 Correct comments in flash api for STM32 L0 targets
The initial comments were copied from L4 implementation but do not apply
to L0 targets where 1 sector is composed of a constant number of pages.
2017-07-03 11:47:06 +01:00
Laurent MEUNIER 4d6f717f3f Increase L0 ADC sample time
With default sampling time, the MBED2 and CI test shield tests would fail
because the stabilization slope of ADC is relatively slow.
ERROR (out:0.8000) - (in:0.7407) = (0.0593)
ERROR (out:0.9000) - (in:0.8354) = (0.0646)
ERROR (out:1.0000) - (in:0.9289) = (0.0711)

This is related to the 10kOhms resistors used to connect Ain to
Aout mounted on the CI shileds, and internal capacitance of L0 targets.
If connecting Ain and Aout with wires, bypassing the resistors, the test
is passed. So we're increasing the sampling time to let the automated
ci shiled tests PASS.

OK    (out:0.8000) - (in:0.7863) = (0.0137)
OK    (out:0.9000) - (in:0.8869) = (0.0131)
OK    (out:1.0000) - (in:0.9844) = (0.0156)
2017-07-03 11:47:05 +01:00
Martin Kojtal 50ea9358c2 STM32: fix us ticker set event timestamp
While we are handling new timestamp, disable ticker's interrupt.
2017-07-03 11:47:05 +01:00
iotvietmember cb3d625b23 Remove comment in sdk_config.h
Signed-off-by: iotvietmember <robotden@gmail.com>
2017-07-03 11:47:05 +01:00
iotvietmember b869b993cd Add support for VBLUno51 board [TARGET_VBLUNO51]
+ VBLUno51 board:
Nordic nRF51822
Bluetooth Low Energy
DAPLink interface
Arduino UNO pinout compatible
4 Power

+ Wiki: https://vngiotlab.github.io/vbluno/

+ Pass all test case in mbed test suite

Signed-off-by: iotvietmember <robotden@gmail.com>
2017-07-03 11:47:04 +01:00
Vincent Coubard e0280ebe31 rtos: Add missing Queue destructor. 2017-07-03 11:47:04 +01:00
Vincent Coubard dd4096d88f rtos: Add missing destructor for MemoryPool objects. 2017-07-03 11:47:04 +01:00
Mike Fiore 0440023a4a enable HSI after waking from stop mode so ADC functions properly 2017-07-03 11:47:04 +01:00
Christopher Haster 7d8c2e37b3 events: Adopt osEventFlags from RTX 5
This provides the correct binary semaphore behaviour that was expected
by the equeue layer, removes concerns around semaphore overflow, and
reduces the number of spurious wakeups which may save a bit of power.

This also fixes some issues we were seeing around the RTX 5 changes
to semaphore behaviour.
2017-07-03 11:47:03 +01:00
Christopher Haster 17601c0e17 fatfs: Removed unused fat_filesystem_set_errno function
At some point this was replaced by fat_error_remap
2017-07-03 11:47:03 +01:00
jeromecoutant 37db436c91 STM32F4: json clock source configuration
- default value is the same as before patch
- system_stm32f4xx.c file is copied to family level with all other ST cube files
- specific clock configuration is now in a new file: system_clock.c
- nvic_addr.h file is now in TARGET_STM level, and can be used everywhere
2017-07-03 11:47:03 +01:00
adustm fc6d7aa0d0 F7 ST CUBE V1.7.0 2017-07-03 11:47:02 +01:00
Bartek Szatkowski 1b7a15501c RTX: Fixed RTXv5 mutex owner list handling.
The prev-pointer of the running threads mutex list was not set when
multiple mutexes are acquired at a time. This leads to a corrupted list
if the mutexes are not freed in reversed order.

Original commit for CMSIS_5:
commit 729f6ab08540342b7de7612fac103539d5b2f168
Author: Jonatan Antoni <jonatan.antoni@arm.com>
Date:   Wed Apr 19 15:38:43 2017 +0200
2017-07-03 11:47:02 +01:00
Andrzej Puzdrowski e161088dc5 remove hardcode uart pins definition for nRF52 SoCs
Each boards define its own pins.
2017-07-03 11:47:01 +01:00
jeromecoutant 4952451dff STM32 : targets.json file simplification
"FAMILY_STM32" has been creeated with all common features.
All STM32 devices can now inherit from it.
This will simplify readability and maintainability.
2017-07-03 11:47:01 +01:00
bcostm edf99af59b DISCO_L475VG_IOT01A: Add missing nvic_addr.h file 2017-07-03 11:47:01 +01:00
bcostm a2a7b9451b DISCO_L475VG_IOT01A: Update system init for cmsis5 2017-07-03 11:47:00 +01:00
bcostm 07df260e96 DISCO_L475VG_IOT01A: Update toolchain files for cmsis5 2017-07-03 11:47:00 +01:00
jeromecoutant fe162115cd STM32 : mbed_overrides.c is common for all families 2017-07-03 11:47:00 +01:00
Christopher Haster 747fdec04e bd: Add asserts on initialization in HeapBlockDevice 2017-07-03 11:47:00 +01:00
Christopher Haster 556f4161a5 bd: Fix missing init in MBRBlockDevice 2017-07-03 11:46:59 +01:00
Martin Kojtal 306fd2947c cmain IAR: add mbed main
This fixes #4602 issue, mbed_main should be invoked right before the real main
2017-07-03 11:46:59 +01:00
Jimmy Brisson 16be3ff167 Fix style issues in IAR exporter 2017-07-03 11:46:59 +01:00
Vincent Coubard ebb1689ad0 drivers: Mark non identity types as non copyable with the NonCopyable traits.
Classes changed: CAN, Ethernet, FlashIAP, I2C, InterruptIn, LowPowerTicker, LowPowerTimeout, LowPowerTimer, RawSerial, Serial, SerialBase, SPI, SPISlave, Ticker, Timeout, Timer, TimerEvent and UARTSerial.
2017-07-03 11:46:58 +01:00
Vincent Coubard a7f958c0ff drivers: Replace private copy constructor and Copy assignement operator by NonCopyable traits.
Modified classes are: BusIn, BusOut, BusInOut and InterruptManager.
2017-07-03 11:46:58 +01:00
Vincent Coubard dfafc90fcd event: Make the event queue non copyable. 2017-07-03 11:46:58 +01:00
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