Commit Graph

11401 Commits (e36c20ffda59a965b29d40037bb02026c7f43db9)

Author SHA1 Message Date
Jimmy Brisson c85f4362bd Add license header 2017-07-14 15:13:30 +01:00
Jimmy Brisson 009019e38c Restrict device_has 2017-07-14 15:13:30 +01:00
Jimmy Brisson 7973551b73 Revamp option parsing and add more checks 2017-07-14 15:13:30 +01:00
Jimmy Brisson 05b9b8ae57 Stylize and add function docs 2017-07-14 15:13:30 +01:00
Jimmy Brisson 31cb52dc88 Added simple linter for targets.json 2017-07-14 15:13:30 +01:00
jeromecoutant efcf50d9d4 Add the correct startup s file in TARGET_STM32F767 2017-07-14 15:13:29 +01:00
adustm af8c6bd6a2 Move definitions in aes_alt.c + Factorize code 2017-07-14 15:13:29 +01:00
adustm b7b9444f76 STM32L486RG/mbedtls: add aes hw acceleration 2017-07-14 15:13:29 +01:00
Kevin Gilbert 44506c1f41 Fix typo runnig_thread -> running_thread 2017-07-14 15:13:29 +01:00
Mo Chen 24e6a780d3 Put quotes around include files
This fixes a problem when the path to include files have spaces.
See https://github.com/ARMmbed/mbed-os-example-uvisor/issues/31 for an
example of this problem.

Signed-off-by: Mo Chen <mo.chen@arm.com>
2017-07-14 15:13:29 +01:00
Martin Kojtal 805b20b4d2 Cellular: not-supported error if MODEM_ON_BOARD not defined
If a test is empty, it leads to undef. Therefore if a test requires additional
details, it should print an error [NOT SUPPORTED].
2017-07-14 15:13:29 +01:00
adbridge c2b2044480 Added template file for PR commit message plus minor review changes 2017-07-14 15:13:29 +01:00
adbridge a472cba08f Remove remaining use of args.tag and replace with tag obtained from config file 2017-07-14 15:13:29 +01:00
adbridge 268990bb1e Update branching option to branch from another branch.
Previously if updating a branch in the ARMmbed version of an example
repo, the branch would be created initially from master. This update
allows the new branch to be created by any pre-existing branch.
This update also moves the branch / fork / tag configuration data to the
json config file. It thus simplifies the command line.
-b on its own now indicates use the branch information in the config
-f on its own now indicates use the fork information in the config
2017-07-14 15:13:29 +01:00
Hasnain Virk c19ebcb33b Customer port verification tests for cellular
Basic TCP/UDP tests for PPP based onboard cellular modems.
Tests basic public APIs defined in CellularBase.h
A customer port must pass this test set, hence verifying their
particular implementation.
2017-07-14 15:13:29 +01:00
Anna Bridge 8828635da4 Merge pull request #4689 from ARMmbed/release-candidate
Release candidate for mbed-os-5.5.2
2017-07-04 21:37:33 +01:00
Martin Kojtal 597a4a9ced IAR: remove stm32f413 from definitions
This definition requires IAR 7.80.2 and higher.
It will be readded once we all update to the latest IAR 7.80 patch release. For
future, please any new target should state what are the requirements on tools to
avoid this suprises.
2017-07-04 12:19:04 +01:00
adbridge 7b33104d11 Re-add #define previously removed 2017-07-03 12:24:22 +01:00
adustm 431218e9d1 Check HASH is not busy before save/resteore context 2017-07-03 12:13:36 +01:00
adustm acc3942f6f Add test of sha256_clone function 2017-07-03 12:13:04 +01:00
adustm 09a50efd19 Handle context swapping + rename macro ST_SHA256_BLOCK_SIZE
Handle 64 bytes accumulation
2017-07-03 12:12:36 +01:00
adustm 600742b136 Remove trailing whitespace 2017-07-03 12:12:06 +01:00
adustm a8ab0e4290 SHA256: get ready to return error codes 2017-07-03 12:11:41 +01:00
adustm 6d0903b6bb Replace 64 by MBEDTLS_SHA256_BLOCK_SIZE 2017-07-03 12:10:45 +01:00
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