Commit Graph

9168 Commits (fc1f4391614a88f10f800fd2644e74ed94530f1c)

Author SHA1 Message Date
Steven Cooreman 220363b099 This one slipped through 2016-10-24 18:30:03 +02:00
Alessandro Angelino eb86d12aee EFM32: Add support for uVisor 2016-10-24 18:29:51 +02:00
Alessandro Angelino 371d652a04 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-24 18:29:37 +02:00
Steven Cooreman 0b6ed71626 [EFM32] Move clock configuration to target settings
Moving the per-board clock configuration (which oscillators are available on the board, their frequencies, and which ones to use) as config options to the target database. This way, they're more easily overridable when third parties start creating boards with EFM32 MCUs
2016-10-24 18:29:25 +02:00
Steven Cooreman 758d160384 [EFM32] Collapse NVIC relocation handling
Gecko SDK 5.0.0 provides a convenient define for the amount of vectors wired on the chip, so we can use that to collapse the cmsis_nvic.h header
2016-10-24 18:29:00 +02:00
Steven Cooreman 7c0dd13bc6 [Silicon Labs][CMSIS] Patch CMSIS v4.2+ macros into mbed
The current version of cmsis shipping with mbed does not provide the __IOM and friends macros that became standard with CMSIS 4.2+. Patching these into CMSIS to allow vendors to continue updating their support libraries, awaiting a full CMSIS update in mbed (which is past due now).
2016-10-24 18:28:44 +02:00
Martin Kojtal 4fa5a80c84 Merge pull request #3084 from nvlsianpu/fix_gpioe_uninit
[nrf5] fix in Digital I/O : a gpioe pin was uninitialized badly
2016-10-24 18:27:28 +02:00
Martin Kojtal a0ca7eba07 Merge pull request #3092 from bridadan/parallelize-iar-build-system
[tools + tests] Adding parallelized build option for iar and uvision exporters
2016-10-24 18:26:07 +02:00
Steven Cooreman 3c450f1b37 [EFM32] Update emlib to version 5.0.0 in preparation for new targets
* Updated cmsis headers to match emlib 5.0.0
* Updated GPIO handling to match new header guards in use
* Updated linker scripts to match emlib 5.0.0
2016-10-24 18:26:02 +02:00
Steven Cooreman c60dacfccf [EFM32] Fix typo to targets.json 2016-10-24 18:25:34 +02:00
Steven Cooreman bb03e8c9e4 [EFM32] More condensation 2016-10-24 18:25:21 +02:00
Steven Cooreman 6315147faf [EFM32] Use serial configuration from platform
mbed added configuration options for default serial baud rate and stdio baud rate, so we can get rid of the workaround in the HAL
2016-10-24 18:25:11 +02:00
Steven Cooreman 1f3003fb22 [EFM32] Small fixes
* Use mbed_error
* Include cmsis headers by default when grabbing device.h
* Get rid of enum to uint casting in pinmap
2016-10-24 18:24:59 +02:00
Steven Cooreman 4df6986100 [EFM32] Use targets.json to improve directory structure
Now that we have targets.json, we get target inheritance and can use it to clean up the EFM32 folder structure.
* In the top-level EFM32 folder, there are now folders per MCU family (Giant, Leopard, ...)
* Those family folders contain the CMSIS headers in the 'device' subfolder, as well as global family headers (i.e. mapping of pins to peripherals)
* Inside of the family folder, there is a per-target folder containing target settings. In the future, we'll want to get rid of those by using the config system provided by targets.json
2016-10-24 18:24:49 +02:00
Steven Cooreman 6574f4d0a4 [EFM32] Clean up per-target Modules.h
Removed deprecated defines MODULES_SIZE_* and moved the setting for the SPI asynch transfer queue size to targets.json, where it apparently belongs
2016-10-24 18:24:33 +02:00
Steven Cooreman b766c48744 [EFM32] Condense common header files
First wave of squashing header files in order to get to a more sensible folder tree.
* Moved header files with 100% similarity to common folder
* Created a CommonPinNames.h header containing the base pin names P[A-F][0-15] and NC
2016-10-24 18:23:51 +02:00
Martin Kojtal 9cd14e29a7 Merge pull request #3110 from sam-taylor-arm/patch-1
Update README.md for 5.2
2016-10-24 16:09:27 +02:00
Vincent Coubard 501a00b1ac Add define for FPU_EXCEPTION_MASK 2016-10-24 14:15:34 +01:00
Kevin Bracey e6b2d21d1d Allow build without SSL
NS_USE_EXTERNAL_MBED_TLS now controls whether we attempt to include
mbedTLS header files at all, and after including them, we check whether
SSL/TLS is enabled. If not, we provide non-secure operation only.
2016-10-24 10:45:10 +01:00
Kevin Bracey ac8ddafffd Restructure connection and security
Make connection handler deal with all addressing, and hide the internals
of security handler.

Will allow security handler code to be stubbed out if mbed TLS is not
available.
2016-10-24 10:45:10 +01:00
Tero Heinonen 9dfc6f970c Support for setting source address to socket (#40)
When receiving data, destination (own) address is stored and given to
socket when sending reply to make sure respone comes always from same
address where request was sent. This commit supports only real socket to
real socket messages, not virtual socket, or DTLS handshake messages.
2016-10-24 11:58:53 +03:00
Seppo Takalo 26cdd3904f version v1.2.0 2016-10-24 10:44:35 +03:00
Sam Taylor fd9e9980ba Update README.md
Changed revision number and documentation links for the 5.2 release
2016-10-21 19:09:41 +01:00
Christopher Haster 2fefc05f08 events - Removed unused variable warning in ndebug builds 2016-10-21 12:51:55 -05:00
Vincent Coubard bd1ad99452 Fix sleep function for NRF52.
An active IRQ from the FPU can prevent the micro to go to sleep, even if this
IRQ is not enabled and not implemented. As a workaround, the FPU IRQ is cleared
before enterring sleep.
2016-10-21 14:47:44 +01:00
Kevin Bracey c78a2b5c8f Mix input to randLIB_add_seed calls
Don't just xor in the 64-bit number given, splitmix64 it across the entire
state. Also, make sure we don't accidentally set the state to all-zero.

RANDLIB_ASSUME_GOOD_SEED dropped - we now assume splitmix64 will be
present for the seed additions.

(Note that add_seed will be somewhat slow on platforms like MSP430 with
slow multipliers - don't call it too much.)
2016-10-21 12:37:37 +01:00
cyliangtw 85c45a5174 [NUC472] Fix SetBaudRate 5% inaccuracy issue 2016-10-21 14:01:17 +08:00
Jimmy Brisson 800792a42e Remove pycurl dependency 2016-10-20 16:24:47 -05:00
Brian Daniels d192491191 Making IAR exporter build test parallelized 2016-10-20 16:11:03 -05:00
Russ Butler d1a71eb9fc Merge pull request #3088 from andresag01/mbedtls-preoprocessor-checks
Add checks for NULL_ENTROPY and SSL_TLS in mbed OS
2016-10-20 15:51:24 -04:00
Russ Butler a6e199ac75 Merge pull request #3087 from theotherjimmy/update-packs
Update pack-derived files, and add safely test to uVision exporter
2016-10-20 15:30:05 -04:00
Bruno Monteiro Pires 0e8ba855a0 [SDFileSystem] Enable / Disable serial debug.
+ Added ``void debug(bool dbg)`` method to allow enabling/disabling
  serial debug at runtime.
+ Replaced calls to ``debug`` with ``debug_if`` to prevent messges
  from being thrown via serial when debug is disabled.

Signed-off-by: Bruno Monteiro Pires <brunomonteiropires@gmail.com>
2016-10-20 14:20:32 -02:00
Andres AG 509a72ca81 Add checks for NULL_ENTROPY and SSL_TLS in mbed OS 2016-10-20 17:07:32 +01:00
Jimmy Brisson 7b15984483 Update pack-derived files, and add safely test 2016-10-20 09:37:02 -05:00
jeromecoutant eb812a1887 Add LOWPOWERTIMER capability for NUCLEO_F303ZE 2016-10-20 15:02:06 +02:00
Mahadevan Mahesh ea2f0df821 Kinetis HAL: Remove clock initialization code from serial and ticker HAL drivers
after updates to the mbed startup code

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-20 07:59:41 -05:00
Andrzej Puzdrowski 93c67fbd73 nrf5 fix - gpioe pin was uninitialzied for new mode, should been uninitailzed for mode. 2016-10-20 14:10:32 +02:00
Martin Kojtal 9fce16dddf Merge pull request #3061 from theotherjimmy/makefile-lib-fix
Exporters: Use correct names for library files in makefile exporter
2016-10-20 11:02:24 +01:00
Martin Kojtal 5b67832959 Merge pull request #3054 from andreaslarssonublox/ublox_fix_odin_mbedtls_config
Moved mbedtls config for u-blox ODIN-W2 to macros in target.json
2016-10-20 10:59:05 +01:00
cyliangtw ae12346b8e [M453] Support CAN 2016-10-20 15:12:36 +08:00
cyliangtw 6e64d730b5 support NUC472 CAN 2016-10-20 15:12:35 +08:00
ccli8 4ec07510b3 [NUC472] Fix PWM1 clock source setting error 2016-10-20 15:12:35 +08:00
ccli8 005f032cae [NUC472] Rename SD_0/SD_1 SD_0_0/SD_0_1 to match real SD H/W 2016-10-20 15:12:31 +08:00
Sam Grove ff2a7db3f2 Merge pull request #3067 from theotherjimmy/checkin-pack-index
Arm-Pack-Manager - Checkin pack index
2016-10-19 16:49:59 -05:00
Christopher Haster cce82b13ac nsapi - Fixed unaligned writes from <word-sized scanf calls 2016-10-19 16:49:35 -05:00
Colin Hogben b516503fcb lwip: Expose principal socket limits as configuration parameters.
Allow the limits on numbers of sockets to be changed via the
configuration system.  The help texts show the RAM penalty from
increasing each value.
2016-10-19 21:37:52 +01:00
Christopher Haster 281a0e2fe1 nsapi - Added rudimentary ip parsing tests 2016-10-19 15:28:32 -05:00
Christopher Haster bf83cb28cd nsapi - Fixed leftover bytes from suffix during ipv6 parsing
Thanks to @EduardPon for hunting this down
2016-10-19 15:28:32 -05:00
Jimmy Brisson 1a4dabd65d Account for different linker flags across the compilers 2016-10-19 14:21:11 -05:00
Jimmy Brisson f812deed24 Remove dependency on XDG home spec 2016-10-19 12:07:37 -05:00