Commit Graph

11317 Commits (e911d9867cf94ec8135e76fef70dc1c8948dcd6c)

Author SHA1 Message Date
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
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