Commit Graph

13670 Commits (feature-cpuid)

Author SHA1 Message Date
Cruz Monrreal 07afcf25c1
Merge pull request #5557 from MikeDK/hal_cpu_uid
HAL API for CPU UID
2018-01-29 10:12:40 -06:00
Michael Kaplan cbfae38ba0 fixed missing include in CriticalSectionLock.h (macro MBED_DEPRECATED_SINCE not defined) 2018-01-16 15:29:37 +01:00
Michael Kaplan a5e98686fc changed warnings in device_uid_api.h to be thrown also when size or str_size_max are zero 2018-01-16 15:12:23 +01:00
Michael Kaplan 741d229617 DeviceUid: changed uid vendor string in STM targets to a much smaller form 2018-01-16 15:12:23 +01:00
Michael Kaplan 0a907cd387 CpuUid: renamed all references in code to device uid 2018-01-16 15:11:31 +01:00
Michael Kaplan 3432e6fc8c CpuUid: renamed files to device uid naming scheme 2018-01-16 15:08:10 +01:00
Michael Kaplan 66ec6731bc CpuUid: fixed build error in target NRF51822 2018-01-16 15:08:10 +01:00
Michael Kaplan 4679598d7d CpuUid: build error for FAMILY_STM32 derived targets
some targets derived from FAMILY_STM32 define a "macros" part in their target definition instead of "macros_add", so the macro definition in FAMILY_STM32 gets overwritten.
Changed to "macros_add" for these devices.
2018-01-16 15:07:07 +01:00
Michael Kaplan 44bf8228a1 CpuUid: removed STL includes, removed desctructor definition, as default destructor will be enough, and added critical sections to code filling buffers 2018-01-16 15:06:07 +01:00
Michael Kaplan f7ed4b9f90 CpuUid: complete refactoring to meet review requirements
Hopefully all review items were addressed.
2018-01-16 15:06:07 +01:00
Michael Kaplan 649ce41436 CpuUid: moved includes of string and vector
The problem appeared in the travis-ci build when building the SAMR21G18A target. It seems this target lacks support of STL somehow.
If DEVICE_CPUUID is not defined, the string and vector headers would still be included - so on "buggy stl" targets, this would lead to build error
2018-01-16 15:05:12 +01:00
Michael Kaplan c3fce7b959 CpuUid: fixed missing include for MBED_ASSERT() 2018-01-16 15:05:12 +01:00
Michael Kaplan 229601571d CpuUid: fixed coding style 2018-01-16 15:05:12 +01:00
Michael Kaplan 6bdc29395d CpuUid: buffer size assertion added
Added note in hal that a value higher than 0 is expected from the target implementation for the cpu_uid_get_length() function.

Added MBED_ASSERT for checking cpu_uid_get_length() return value in the driver.
2018-01-16 15:05:12 +01:00
Michael Kaplan 3406ff262f CpuUid: to save memory, overloaded type cast std::string operator uses minimal implementation instead of snprintf 2018-01-16 15:05:12 +01:00
Michael Kaplan eb9910c509 Added CPU UID ability to STM32, EFM32 and NRF5x targets 2018-01-16 15:05:12 +01:00
Michael Kaplan a306d24657 Added CPU UID target implementation for NRF5x devices 2018-01-16 15:01:17 +01:00
Michael Kaplan 5a5420cf20 Added CPU UID target implementation for EFM32 devices 2018-01-16 15:01:17 +01:00
Michael Kaplan 8a12f7184d Added CPU UID target implementation for STM32 devices 2018-01-16 15:01:17 +01:00
Michael Kaplan 31d6a28a73 Added driver class using the CPU UID HAL API 2018-01-16 15:01:17 +01:00
Michael Kaplan 2d658a2db1 Added HAL API for retrieving the CPU UID 2018-01-16 15:01:17 +01:00
Martin Kojtal 7be79f93fe
Merge pull request #5727 from dschuler/nrf52pf
Add presentation format descriptor support for nRF5x
2018-01-15 15:43:21 +00:00
Martin Kojtal 280d491ff2
Merge pull request #5456 from TeroJaasko/fix_cpp_alloc_wrappers
platform: make C++ allocation wrappers log the correct caller address
2018-01-15 15:29:54 +00:00
Martin Kojtal 663a6d84e3
Merge pull request #5623 from SeppoTakalo/clarify_socket_docs
Clarify TCPSocket::recv() and UDPSocket::recvfrom() documentation.
2018-01-15 15:29:28 +00:00
Martin Kojtal 41be3727fc
Merge pull request #5731 from terhei/master
mesh-api documentation removal
2018-01-15 15:26:55 +00:00
Martin Kojtal 670077624d
Merge pull request #5749 from jeromecoutant/PR_LPT_LPTIM
STM32 LOWPOWERTIMER : introduce LPTIM feature
2018-01-15 15:25:54 +00:00
Martin Kojtal 940614c4bc
Merge pull request #5760 from bulislaw/rtc_isr_safe_doc
Add notes about ISR safety to RTOS doxygen
2018-01-15 15:24:51 +00:00
Martin Kojtal 2c6403e67f
Merge pull request #5787 from bcostm/dev_flash_f2
STM32: Add support of Flash API for STM32F2 devices
2018-01-15 15:24:13 +00:00
Martin Kojtal 2d83463f9c
Merge pull request #5813 from TomoYamanaka/master
Revise the structure in RZ_A1 related directory
2018-01-15 15:23:52 +00:00
Martin Kojtal debca1f87c
Merge pull request #5824 from jeromecoutant/DEV_DISCO_F407
DISCO_F407VG : alignment with other STM32
2018-01-15 15:22:52 +00:00
Martin Kojtal 8c78649078
Merge pull request #5829 from deepikabhavnani/fat_issue_5780_3
Fix: Sector/Size overflow from uint32_t
2018-01-15 15:22:11 +00:00
Daniel Schuler 271b09cda6 Add presentation format descriptor support for NRF52 2018-01-13 15:49:40 -08:00
deepikabhavnani c86d757267 Fix: Sector/Size overflow from uint32_t
FATFilesystem declares sector count and size as uint32_t and block
device class arguments are addr and size which is uint64_t
While passing arguments to program/read/write API's of block device,
multiplication of uint32_t*uint32_t was not typecasted properly to
uint64_t which resulted in MSB truncation.

Eg. If block 0x800000 is accessed with block size 0x200, addr to be
passed (0x800000*0x200)0x100000000, but actual address passed was 0x0
which resulted in over-writting the root directory, and hence corrupted
filesystem
2018-01-12 11:12:34 -06:00
Cruz Monrreal b59005154b
Merge pull request #5808 from SenRamakri/sen_ESP8266TestConfig
ESP8266 Test Config and fixes for tests tcp_echo/tcp_hello_world
2018-01-12 10:08:24 -06:00
Cruz Monrreal 45d7f505a8
Merge pull request #5831 from marcuschangarm/test-hal-flash-fix
Increase clock tolerance in Flash HAL test
2018-01-12 10:05:01 -06:00
Seppo Takalo 6bf0611748 Clarify TCPSocket::recv() and UDPSocket::recvfrom() documentation. 2018-01-12 12:03:56 +02:00
TomoYamanaka 3fddcc18da Add "RZ_A1XX" label for commonizing in targets.json
I added the "RZ_A1XX" label for commonizing the setting in targets.json, and inherited in both RZ_A1H and VK_RZ_A1H.
2018-01-12 17:35:53 +09:00
Martin Kojtal a5403fd495
Merge pull request #5802 from mprse/rtc_time_conv_timeout_fix
RTC time conversion test - reduce test execution time.
2018-01-12 08:01:53 +00:00
TomoYamanaka b92f75ad3c Modify the lack of copyright to header files
I modified the lack of copyright in the below header files that I added for commonizing the RZ_A1 related files.
- targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/mbed_drv_cfg.h
- targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_VK_RZ_A1H/mbed_drv_cfg.h
2018-01-12 14:18:54 +09:00
Marcus Chang d60bed2da9 Increase clock tolerance in Flash HAL test
The current 0.1% clock tolerance is too small for certain platforms
which natural variance is larger than this. This commit increases the
tolerance to 0.5% instead.

Sample output from time_cpu_cycles called repeatedly in init,
before running any flash tests:

[1515706585.63][CONN][RXD] diff: 49316
[1515706585.69][CONN][RXD] diff: 49256
[1515706585.75][CONN][RXD] diff: 49286
[1515706585.81][CONN][RXD] diff: 49256
[1515706585.87][CONN][RXD] diff: 49225
[1515706585.94][CONN][RXD] diff: 49286
[1515706585.99][CONN][RXD] diff: 49317
[1515706586.06][CONN][RXD] diff: 49255
[1515706586.12][CONN][RXD] diff: 49286
[1515706586.18][CONN][RXD] diff: 49285
[1515706586.24][CONN][RXD] diff: 49286
[1515706586.31][CONN][RXD] diff: 49347
[1515706586.36][CONN][RXD] diff: 49347
[1515706586.43][CONN][RXD] diff: 49286
[1515706586.49][CONN][RXD] diff: 49286
[1515706586.55][CONN][RXD] diff: 49256
[1515706586.61][CONN][RXD] diff: 49286
[1515706586.68][CONN][RXD] diff: 49346
[1515706586.74][CONN][RXD] diff: 49347
[1515706586.80][CONN][RXD] diff: 49256

Notice the outliers will cause intermittent CI failures.
2018-01-11 13:44:51 -08:00
Cruz Monrreal dc87f0b1e6
Merge pull request #5313 from pan-/ble-cordio-pal-gap
Cordio: Pal Gap implementation
2018-01-11 10:35:42 -06:00
Cruz Monrreal 31f59b9fb4
Merge pull request #5721 from scartmell-arm/bug-i2c-abort-deep-sleep
Fix bug allowing I2C::abort_transfer to incorrectly unlock deep sleep mode
2018-01-11 10:30:53 -06:00
Cruz Monrreal f14ddd1708
Merge pull request #5722 from scartmell-arm/bug-spi-abort-deep-sleep
Fix bug allowing SPI::abort_transfer to incorrectly unlock deep sleep mode
2018-01-11 10:29:47 -06:00
Cruz Monrreal b32828bc37
Merge pull request #5739 from pan-/nordic-new-client
BLE: Nordic pal client implementation
2018-01-11 10:26:47 -06:00
Cruz Monrreal c0c501c70f
Merge pull request #5768 from deepikabhavnani/storage_stats
Added statvfs API to get storage statistics
2018-01-11 10:25:41 -06:00
Cruz Monrreal 2c5fedc0b2
Merge pull request #5792 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_F0_V1.9.0
STM32F0 : ST CUBE version update to V1.9.0
2018-01-11 10:24:28 -06:00
TomoYamanaka 0d00be3a60 Add the function declarations of WEAK attribute to use LWIP on GR-LYCHEE
I added the function declarations of Ethernet functions that have a WEAK attribute. Although several Ethernet functions was called in rza1_emac.c, GR-LYCHEE don't have Ethernert feature. But there may be case that GR-LYCHEE uses LWIP feature.
In this case, since GR-LYCHEE will occur the build error, I addressed the error by defining the functions with a WEAK attribute. For reason of WEAK attribute, there is no influence in GR-PEACH and VK_RZ_A1H that have Ethernet feature.
2018-01-11 18:11:37 +09:00
Vincent Coubard 31053273c2 Nordic BLE: Fix stack event size
Read By group type response can return 4 descriptor discovered when the remote server have 4 descriptors with a 16 bit UUID. The handle, UUID pair get stored in a ble_gattc_desc_t that is 20 bytes long.

This PR increase buffer size to handle this use case.
2018-01-10 17:04:35 +00:00
Vincent Coubard d33b02818a BLE: Implement Generic GattClient reset logic. 2018-01-10 14:31:52 +00:00
Vincent Coubard 29988d5265 BLE: Align naming of GattClient procedure control blocks. 2018-01-10 14:18:00 +00:00