Skip to content

Realtek-rtl8195am-Network Socket Updates #9070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
6403b9c
Add GD32F307VG
ChazJin Oct 17, 2018
9752a9b
Re add target support for GD32F307VG
ChazJin Nov 13, 2018
55a4261
Delete added information (GD32F307VG)
ChazJin Nov 13, 2018
eb39c48
Add EMAC driver for GD32_F307VG
ChazJin Nov 13, 2018
cc94bfa
Update licence
ChazJin Nov 13, 2018
49b25c9
Update licence
ChazJin Nov 13, 2018
42bffe2
Update licence
ChazJin Nov 13, 2018
0d4bb5c
Add support for GD32F307VG
ChazJin Nov 15, 2018
d44ef27
Delete a button definition
ChazJin Nov 15, 2018
c566757
Add it to replace startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
369eec8
Delete startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
7e480f0
Add it to replace startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
6adb048
Add it to replace startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
200c28b
Add it to replace startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
37744d8
Delete startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
a4a19fa
Delete startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
218fee8
Delete startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
644cc53
Consistent with the remote repo and add GD32F307VG
ChazJin Nov 18, 2018
7dc05a4
Add GD32F307VG
ChazJin Oct 17, 2018
1afb50d
Re add target support for GD32F307VG
ChazJin Nov 13, 2018
e20ddac
Delete added information (GD32F307VG)
ChazJin Nov 13, 2018
700f3a2
Add EMAC driver for GD32_F307VG
ChazJin Nov 13, 2018
9131b3f
Update licence
ChazJin Nov 13, 2018
d2e731b
Update licence
ChazJin Nov 13, 2018
61d3bc8
Update licence
ChazJin Nov 13, 2018
bb1e4a7
Add support for GD32F307VG
ChazJin Nov 15, 2018
d2779a6
Delete a button definition
ChazJin Nov 15, 2018
c8cadd6
Add it to replace startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
0728dde
Add it to replace startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
16ff28d
Add it to replace startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
b6e455c
Add it to replace startup_gd32f30x_cl.s
ChazJin Nov 16, 2018
9ee4af6
Remove the "device_name": "GD32F307VG"
ChazJin Nov 16, 2018
2b9071a
conflicts resolve
ChazJin Nov 18, 2018
6126621
Delete startup_gd32f30x_cl.s
ChazJin Nov 18, 2018
db27eab
Delete startup_gd32f30x_cl.s
ChazJin Nov 18, 2018
2b90f34
Delete startup_gd32f30x_cl.s
ChazJin Nov 18, 2018
36a2732
Delete startup_gd32f30x_cl.s
ChazJin Nov 18, 2018
787cdbe
Delete added information (GD32F307VG)
ChazJin Nov 18, 2018
5a15f81
Error modification
ChazJin Nov 19, 2018
62e34ec
Add SPDX identifier
ChazJin Nov 21, 2018
a9ce7a6
Add SPDX identifier for GD EMAC driver
ChazJin Nov 21, 2018
df81a21
Update REALTEK_RTL8195AM.py
AdamZhang0124 Nov 23, 2018
06cd17b
This PR modifies the name of the bin file generated for SMCC FOTA fea…
AdamZhang0124 Nov 23, 2018
ac8b950
Update REALTEK_RTL8195AM.py
AdamZhang0124 Nov 23, 2018
08e8107
Merge branch 'master' of https://github.com/AdamZhang0124/mbed-os
AdamZhang0124 Nov 26, 2018
7822fa8
Style fixes
Nov 15, 2018
bcbda3e
Return not supported for internal process function
Nov 28, 2018
95f7a97
Add MPU label and fix labels alignment
ChazJin Nov 30, 2018
881561a
Error resolve, bug fix and 2 new targets information add
ChazJin Dec 6, 2018
ca46d12
Delete GD32F450ZI and GD323103VB which are not implemented
ChazJin Dec 7, 2018
6ac625d
Style Format for GD32F30x standard peripheral files
ChazJin Dec 7, 2018
f05e7b7
Add core option for Cortex-M33 with DSP enabled
Dec 6, 2018
91296c8
[Seeed Arch MAX] Add Mbed OS 5 support
toyowata Nov 21, 2018
4d11ff8
Add network-default-interface-type and remove comment
Dec 7, 2018
c950cc3
Add NUCLEO_L4R5ZI_P
jeromecoutant Dec 7, 2018
503777d
STM32L4: correct RNG clock source
jeromecoutant Dec 10, 2018
7e7af77
Modify enet_tasklet.h
KariHaapalehto Dec 10, 2018
f4a168b
Disable MPU RT1050 due to memory map
c1728p9 Dec 10, 2018
448c4d5
BLE: Update toolchain.h with mbed_toolchain.h
Dec 10, 2018
49a8cb8
travis: add license
0xc0170 Dec 11, 2018
9c94177
Update REALTEK_RTL8195AM.py
AdamZhang0124 Nov 23, 2018
e502675
Fix test-netsocket-tcp greentea test build fails.
KariHaapalehto Dec 11, 2018
c26c594
Merge branch 'master' of https://github.com/AdamZhang0124/mbed-os
AdamZhang0124 Dec 11, 2018
dba7f6e
travis: use https for fetching astyle package
0xc0170 Dec 11, 2018
8c54146
fix: Merge duplicate 'overrides' keys in targets.json config file
Dec 11, 2018
091010e
mbed_fault_handler: fix build warning
Dec 11, 2018
3c3c8f0
Merge branch 'master' of https://github.com/AdamZhang0124/mbed-os
AdamZhang0124 Dec 12, 2018
5f47f52
NetworkSocketUpdate
AdamZhang0124 Dec 12, 2018
8de7a36
Capitalization and punctuation
Dec 12, 2018
c387fec
Merge pull request #8725 from ChazJin/master
0xc0170 Dec 12, 2018
985afb8
Merge pull request #8728 from RonEld/cryptocell_sha_alt_fixes
0xc0170 Dec 12, 2018
93da33f
Merge pull request #8995 from NXPmicro/Update_for_M33_FD
0xc0170 Dec 12, 2018
45215c2
Merge pull request #9008 from jeromecoutant/PR_NUCLEO_L4R5ZI_P
0xc0170 Dec 12, 2018
7cd0126
Merge pull request #9035 from jeromecoutant/PR_L4TRNG
0xc0170 Dec 12, 2018
fa3212a
Merge pull request #9037 from naveenkaje/fix_ble_build_warning
0xc0170 Dec 12, 2018
7c5cffb
Merge pull request #9047 from 0xc0170/dev_travis_license
0xc0170 Dec 12, 2018
e3b03e0
Merge pull request #9055 from 0xc0170/dev_travis_astyle_https
0xc0170 Dec 12, 2018
70ab757
Extend W7500x target with ADC 6 and 7
vervaekejonathan Dec 12, 2018
4e52240
Merge pull request #9036 from c1728p9/rt1050_fix
Dec 12, 2018
d8be78b
Merge pull request #9063 from naveenkaje/fix_fault_handler_warning
Dec 12, 2018
fda9f2e
Merge pull request #9060 from scartmell-arm/fix-duplicate-keys-in-tar…
Dec 12, 2018
34007bb
Merge pull request #9049 from KariHaapalehto/fix_tests_netsocket_tcp
Dec 12, 2018
d53553e
Merge pull request #9034 from KariHaapalehto/enet_tasklet_definitions
Dec 12, 2018
f196942
Merge pull request #8831 from toyowata/dev-arch_max
Dec 12, 2018
27e1bc3
Merge pull request #9073 from vervaekejonathan/master
Dec 13, 2018
c2f020c
NetworkSocketUpdate
AdamZhang0124 Dec 12, 2018
dee4d4f
Merge branch 'realtek-rtl8195am-NetworkSocket_Updates' of https://git…
AdamZhang0124 Dec 13, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Copyright (c) 2013-2018 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the License); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

language: python
python: 2.7

Expand Down Expand Up @@ -118,7 +134,7 @@ matrix:
- env:
- NAME=astyle
install:
- curl -L0 http://mbed-os.s3-eu-west-1.amazonaws.com/builds/deps/astyle_3.1_linux.tar.gz --output astyle.tar.gz;
- curl -L0 https://mbed-os.s3-eu-west-1.amazonaws.com/builds/deps/astyle_3.1_linux.tar.gz --output astyle.tar.gz;
mkdir -p BUILD && tar xf astyle.tar.gz -C BUILD;
pushd BUILD/astyle/build/gcc;
make;
Expand Down
2 changes: 1 addition & 1 deletion TESTS/netsocket/tcp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Case cases[] = {
Case("TCPSOCKET_BIND_ADDRESS", TCPSOCKET_BIND_ADDRESS),
Case("TCPSOCKET_BIND_WRONG_TYPE", TCPSOCKET_BIND_WRONG_TYPE),
Case("TCPSOCKET_BIND_UNOPENED", TCPSOCKET_BIND_UNOPENED),
Case("TCPSOCKET_SETSOCKOPT_KEEPALIVE_VALID", TCPSOCKET_SETSOCKOPT_KEEPALIVE_VALID)
Case("TCPSOCKET_SETSOCKOPT_KEEPALIVE_VALID", TCPSOCKET_SETSOCKOPT_KEEPALIVE_VALID),
Case("TCPSOCKET_RECV_100K", TCPSOCKET_RECV_100K),
Case("TCPSOCKET_RECV_100K_NONBLOCK", TCPSOCKET_RECV_100K_NONBLOCK),
Case("TCPSOCKET_RECV_TIMEOUT", TCPSOCKET_RECV_TIMEOUT),
Expand Down
1 change: 1 addition & 0 deletions cmsis/TARGET_CORTEX_M/mbed_fault_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <string.h>

#include "device.h"
#include "mbed_error.h"
Expand Down
2 changes: 1 addition & 1 deletion features/FEATURE_BLE/source/BLE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#if !defined(YOTTA_CFG_MBED_OS)
#include <mbed_error.h>
#include <toolchain.h>
#include <mbed_toolchain.h>
#endif

#if defined(__GNUC__) && !defined(__CC_ARM)
Expand Down
12 changes: 5 additions & 7 deletions features/cryptocell/FEATURE_CRYPTOCELL310/sha1_alt.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
#include "mbedtls/sha1.h"
#if defined(MBEDTLS_SHA1_ALT)
#include <string.h>
#include "mbedtls/platform.h"

void mbedtls_sha1_init( mbedtls_sha1_context *ctx )
{
memset( ctx, 0, sizeof( mbedtls_sha1_context ) );

}

void mbedtls_sha1_free( mbedtls_sha1_context *ctx )
Expand Down Expand Up @@ -64,10 +64,10 @@ int mbedtls_sha1_update_ret( mbedtls_sha1_context *ctx,
int mbedtls_sha1_finish_ret( mbedtls_sha1_context *ctx,
unsigned char output[20] )
{
CRYSError_t CrysErr = CRYS_OK;
CRYSError_t crys_err = CRYS_OK;
CRYS_HASH_Result_t crys_result = {0};
CrysErr = CRYS_HASH_Finish( &ctx->crys_hash_ctx, crys_result );
if( CrysErr == CRYS_OK )
crys_err = CRYS_HASH_Finish( &ctx->crys_hash_ctx, crys_result );
if( crys_err == CRYS_OK )
{
memcpy( output, crys_result, 20 );
return ( 0 );
Expand All @@ -79,8 +79,6 @@ int mbedtls_sha1_finish_ret( mbedtls_sha1_context *ctx,
int mbedtls_internal_sha1_process( mbedtls_sha1_context *ctx,
const unsigned char data[64] )
{
if( CRYS_HASH_Update( &ctx->crys_hash_ctx, (uint8_t*)data, 64 ) != CRYS_OK )
return ( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );
return ( 0 );
return( MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED );
}
#endif //MBEDTLS_SHA1_ALT
112 changes: 0 additions & 112 deletions features/cryptocell/FEATURE_CRYPTOCELL310/sha1_alt.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#define __SHA1_ALT__
#if defined(MBEDTLS_SHA1_ALT)
#include "crys_hash.h"
#ifdef __cplusplus
extern "C" {
#endif


/**
* \brief SHA-1 context structure
Expand All @@ -35,114 +31,6 @@ typedef struct
CRYS_HASHUserContext_t crys_hash_ctx;
} mbedtls_sha1_context;

/**
* \brief This function initializes a SHA-1 context.
*
* \param ctx The SHA-1 context to initialize.
*
* \warning SHA-1 is considered a weak message digest and its use
* constitutes a security risk. We recommend considering
* stronger message digests instead.
*
*/
void mbedtls_sha1_init( mbedtls_sha1_context *ctx );

/**
* \brief This function clears a SHA-1 context.
*
* \param ctx The SHA-1 context to clear.
*
* \warning SHA-1 is considered a weak message digest and its use
* constitutes a security risk. We recommend considering
* stronger message digests instead.
*
*/
void mbedtls_sha1_free( mbedtls_sha1_context *ctx );

/**
* \brief This function clones the state of a SHA-1 context.
*
* \param dst The destination context.
* \param src The context to clone.
*
* \warning SHA-1 is considered a weak message digest and its use
* constitutes a security risk. We recommend considering
* stronger message digests instead.
*
*/
void mbedtls_sha1_clone( mbedtls_sha1_context *dst,
const mbedtls_sha1_context *src );

/**
* \brief This function starts a SHA-1 checksum calculation.
*
* \param ctx The context to initialize.
*
* \return \c 0 if successful
*
* \warning SHA-1 is considered a weak message digest and its use
* constitutes a security risk. We recommend considering
* stronger message digests instead.
*
*/
int mbedtls_sha1_starts_ret( mbedtls_sha1_context *ctx );

/**
* \brief This function feeds an input buffer into an ongoing SHA-1
* checksum calculation.
*
* \param ctx The SHA-1 context.
* \param input The buffer holding the input data.
* \param ilen The length of the input data.
*
* \return \c 0 if successful
*
* \warning SHA-1 is considered a weak message digest and its use
* constitutes a security risk. We recommend considering
* stronger message digests instead.
*
*/
int mbedtls_sha1_update_ret( mbedtls_sha1_context *ctx,
const unsigned char *input,
size_t ilen );

/**
* \brief This function finishes the SHA-1 operation, and writes
* the result to the output buffer.
*
* \param ctx The SHA-1 context.
* \param output The SHA-1 checksum result.
*
* \return \c 0 if successful
*
* \warning SHA-1 is considered a weak message digest and its use
* constitutes a security risk. We recommend considering
* stronger message digests instead.
*
*/
int mbedtls_sha1_finish_ret( mbedtls_sha1_context *ctx,
unsigned char output[20] );

/**
* \brief SHA-1 process data block (internal use only)
*
* \param ctx SHA-1 context
* \param data The data block being processed.
*
* \return \c 0 if successful
*
* \warning SHA-1 is considered a weak message digest and its use
* constitutes a security risk. We recommend considering
* stronger message digests instead.
*
*/
int mbedtls_internal_sha1_process( mbedtls_sha1_context *ctx,
const unsigned char data[64] );

#ifdef __cplusplus
}
#endif

#endif //MBEDTLS_SHA1_ALT
#endif //__SHA1_ALT__

12 changes: 5 additions & 7 deletions features/cryptocell/FEATURE_CRYPTOCELL310/sha256_alt.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
#include "mbedtls/sha256.h"
#if defined(MBEDTLS_SHA256_ALT)
#include <string.h>
#include "mbedtls/platform.h"

void mbedtls_sha256_init( mbedtls_sha256_context *ctx )
{
memset( ctx, 0, sizeof( mbedtls_sha256_context ) );

}

void mbedtls_sha256_free( mbedtls_sha256_context *ctx )
Expand Down Expand Up @@ -54,9 +54,7 @@ int mbedtls_sha256_starts_ret( mbedtls_sha256_context *ctx, int is224 )
int mbedtls_internal_sha256_process( mbedtls_sha256_context *ctx,
const unsigned char data[64] )
{
if( CRYS_HASH_Update( &ctx->crys_hash_ctx, (uint8_t*)data, 64 ) != CRYS_OK )
return ( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );
return ( 0 );
return( MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED );
}

int mbedtls_sha256_update_ret( mbedtls_sha256_context *ctx,
Expand All @@ -71,10 +69,10 @@ int mbedtls_sha256_update_ret( mbedtls_sha256_context *ctx,
int mbedtls_sha256_finish_ret( mbedtls_sha256_context *ctx,
unsigned char output[32] )
{
CRYSError_t CrysErr = CRYS_OK;
CRYSError_t crys_err = CRYS_OK;
CRYS_HASH_Result_t crys_result = {0};
CrysErr = CRYS_HASH_Finish( &ctx->crys_hash_ctx, crys_result );
if( CrysErr == CRYS_OK )
crys_err = CRYS_HASH_Finish( &ctx->crys_hash_ctx, crys_result );
if( crys_err == CRYS_OK )
{
memcpy( output, crys_result, 32 );
return ( 0 );
Expand Down
84 changes: 0 additions & 84 deletions features/cryptocell/FEATURE_CRYPTOCELL310/sha256_alt.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
#if defined(MBEDTLS_SHA256_ALT)

#include "crys_hash.h"
#ifdef __cplusplus
extern "C" {
#endif


/**
* \brief SHA-256 context structure
Expand All @@ -37,85 +33,5 @@ typedef struct
CRYS_HASHUserContext_t crys_hash_ctx;
} mbedtls_sha256_context;


/**
* \brief This function initializes a SHA-256 context.
*
* \param ctx The SHA-256 context to initialize.
*/
void mbedtls_sha256_init( mbedtls_sha256_context *ctx );

/**
* \brief This function clears a SHA-256 context.
*
* \param ctx The SHA-256 context to clear.
*/
void mbedtls_sha256_free( mbedtls_sha256_context *ctx );

/**
* \brief This function clones the state of a SHA-256 context.
*
* \param dst The destination context.
* \param src The context to clone.
*/
void mbedtls_sha256_clone( mbedtls_sha256_context *dst,
const mbedtls_sha256_context *src );

/**
* \brief This function starts a SHA-224 or SHA-256 checksum
* calculation.
*
* \param ctx The context to initialize.
* \param is224 Determines which function to use.
* <ul><li>0: Use SHA-256.</li>
* <li>1: Use SHA-224.</li></ul>
*
* \return \c 0 on success.
*/
int mbedtls_sha256_starts_ret( mbedtls_sha256_context *ctx, int is224 );

/**
* \brief This function feeds an input buffer into an ongoing
* SHA-256 checksum calculation.
*
* \param ctx SHA-256 context
* \param input buffer holding the data
* \param ilen length of the input data
*
* \return \c 0 on success.
*/
int mbedtls_sha256_update_ret( mbedtls_sha256_context *ctx,
const unsigned char *input,
size_t ilen );

/**
* \brief This function finishes the SHA-256 operation, and writes
* the result to the output buffer.
*
* \param ctx The SHA-256 context.
* \param output The SHA-224 or SHA-256 checksum result.
*
* \return \c 0 on success.
*/
int mbedtls_sha256_finish_ret( mbedtls_sha256_context *ctx,
unsigned char output[32] );

/**
* \brief This function processes a single data block within
* the ongoing SHA-256 computation. This function is for
* internal use only.
*
* \param ctx The SHA-256 context.
* \param data The buffer holding one block of data.
*
* \return \c 0 on success.
*/
int mbedtls_internal_sha256_process( mbedtls_sha256_context *ctx,
const unsigned char data[64] );

#ifdef __cplusplus
}
#endif

#endif // MBEDTLS_SHA256_ALT__
#endif //__SHA256_ALT__
3 changes: 2 additions & 1 deletion features/lwipstack/mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@
},
"target_overrides": {
"REALTEK_RTL8195AM": {
"tcpip-thread-stacksize": 1600
"tcpip-thread-stacksize": 1600,
"mem-size": 12800
},
"UBLOX_EVK_ODIN_W2": {
"pbuf-pool-size" : 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,5 @@ nsapi_error_t NanostackEthernetInterface::do_initialize()

nsapi_error_t Nanostack::EthernetInterface::bringdown()
{
enet_tasklet_disconnect();
return 0;
return enet_tasklet_disconnect(true);
}
1 change: 1 addition & 0 deletions features/nanostack/mbed-mesh-api/source/ethernet_tasklet.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "ns_event_loop.h"
#include "mesh_interface_types.h"
#include "eventOS_event.h"
#include "enet_tasklet.h"

// For tracing we need to define flag, have include and define group
#include "ns_trace.h"
Expand Down
Loading