Commit Graph

8539 Commits (61e40cd90be766f7a25c1b3dd4e7cc1c39c81088)

Author SHA1 Message Date
Laurent MEUNIER 661b6adb93 [STM32] spi_master_write - rely on HAL
ASYNCH SPI transfer support has been added based on STM HAL services.
To have both ASYNCH and SYNCH work together, we're also moving the
write API to STM HAL instead of direct registers access.
2016-10-13 14:18:21 +02:00
Laurent MEUNIER 0aeea4950c [STM32] Deploy SPI_ASYNCH to all family
the SPI_ASYNCH feature has been already activated for STM32F4.
This patchset makes it supported on all STM32 families by:
- moving spi_s structure at family level instead of board level
- using the F4 spi_api.c reference implementation and making it a common
stm_spi_api.c file which makes maintenance a lot easier.
- the only part that needs to be implemented for each family is the computation
of the clock frequency input to the spi peripheral which is not the same
accross families. So this is what remains in the spi_api.c of each family.

Because of the introduction of the common file, all the above modifications
needs to be done at once.
2016-10-13 14:18:21 +02:00
Martin Kojtal f8b682c943 lwip-interface: fix issue #2993
DEVICE_ are passed as command line -D, thus no inclusion is required.
``platform.h`` is C++ header file, should not be pulled in C files
2016-10-13 11:42:31 +01:00
bcostm f2ceed9e52 Fix wrong timer channel number of pwm PB_5 pin 2016-10-13 10:25:20 +02:00
Russ Butler 9f6b346c88 Properly set flags for default_lib = small
Use newlib nano for targets which have the key "default_lib" set to
"small". Also support the legacy key of "default_build".
2016-10-12 20:36:09 -05:00
Christopher Haster bac63e7533 callback - Fixed missing workaround for IAR issue with type information
Related to commit abba0c2
2016-10-12 18:08:37 -05:00
Sam Grove 1ba3499631 Merge pull request #3003 from c1728p9/fix_memory_map
Revert "Allow max-depth specification in memap"
2016-10-12 17:25:12 -05:00
Sam Grove 73e708d2f7 Merge pull request #2996 from jeromecoutant/PR_STM32_arduino
Add Arduino form factor for DISCO_F746NG and NUCLEO_F767ZI
2016-10-12 17:21:34 -05:00
Sam Grove a701339e05 Merge pull request #2986 from bulislaw/build_profiles
Accept profile name as well as file path for tools/make.py --profile
2016-10-12 17:18:06 -05:00
Sam Grove 217a8fba8e Merge pull request #2972 from betzw/betzw_i2c_wb
Make (synchronous) I2C work again
2016-10-12 17:16:10 -05:00
Sam Grove 35d6682d61 Merge pull request #2970 from andreaslarssonublox/ublox_enable_hw_entropy
Enabled TRNG functionality for UBLOX_EVK_ODIN_W2 target.
2016-10-12 17:15:55 -05:00
Sam Grove 348a155ae7 Merge pull request #2875 from AlessandroA/efm32gg
EFM32GG: Add support for uVisor
2016-10-12 17:14:46 -05:00
Sam Grove ffe05f706a Merge pull request #2866 from pradeep-gr/master
MBED OS 3 to 5 changes added for SPI
2016-10-12 17:13:54 -05:00
Sam Grove b4f3841cc5 Merge pull request #2861 from OpenNuvoton/nuvoton
[NuMaker] Add PFM-M453 and Migrate PFM-NUC472 Crypto
2016-10-12 17:08:43 -05:00
Sam Grove fefde9d1db Merge pull request #2832 from jeremybrodt/max326xx_updates
Updates to Maxim Integrated targets.
2016-10-12 17:08:24 -05:00
Sam Grove f9ee683fa7 Merge pull request #2611 from adustm/STM32_entropy
STM32 hw entropy
2016-10-12 17:06:51 -05:00
Russ Butler 7a50832550 Revert "Allow max-depth specification in memap"
This reverts commit 8f9f4eefed since
it broke memory map info for IAR, ARMCC and on windows, GCC_ARM.
2016-10-12 14:49:32 -05:00
jeromecoutant 366f04f60b NUCLEO_F303ZE: Enable all I2C instances 2016-10-12 16:52:26 +02:00
Jeremy Brodt b4e2339223 [MAX326xx] Reduced stack/heap size due to mbed test failures. 2016-10-12 09:07:03 -05:00
Jeremy Brodt 4858f3112d [MAXWSNENV] Updated BLE library and stack/heap size. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 98dd41988b [MAX32620HSP] Reduced system clock speed due to SPI issue. 2016-10-12 08:59:38 -05:00
Jeremy Brodt d535180784 [MAX326xx] Added support for FEATURE_BLE. Integrated MaximBLE library. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 7e99a75f1d [MAX32620HSP] Fixed deepsleep issue using IAR. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 5a34a2b91d [MAX326xx] Increased default stack and heap sizes. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 87d2b89750 [MAX32620HSP] Updated BLE libraries. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 24e4d83357 [MAX326xx] Fixed default handler implementations for ARM and IAR. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 240d721f0b [MAX326xx] Fixed SysTick_Handler name. 2016-10-12 08:59:38 -05:00
Kevin Gillespie 0611885832 [MAX32620HSP] Cleanup with formatting script. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 8e70018ec1 [MAX32620HSP] Fixed INITIAL_SP value. 2016-10-12 08:59:38 -05:00
pradeep-gr 324dbaf0a1 Low power timer fine tuned for smaller duration 2016-10-12 19:09:57 +05:30
jeromecoutant 2366c8687c Add Arduino form factor for DISCO_F746NG and NUCLEO_F767ZI 2016-10-12 15:33:40 +02:00
Laurent MEUNIER 22c50d32d2 cmsis to device changes 2016-10-12 14:54:43 +05:30
jeromecoutant e0ddd59fdd digital_loop tests update for STM32 2016-10-12 10:07:27 +02:00
Wolfgang Betz d258c14e1e [STM32F4]: I2C bugfix 'i2c_stop()' timeout
- Remove waiting for 'BTF' flag in 'i2c_stop()':
  When 'i2c_stop()' is called from 'i2c_read()' or 'i2c_write()' flag 'BTF'
  has already been cleared (indirectly) by the calling functions and therefore
  'i2c_stop()' would mistakenly always run into a timeout.
- Delay clock enabling until pins are configured:
  Enabling the I2C bus clock before configuring its pins might in rare
  cases lead to HW faults on the bus.
- Move initialization of 'handle->Instance' to function 'i2c_reset()':
  As 'i2c_reset()' uses '__HAL_I2C_GET_FLAG(handle, I2C_FLAG_BUSY)' field
  'handle->Instance' must have been initialized before doing so. Therefore,
  this operation has been anticipated by moving it from function
  'i2c_frequency()' to function 'i2c_reset()'.
2016-10-12 07:02:42 +02:00
Brian Daniels 39086722e8 Removing dependency on StringIO, only change return type of table export 2016-10-11 18:38:52 -05:00
Brian Daniels 0e4b841cb3 Removing need for memap to printed through toolchains 2016-10-11 18:24:01 -05:00
Brian Daniels 655c37715c Handling output of parallelized test building.
This makes use of the reports generated by the building of tests to
prevent output from interleaving when the build is parallelized. This
required some changes to memap to return a generated string from
the 'generate_output' function. I also had an option to stop the prints
from memap to prevent text from interleaving
2016-10-11 15:34:20 -05:00
Brian Daniels 14aff069b1 Modifying behavior of 'silent' option in toolchains
The 'silent' option has always been present in the toolchains API, however
it did not actually stop anything from being printed. Instead, it just
changed what was added to the build log. This make the 'silent' stop all
prints, but ensures that the output for the toolchain is still preserved
and accessible via the 'get_output' function.
2016-10-11 14:31:06 -05:00
Bartek Szatkowski 3af2c5ae14 Accept profile name as well as file path for tools/make.py --profile
--profile can be used with just a profile name eg. default, debug as
long as <name>.json file is in default profile directory.
2016-10-11 13:33:37 -05:00
Brian Daniels 87103abd56 Making building and linking tests fully parallel.
This uses similar code that is used withing the toolchains to parallelize
the linking process of all the tests accross all the available CPUs. It
also respects the `-j` parameter if you wish to limit the number of cores
used.
2016-10-11 13:24:50 -05:00
Sarah Marsh 246335af92 NRF52_DK support for IAR exporter 2016-10-11 18:25:07 +01:00
Bartek Szatkowski 3d09b196b7 DNS: Rework DNS query
Don't ask multiple DNS servers in case of successful connection, even if
the response is negative. Make sure the return value is correct.
2016-10-11 10:53:05 -05:00
ccli8 15dbd36492 [M453] Move files to match ARM mbed's restructure
1. Move M451Series.h to device.
2. Move StdDriver to device.
3. Move TOOLCHAIN_* to device.
4. Move cmsis*, startup_M451Series.c, and system_M451Series.c/h to device.
2016-10-11 13:49:25 +08:00
ccli8 7ba4d8f53c [M453] Add device_name into targets.json 2016-10-11 10:55:08 +08:00
ccli8 6683032999 [NUC472] Fix SD pinmaps are not extern'ed 2016-10-11 10:55:08 +08:00
ccli8 1f2f4e3bb3 [NUC472/M453] Move files to match ARM mbed's restructure
1. Move USBHALHost_M451.cpp and USBHALHost_NUC472.cpp.
2. Move TARGET_M451/mbed_lib.json.
3. Move TARGET_NUC472/crypto.
4. Move TARGET_NUC472/mbed_lib.json.
2016-10-11 10:55:08 +08:00
ccli8 c75d54c668 [NUC472] Fix pin definition error regarding SD, I2C, and SPI
1. Fix pin definition error regarding SD.
2. Fix pin definition error regarding I2C.
3. Fix pin definition error regarding SPI.
4. Add pinmap for SD.
2016-10-11 10:55:08 +08:00
cyliangtw 1c1257dcb1 EMAC buffer address word alignment 2016-10-11 10:55:08 +08:00
ccli8 c2b9089332 [NUC472] Fix buffer overflow in BSP SD driver 2016-10-11 10:55:08 +08:00
cyliangtw c629eba27a Fix warnings in aes_alt 2016-10-11 10:55:08 +08:00