Commit Graph

4496 Commits (3e94b86a78b799bbbee4360fd64d2dd88685bd03)

Author SHA1 Message Date
Cruz Monrreal II bd6622bb89 Manually resolved unresolved patches 2018-12-28 11:15:19 -06:00
c_jin 07698022fd Add SPDX identifier for GD EMAC driver 2018-12-27 23:07:22 -06:00
chao_king 2d92ea66aa Update licence 2018-12-27 22:51:29 -06:00
chao_king 5b8da28729 Update licence 2018-12-27 22:51:29 -06:00
chao_king ee5023c797 Update licence 2018-12-27 22:36:18 -06:00
chao_king ec04269ad9 Update licence 2018-12-27 22:36:18 -06:00
chao_king 14ea9c3673 Update licence 2018-12-27 22:36:18 -06:00
chao_king 89344aa379 Add EMAC driver for GD32_F307VG 2018-12-27 22:36:18 -06:00
jeromecoutant e06b7863cc STM32F429/STM32F439 alignment 2018-12-27 22:26:04 -06:00
David Saada c0226febbc Fix LTO build failures due to duplicate local types 2018-12-27 22:26:04 -06:00
Alastair D'Silva 5b29b7e6b5 Don't use define checks on DEVICE_FOO macros (mbed code)
The DEVICE_FOO macros are always defined (either 0 or 1).

This patch replaces any instances of a define check on a DEVICE_FOO
macro with value test instead.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-27 22:26:04 -06:00
Desmond Chen 1cb1a49752 Fix BLE long write execution failure 2018-12-27 22:26:03 -06:00
David Saada 67ba976b30 Fix FLASHIAP_ROM_END macro for GCC_ARM & IAR toolchains
- Consider data section in GCC_ARM toolchain
- Consider init_array section in IAR toolchain
- Rename macro to FLASHIAP_APP_ROM_END_ADDR for clarity sake
2018-12-27 22:26:03 -06:00
Ron Eldor 6ba60e33de Update the CC310 readme file
Update the Cryptocell 310 readme file with the binary library version
information.
2018-12-27 22:26:03 -06:00
Ron Eldor 83ac6bdcaa Update the CC310 GCC_ARM libraries
Update the cryptocell 310 GCC_ARM libraries with known version.
The libraries were built from the Cryptocell 310 release
version 1.1.0.1285, using arm-none-eabi-gcc 6.3.1 20170620 (release) (release).
2018-12-27 22:26:03 -06:00
Ron Eldor 9db8753e59 Update the CC310 ARM libraries
Update the cryptocell 310 ARM libraries with known version.
The libraries were built from the Cryptocell 310 release version
1.1.0.1285, using `ARM Compiler 5.06 update 4 (build 422)`.
2018-12-27 22:26:03 -06:00
Ron Eldor 187af9e26f Update the CC310 IAR libraries
Update the cryptocell 310 IAR libraries, since the previous ones were not
built correct. The libraries were built from the Cryptocell 310
release version 1.1.0.1285, using IAR version 7.80.1.11864.
2018-12-27 22:26:03 -06:00
ccli8 cfd8823d30 Fix crypto AC management
1. For SHA AC, use atomic flag to manage its ownership.
   (1) Nuvoton SHA AC doesn't support SHA context save & restore, so S/W
       SHA fallback has been supported before. To make non-blocking 'acquire'
       semantics clearer, introduce 'try_acquire' to substitute for 'acquire'.
   (2) No biting CPU due to mechanism above.
   (3) No deadlock due to mechanism above.
2. For AES/DES/ECC AC, change to mutex to manage their ownership.
   (1) Change crypto-misc.c to crypto-misc.cpp to utilize C++ SingletonPtr
       which guarantees thread-safe mutex construct-on-first-use.
   (2) With change to crypto-misc.cpp, add 'extern "C"' modifier to CRYPTO_IRQHandler()
       to avoid name mangling in C++.
   (3) No priority inversion because mutex has osMutexPrioInherit attribute
       bit set.
   (4) No deadlock because these AC are all locked for a short sequence
       of operations rather than the whole lifetime of mbedtls context.
   (5) For double mbedtls_internal_ecp_init() issue, it has been fixed in upper
       mbedtls layer. So no need to change ecc init/free flow.
2018-12-27 22:26:03 -06:00
ccli8 5fc51b8aa2 Fix return error code when ECC H/W acceleratioin is failed 2018-12-27 22:26:03 -06:00
Kari Haapalehto c7ced9b42f Initialize the interface at the construction and make sure that it's done only once. 2018-12-27 22:26:02 -06:00
zhanglu@realtek-sg.com 1853db62d6 Realtek-rtl8195am-Network Socket Updates
This PR addresses the issue of #8124.
It updates and enriches the wifi connection error type to adapt the Network Socket test plan requirement.
In the meantime, it increases the heap size that allows the transmission of larger packet size.

Description
1. Increase heap size in lwipstack\mbed_lib.json to fulfill bursty TCP and UDP transmission requirement.
2. Modify and enrich wifi connection error types in TARGET_AMEBA\RTWInterface.cpp to adapt the decision logic of the wifi test cases.
3. Add new static constants in TARGET_AMEBA\RTWInterface.h, including 'SSID_MAX_LENGTH', 'PASSPHRASE_MAX_LENGTH' and 'PASSPHRASE_MIN_LENGTH' to help verifying the validity of ssid and passphrase.

Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
2018-12-27 22:26:02 -06:00
kegilbert 637499c63f Add socket stat logging state change update
TCPServer was deprecated and the accept call was added to TCPSocket. Add state change update to that call
2018-12-27 22:26:02 -06:00
David Saada d6f22193ff Adjust FAT FS tests to low memory boards
This is achieved by checking whether the board can allocate a certain memory
chunk (threshold) and skipping the test if it can't.
This should prevent these boards from failing in CI.
2018-12-27 22:26:02 -06:00
Alastair D'Silva d77f2c4b3a Align prototype & implementation of enet_tasklet_disconnect & friends
Rework of #8698

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-27 22:26:02 -06:00
Teppo Järvelin a3d26187d4 Cellular: Fix to use PPP stack in PPP mode
In QUECTEL_BG96 and QUECTEL_BC95 there was missing #ifdefs for
PPP mode and our stack was used. Also BG96 needed to be added
AT_CellularBase::AT_CGDATA as not supported.
2018-12-27 22:26:00 -06:00
Conrad Braam 2d9a5f41c6 removed include statement 2018-12-27 22:26:00 -06:00
Conrad Braam 43f09b862c writes and reads queue, not overflow stack IOTPAN-295 2018-12-27 22:26:00 -06:00
Ari Parkkila 1bbf8af7d3 Cellular: Refactored GEMALTO_CINTERION_Module to GEMALTO_CINTERION 2018-12-27 22:26:00 -06:00
Mirela Chirica 2f47b5b481 Cellular: Rewrite AT handler consume to tag
If sequence from buffer contains tag but symbol before tag is same as
first symbol of the tag, then the tag wasn't detected.

For example, "\r\n" tag was not found from "\r\r\nOK" sequence.
2018-12-27 22:26:00 -06:00
Amir Cohen 1033ddf35b Fix max_keys reset limitation
Persist the max_keys value through a soft-reset, also prohibit max_keys set under predefined default value (16)
2018-12-27 22:26:00 -06:00
Amir Cohen b261162c9b Remove dead code 2018-12-27 22:26:00 -06:00
Amir Cohen 79103d25fd Improve tests by reducing kvstore reset occurrences 2018-12-27 22:26:00 -06:00
Mel W 42f6d630a7 Capitalization and punctuation 2018-12-27 22:25:59 -06:00
Kari Haapalehto 35ce1e5ff3 Modify enet_tasklet.h Change enet_tasklet_network_init() and enet_tasklet_disconnect() declarations to match code. Also add document enet_tasklet.h functions 2018-12-27 22:25:59 -06:00
Naveen Kaje c1ef30e851 BLE: Update toolchain.h with mbed_toolchain.h
Fixes the following warning

[Warning] toolchain.h@24,0: #1215-D: #warning directive:
toolchain.h has been replaced by mbed_toolchain.h,
please update to mbed_toolchain.h [since mbed-os-5.3]
2018-12-27 22:25:59 -06:00
Ron Eldor 18d544b977 Return not supported for internal process function
Return the `MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED` for the
internal process function, as it is not public.
2018-12-27 22:25:59 -06:00
Ron Eldor bf681b0409 Style fixes
1. Change camelcase variables to Mbed OS style.
2. Remove functions declarations from the `_alt` header, since they
are now added from the module header regardless whether an alternative
implementation exists.
3. Remove the `extern "c"` declaration from the `_alt` headers.
4. Remove redundant extra lines.
2018-12-27 22:25:59 -06:00
Hasnain Virk 040a4a3243 Final cleanup and ASCII art for algorithm v2
Final code cleanup and adding ascii art for the version 2 of the
algorithm.
2018-12-27 22:25:59 -06:00
Hasnain Virk eb69d2737e RX window calculation algorithm version 2
In this version we try to mitigate a situation when we start listening
right in the middle of a preamble sequence (e.g., in high SF case).
2018-12-27 22:25:59 -06:00
Hasnain Virk 1f3a1b5af8 Style alignment
Minor style alignment.
2018-12-27 22:25:59 -06:00
Hasnain Virk cade713a41 Mitigating reception problems with lower data rates
A new algorithm has been taken in use to calculate the receive window
length and the timing offset involved in opening of the said receive
window. This algorithm performs better than the stock algorthm and
consumes less power.
2018-12-27 22:25:59 -06:00
Hasnain Virk 1aec8297c3 UL FCnt increment in case of retry exhaustion
Previously we had been incrementing UL frame counter for a CONFIRMED
message only when the transmission was deemed successful i.e., we would
have received an ack before all the retries would have exhausted.
Now we have opted to increment the frame counter if all the retries are
exhausted considering the fact that we essentially treat the next
message after retry exhaustion as a new packet so we should also
increment the frame counter.
2018-12-27 22:25:58 -06:00
Amanda Butler 7a2d04ebc6 Edit CellularContext.h
Edit file for complete sentences and correct commas.
2018-12-27 22:25:58 -06:00
Amanda Butler 3892105dee Edit CellularDevice.h
Edit file for complete sentences, consistent tense and correct commas.
2018-12-27 22:25:58 -06:00
Teppo Järvelin faab478c23 Cellular: add Callback functionality to CellularDevice. 2018-12-27 22:25:58 -06:00
Teppo Järvelin f9742e978c Cellular: updated doxygen for CellularContext and CellularDevice. 2018-12-27 22:25:58 -06:00
Amanda Butler 81296b34d0 Edit TDBStore.h
Edit file for punctuation and consistent tense.
2018-12-27 22:25:57 -06:00
Amanda Butler 053212b540 Edit SecureStore.h
Edit file for consistent tense.
2018-12-27 22:25:57 -06:00
Amanda Butler cafce1018a Add word to KVMap.h
Add missing article for clarity and capitalization.
2018-12-27 22:25:57 -06:00
Amanda Butler bbea6ed27a Edit FileSystemStore.h
Make minor edits, mostly for consistent tense across documents.
2018-12-27 22:25:57 -06:00