Commit Graph

8447 Commits (dbafb03dd2eea628dc41b92b39d6385231bc697d)

Author SHA1 Message Date
Andres AG dbafb03dd2 Update to mbed TLS release candidate 2016-10-14 16:15:45 -05:00
adustm 899acb1627 ADD NEW TARGET : NUCLEO_F756ZG, based on existing NUCLEO_F746ZG 2016-10-14 16:15:44 -05:00
adustm 025a041462 ADD NEW TARGET : NUCLEO_L486RG, based on existing NUCLEO_L476RG 2016-10-14 16:15:43 -05:00
adustm 283a82f23e ADD NEW TARGET : NUCLEO_F439ZI, based on existing NUCLEO_F429ZI 2016-10-14 16:15:41 -05:00
Brian Daniels 1b61b2cc0c Remove shared spi_s struct from XDOT_L151CC 2016-10-14 16:15:39 -05:00
Christopher Haster d111b09eb2 callback - Fixed missing workaround for IAR issue with type information
Related to commit abba0c2
2016-10-14 16:15:38 -05:00
jeromecoutant a5cbb71b98 NUCLEO_F303ZE: Enable all I2C instances 2016-10-14 16:15:37 -05:00
Martin Kojtal 3a33de6577 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-14 16:15:36 -05:00
Russ Butler 0e292ed57b 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-14 16:15:35 -05:00
Sarah Marsh fa4df0998c NRF52_DK support for IAR exporter 2016-10-14 16:15:34 -05:00
Bartek Szatkowski ac0caaba9a 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-14 16:15:33 -05:00
Laurent MEUNIER 1807983a73 Update objects definition
STM32F303ZE was introduced in parallel to the changes which consist in
having family wide definitions like device.h file and a common objects
definition.

This target is updated accordingly now to benefit of SPI definitions.
2016-10-14 16:15:32 -05:00
Laurent MEUNIER 37f84ca840 Clean-up style issues
Fix indentation issues, remove useless comments, correct if/else format
2016-10-14 16:15:31 -05:00
Laurent MEUNIER 6b3d9b2427 SPI Peripheral pin - allow SPI3 to be used
Let's swap default PA_4 pin mapping to SPI_3 otherwise SPI3 cannot be used
2016-10-14 16:15:30 -05:00
Laurent MEUNIER 5376654581 Enable SPI_ASYNCH on STM32 boards
Now that SPI_ASYNCH is supported on all STM32 based boards,
let's activate the feature.

Using a default SPI QUEUE of size 2 - this can be later modified if this
prives to be to low. (or too high)
2016-10-14 16:15:29 -05:00
Laurent MEUNIER 0dcd5083f3 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-14 16:15:28 -05:00
Laurent MEUNIER 0e5d0bda91 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-14 16:15:27 -05:00
Mahadevan Mahesh 504b2ac6b6 Update tests to add support for FRDM KL43Z and FRDM KL82Z
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-14 16:15:26 -05:00
Mahadevan Mahesh eac9244eab Add support for KL82Z FRDM board
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-14 16:15:25 -05:00
Russ Butler 150caecf30 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-14 16:15:23 -05:00
jeromecoutant ac93f9e41f Add Arduino form factor for DISCO_F746NG and NUCLEO_F767ZI 2016-10-14 16:15:22 -05:00
Bartek Szatkowski b2671a367c 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-14 16:15:21 -05:00
Wolfgang Betz 857786e303 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-14 16:15:20 -05:00
andreas.larsson e965c34e66 Fixed wrong stack pointer 2016-10-14 16:15:19 -05:00
andreas.larsson eb2b7f05f2 Enabled TRNG functionality for UBLOX_EVK_ODIN_W2 target. 2016-10-14 16:15:18 -05:00
Alessandro Angelino d190ec0b7d EFM32: Add support for uVisor 2016-10-14 16:15:16 -05:00
Alessandro Angelino ab1ed711ae EFM32: Use SECURE_ACCESS to access the ROM table
To allow enabling of uVisor on EFM32, the ROM table must be accessed
through the CMSIS-provided SECURE_ACCESS macro.
2016-10-14 16:15:15 -05:00
Alessandro Angelino 7711f0a362 EFM32: Make NVIC functions virtualizable
With CMSIS 5, the NVIC functions are virtualizable. Rename the EFM32
NVIC functions to support being virtualized.
2016-10-14 16:15:14 -05:00
pradeep-gr acd91ec098 Low power timer fine tuned for smaller duration 2016-10-14 16:15:13 -05:00
Laurent MEUNIER 0b2725e7cf cmsis to device changes 2016-10-14 16:15:12 -05:00
ccli8 84dbcc540d 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-14 16:15:10 -05:00
ccli8 5bb0d4030f Add device_name into targets.json 2016-10-14 16:15:09 -05:00
ccli8 928bdc4ae2 Fix SD pinmaps are not extern'ed 2016-10-14 16:15:08 -05:00
ccli8 e06a7b2753 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-14 16:15:06 -05:00
ccli8 03d00df0ca 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-14 16:15:05 -05:00
cyliangtw 0b60434327 EMAC buffer address word alignment 2016-10-14 16:15:04 -05:00
ccli8 20ad95dea7 Fix buffer overflow in BSP SD driver 2016-10-14 16:15:03 -05:00
cyliangtw c066b6ce75 Fix warnings in aes_alt 2016-10-14 16:15:02 -05:00
cyliangtw 5ed75ce940 support mesh in IAR tool chain 2016-10-14 16:15:01 -05:00
cyliangtw 6685b4a8ce support mesh in GCC tool chain 2016-10-14 16:15:00 -05:00
cyliangtw faae13e650 remove warnings 2016-10-14 16:14:59 -05:00
ccli8 2c675f94ab Fix warnings generated by armcc 2016-10-14 16:14:58 -05:00
ccli8 c9f031b638 Fix warnings generated by armcc 2016-10-14 16:14:57 -05:00
ccli8 c273b44d17 Refine comment for two-region model 2016-10-14 16:14:56 -05:00
ccli8 e54aad9183 Disable GPIO IRQ debounce by default
Some application requires GPIO IRQ to be low latency. To complement it, open up GPIO IRQ debounce configuration through mbed_lib.json.
2016-10-14 16:14:55 -05:00
ccli8 54db3f4dec Refine us_ticker.c code 2016-10-14 16:14:54 -05:00
cyliangtw e478d243f2 move aes ZI data into external SRAM for mbed client example 2016-10-14 16:14:53 -05:00
ccli8 b35adc6569 Remove fix of lp_ticker wrap-around
The original fix cannot handle both wrap-around and scheduled alarm behind now well.
Leave wrap-around as known issue.
2016-10-14 16:14:52 -05:00
ccli8 5ff2d6705f Fix us_ticker/lp_ticker alarm error
Error occurs as newly scheduled alarm is behind now due to signed/unsigned comparison pitfall:
-1 < 1u ==> 0 or 1
2016-10-14 16:14:51 -05:00
ccli8 adac6c639a Fix greentea lp_ticker failed tests 2016-10-14 16:14:50 -05:00