mirror of
https://github.com/Cateners/tiny_computer.git
synced 2026-05-21 08:55:48 +08:00
Update code to v1.0.14 (10)
This commit is contained in:
59
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/README.md
vendored
Normal file
59
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/README.md
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
## Project Summary
|
||||
|Item|Name/Version|
|
||||
|:--|:--|
|
||||
|Board|DK-S7G2|
|
||||
|Toolchain|GCC ARM Embedded|
|
||||
|SSP Version|1.7.0|
|
||||
|
||||
|
||||
## Building wolfSSL For DK-S7G2
|
||||
|
||||
- First physically toggle the ENET1 and JTAG switch to on with the DK-S7G2 board.
|
||||
- Open e2studio and set the workspace to be wolfssl-X.X.X/IDE/Renesas/e2studio/DK-S7G2/
|
||||
- Create a Synergy library project named wolfssl "File->New->Synergy C/C++ Project", "Renesas Synergy C Library Project" then "Next", set wolfssl as the "Project Name" then "Next", set Board to "S7G2 DK" then "Next", finally select the BSP radius and click "Finish"
|
||||
- Copy configuration.xml and .project from wolfssl-X.X.X/IDE/Renesas/e2studio/DK-S7G2/wolfssl-template-project/ into the wolfssl-X.X.X/IDE/Renesas/e2studio/DK-S7G2/wolfssl directory
|
||||
- (optional but necessary for production) Add TRNG support by clicking on Threads tab and highlight HAL/Common click "New Stack > Driver > Crypto > TRNG Driver on r_sce_trng". Then comment out WOLFSSL_SCE_NO_TRNG define in wolfssl project src/user_settings.h
|
||||
- (optional SHA acceleration) Add HASH support by clicking on Threads tab and highlight HAL/Common click "New Stack > Driver > Crypto > HASH Driver on r_sce_hash". Then uncomment WOLFSSL_SCE_NO_HASH define in wolfssl project src/user_settings.h
|
||||
- (optional AES acceleration) Add the stacks for AES128, AES192, and AES256. Click on Threads tab and highlight HAL/Common click "New Stack > Driver > Crypto > AES Driver on r_sce_aes". Add three one for each key size and rename them to g_sce_aes_256, g_sce_aes_192, and g_sce_aes_128. Changing each to ECB chaining mode and the key length that matches the name.
|
||||
- Generate the changes by clicking on "Generate Project Content"
|
||||
- Exclude src/wolfcrypt/port and all src/wolfcrypt/*.S and src/wolfcrypt/*.asm files from the build
|
||||
- Exclude src/wolfcrypt/evp.c, src/wolfcrypt/misc.c and src/wolfssl/bio.c
|
||||
- Set the Preprocessor define in wolfssl proejct to have WOLFSSL_USER_SETTINGS. Right click on wolfssl project "Properties -> C/C++ Build -> GNU ARM Cross C Compiler -> Preprocessor" add WOLFSSL_USER_SETTINGS under "Defined symbols"
|
||||
- Set include to wolfssl directory. Right click on project "Properties -> C/C++Build -> GNU ARM Cross Compiler -> Includes". Add "${ProjDirPath}/../../../../.." and "${ProjDirPath}/../"
|
||||
- Build wolfssl by right clicking on wolfssl project and selecting "Build Project"
|
||||
|
||||
## Example Projects and Building
|
||||
|
||||
- Create a new Synergy project "Renesas Synergy C Project Using Synergy Library"
|
||||
- Set it to use the wolfssl library
|
||||
- Copy in the .cproject, .project and source file from the template desired i.e. wolfssl-X.X.X/IDE/Renesas/e2studio/DK-S7G2/wolfcrypttest-template/
|
||||
- Right click on the created project and select "Build Project"
|
||||
|
||||
The example_server loops looking to accept connections and closes immediatly after a successful connection was made.
|
||||
|
||||
The benchmark example tries to do a TCP connection to SERVER_IP on port 11112 and a TLS connection to SERVER_IP on port 11111 then does wolfCrypt benchmark collection.
|
||||
|
||||
The wolfcryptest runs through all of the unit tests from wolfcrypt/test/test.c
|
||||
|
||||
## Advanced Overriding Driver Name
|
||||
Defaults are set for when accessing the driver but the default names may not always work for an existing project. These are the macros and their defaults that could be mapped to other driver names:
|
||||
|
||||
```
|
||||
/* For main SCE open and close */
|
||||
WOLFSSL_SCE_GSCE_HANDLE g_sce
|
||||
|
||||
/* For AES operations */
|
||||
WOLFSSL_SCE_AES256_HANDLE g_sce_aes_256
|
||||
WOLFSSL_SCE_AES192_HANDLE g_sce_aes_192
|
||||
WOLFSSL_SCE_AES128_HANDLE g_sce_aes_128
|
||||
|
||||
/* HASH operations */
|
||||
WOLFSSL_SCE_SHA256_HANDLE g_sce_hash_0
|
||||
|
||||
/* TRNG access */
|
||||
WOLFSSL_SCE_TRNG_HANDLE g_sce_trng
|
||||
```
|
||||
|
||||
|
||||
An example of remapping a driver name would be the following added to a wolfSSL user_settings.h file:
|
||||
#define WOFSSL_SCE_SHA256_HANDLE my_sce_hash_driver
|
||||
307
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/benchmark-template/src/app_entry.c
vendored
Normal file
307
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/benchmark-template/src/app_entry.c
vendored
Normal file
@@ -0,0 +1,307 @@
|
||||
/* app_entry.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "app.h"
|
||||
#include "stdio.h"
|
||||
extern void initialise_monitor_handles(void);
|
||||
|
||||
#include <wolfcrypt/benchmark/benchmark.h>
|
||||
|
||||
#ifndef WOLFCRYPT_ONLY
|
||||
|
||||
#include <wolfssl/ssl.h>
|
||||
|
||||
#define USE_CERT_BUFFERS_2048
|
||||
#define USE_CERT_BUFFERS_256
|
||||
#include <wolfssl/certs_test.h>
|
||||
|
||||
#include "nx_api.h"
|
||||
#define CONNECTION_TIMES 100
|
||||
#define SERVER_IP IP_ADDRESS(10,22,73,128)
|
||||
#define TLS_PORT 11111
|
||||
#define TCP_PORT 11112
|
||||
|
||||
static double miliseconds = 0;
|
||||
void timer_callback(timer_callback_args_t * args)
|
||||
{
|
||||
miliseconds++;
|
||||
(void)args;
|
||||
}
|
||||
|
||||
/* version is the type of TLS version to use. For example TLS1.2 = version 2
|
||||
* and TLS1.3 = version 3
|
||||
*
|
||||
* suites is a null terminated string containing the cipher suites to us, or
|
||||
* can be NULL for default*/
|
||||
static void benchmark_TLS(int version, char* suites, int group)
|
||||
{
|
||||
UINT TEST_PORT = TLS_PORT;
|
||||
ULONG TEST_IP = SERVER_IP;
|
||||
int i;
|
||||
NX_TCP_SOCKET sockfd;
|
||||
int ret;
|
||||
#ifdef WOLFSSL_TLS13
|
||||
int groups[1];
|
||||
#endif
|
||||
double start;
|
||||
WOLFSSL_METHOD* method = NULL;
|
||||
|
||||
WOLFSSL_CTX* ctx;
|
||||
WOLFSSL* ssl;
|
||||
|
||||
switch (version) {
|
||||
case 2: method = wolfTLSv1_2_client_method(); break;
|
||||
#ifdef WOLFSSL_TLS13
|
||||
case 3: method = wolfTLSv1_3_client_method(); break;
|
||||
#endif
|
||||
default:
|
||||
printf("Unknown TLS version (Check if built with it supported)\n");
|
||||
return;
|
||||
}
|
||||
|
||||
ctx = wolfSSL_CTX_new(method);
|
||||
if (ctx == NULL) {
|
||||
printf("unable to create ctx\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifndef NO_RSA
|
||||
/* add default RSA CA */
|
||||
ret = wolfSSL_CTX_load_verify_buffer(ctx, ca_cert_der_2048,
|
||||
sizeof_ca_cert_der_2048, SSL_FILETYPE_ASN1);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("error %d loading CA\n", ret);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ECC
|
||||
/* add default ECDSA CA */
|
||||
ret = wolfSSL_CTX_load_verify_buffer(ctx, ca_ecc_cert_der_256,
|
||||
sizeof_ca_ecc_cert_der_256, SSL_FILETYPE_ASN1);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("error %d loading CA\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
if (suites != NULL) {
|
||||
ret = wolfSSL_CTX_set_cipher_list(ctx, suites);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("error %d setting cipher suites %s\n", ret, suites);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_TLS13
|
||||
if (version == 3) {
|
||||
groups[0] = group;
|
||||
ret = wolfSSL_CTX_set_groups(ctx, groups, 1);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("error setting group\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
printf("Trying to connect to 0x%lX on port %d\n", TEST_IP, TEST_PORT);
|
||||
|
||||
miliseconds = 0;
|
||||
g_timer0.p_api->open(g_timer0.p_ctrl, g_timer0.p_cfg);
|
||||
g_timer0.p_api->start(g_timer0.p_ctrl);
|
||||
|
||||
start = (double)tx_time_get(); // TX_TIMER_TICKS_PER_SECOND = 100
|
||||
ret = (int)nx_tcp_socket_create(&g_ip0, &sockfd, "TLS_CLIENT", NX_IP_NORMAL,
|
||||
NX_FRAGMENT_OKAY, NX_IP_TIME_TO_LIVE, 1500, NX_NULL, NX_NULL);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to create socket err = 0x%X\n", ret);
|
||||
return;
|
||||
}
|
||||
for (i = 0; i < CONNECTION_TIMES; i++) {
|
||||
|
||||
ret = (int)nx_tcp_client_socket_bind(&sockfd, NX_ANY_PORT,
|
||||
NX_WAIT_FOREVER);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to bind socket\n");
|
||||
return;
|
||||
}
|
||||
|
||||
ret = (int)nx_tcp_client_socket_connect(&sockfd, TEST_IP, TEST_PORT,
|
||||
NX_WAIT_FOREVER);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to connect with error 0x%X\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
ssl = wolfSSL_new(ctx);
|
||||
if (ssl == NULL) {
|
||||
printf("Error creating ssl\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_TLS13
|
||||
if (version == 3) {
|
||||
ret = wolfSSL_UseKeyShare(ssl, group);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("Error %d with set key share\n", ret);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
wolfSSL_SetIO_NetX(ssl, &sockfd, NX_WAIT_FOREVER);
|
||||
|
||||
ret = wolfSSL_connect(ssl);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("Error %d with wolfssl connect\n", ret);
|
||||
return;
|
||||
}
|
||||
wolfSSL_free(ssl);
|
||||
|
||||
nx_tcp_socket_disconnect(&sockfd, NX_WAIT_FOREVER);
|
||||
|
||||
ret = nx_tcp_client_socket_unbind(&sockfd);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to unbind with error 0x%X\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
nx_tcp_socket_delete(&sockfd);
|
||||
|
||||
g_timer0.p_api->stop(g_timer0.p_ctrl);
|
||||
start = (double)tx_time_get() - start;
|
||||
g_timer0.p_api->close(g_timer0.p_ctrl);
|
||||
|
||||
printf("%d TLS connections took %f seconds and %f tx_time ticks\n",
|
||||
CONNECTION_TIMES, (miliseconds / 10), start);
|
||||
wolfSSL_CTX_free(ctx);
|
||||
}
|
||||
|
||||
|
||||
static void benchmark_TCP()
|
||||
{
|
||||
UINT TEST_PORT = TCP_PORT;
|
||||
ULONG TEST_IP = SERVER_IP;
|
||||
int i;
|
||||
NX_TCP_SOCKET sockfd;
|
||||
int ret;
|
||||
double start;
|
||||
|
||||
|
||||
{
|
||||
NX_PACKET* response;
|
||||
printf("Pinging server to see if up .. ");
|
||||
fflush(stdout);
|
||||
ret = (int)nx_icmp_ping(&g_ip0, TEST_IP, "Hello", strlen("Hello"),
|
||||
&response, 2000);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("Unable to ping server, error = 0x%X\n", ret);
|
||||
return;
|
||||
}
|
||||
printf("got response from server\n");
|
||||
nx_packet_release(response);
|
||||
}
|
||||
|
||||
printf("Benchmarking client TCP connection\n");
|
||||
printf("Trying to connect to 0x%lX on port %d\n", TEST_IP, TEST_PORT);
|
||||
start = (double)tx_time_get() / TX_TIMER_TICKS_PER_SECOND;
|
||||
ret = (int)nx_tcp_socket_create(&g_ip0, &sockfd, "TCP_CLIENT", NX_IP_NORMAL,
|
||||
NX_FRAGMENT_OKAY, NX_IP_TIME_TO_LIVE, 256, NX_NULL, NX_NULL);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to create socket err = 0x%X\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < CONNECTION_TIMES; i++) {
|
||||
ret = (int)nx_tcp_client_socket_bind(&sockfd, NX_ANY_PORT,
|
||||
NX_WAIT_FOREVER);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to bind socket\n");
|
||||
return;
|
||||
}
|
||||
|
||||
ret = (int)nx_tcp_client_socket_connect(&sockfd, TEST_IP, TEST_PORT,
|
||||
NX_WAIT_FOREVER);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to connect with error 0x%X\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
nx_tcp_socket_disconnect(&sockfd, NX_WAIT_FOREVER);
|
||||
|
||||
ret = (int)nx_tcp_client_socket_unbind(&sockfd);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to unbind with error 0x%X\n", ret);
|
||||
return;
|
||||
}
|
||||
}
|
||||
nx_tcp_socket_delete(&sockfd);
|
||||
|
||||
start = ((double)tx_time_get() / TX_TIMER_TICKS_PER_SECOND) - start;
|
||||
printf("%d TCP connections took %f seconds\n", CONNECTION_TIMES, start);
|
||||
}
|
||||
#endif /* WOLFCRYPT_ONLY */
|
||||
|
||||
/* Benchmark entry function */
|
||||
void app_entry(void)
|
||||
{
|
||||
initialise_monitor_handles();
|
||||
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
|
||||
wolfSSL_Init();
|
||||
|
||||
#ifndef WOLFCRYPT_ONLY
|
||||
benchmark_TCP();
|
||||
|
||||
printf("\nBenchmarking client TLSv1.2 connection using ECDHE-RSA-AES128-GCM-SHA256\n");
|
||||
benchmark_TLS(2, "ECDHE-RSA-AES128-GCM-SHA256", 0);
|
||||
#ifdef WOLFSSL_TLS13
|
||||
#ifdef HAVE_CURVE25519
|
||||
printf("\nBenchmarking client TLSv1.3 WOLFSSL_ECC_X25519 connection using TLS13_AES128_GCM_SHA256\n");
|
||||
benchmark_TLS(3, "TLS13-AES128-GCM-SHA256", (int)WOLFSSL_ECC_X25519);
|
||||
#endif
|
||||
#ifdef HAVE_ECC
|
||||
printf("\nBenchmarking client TLSv1.3 WOLFSSL_ECC_SECP256R1 connection using TLS13_AES128_GCM_SHA256\n");
|
||||
benchmark_TLS(3, "TLS13-AES128-GCM-SHA256", (int)WOLFSSL_ECC_SECP256R1);
|
||||
#endif
|
||||
printf("\nBenchmarking client TLSv1.3 WOLFSSL_FFDHE_2048 connection using TLS13_AES128_GCM_SHA256\n");
|
||||
benchmark_TLS(3, "TLS13-AES128-GCM-SHA256", (int)WOLFSSL_FFDHE_2048);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
/* run wolfcrypt benchmarks */
|
||||
benchmark_test(NULL);
|
||||
#endif
|
||||
|
||||
wolfSSL_Cleanup();
|
||||
while (1)
|
||||
{
|
||||
tx_thread_sleep (100);
|
||||
}
|
||||
}
|
||||
184
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/example_server-template/src/app_entry.c
vendored
Normal file
184
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/example_server-template/src/app_entry.c
vendored
Normal file
@@ -0,0 +1,184 @@
|
||||
/* app_entry.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#include "app.h"
|
||||
#include "nx_api.h"
|
||||
#include "stdio.h"
|
||||
extern void initialise_monitor_handles(void);
|
||||
|
||||
#include <wolfssl/ssl.h>
|
||||
#define USE_CERT_BUFFERS_2048
|
||||
#define USE_CERT_BUFFERS_256
|
||||
#include <wolfssl/certs_test.h>
|
||||
#define TLS_PORT 11111
|
||||
|
||||
static void server()
|
||||
{
|
||||
UINT TEST_PORT = TLS_PORT;
|
||||
NX_TCP_SOCKET sockfd;
|
||||
int ret;
|
||||
unsigned char* cert;
|
||||
int certSz;
|
||||
|
||||
unsigned char* key;
|
||||
int keySz;
|
||||
|
||||
WOLFSSL_CTX* ctx;
|
||||
WOLFSSL* ssl;
|
||||
|
||||
ctx = wolfSSL_CTX_new(wolfSSLv23_server_method());
|
||||
if (ctx == NULL) {
|
||||
printf("Unable to create ctx\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifndef NO_RSA
|
||||
cert = server_cert_der_2048;
|
||||
certSz = sizeof_server_cert_der_2048;
|
||||
key = server_key_der_2048;
|
||||
keySz = sizeof_server_key_der_2048;
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
/* Use ECDSA */
|
||||
cert = serv_ecc_der_256;
|
||||
certSz = sizeof_serv_ecc_der_256;
|
||||
key = ecc_key_der_256;
|
||||
keySz = sizeof_ecc_key_der_256;
|
||||
#endif
|
||||
|
||||
ret = wolfSSL_CTX_use_certificate_buffer(ctx, cert,
|
||||
certSz, SSL_FILETYPE_ASN1);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("Unable to load certificate ret = %d\n", ret);
|
||||
wolfSSL_CTX_free(ctx);
|
||||
return;
|
||||
}
|
||||
|
||||
ret = wolfSSL_CTX_use_PrivateKey_buffer(ctx, key,
|
||||
keySz, SSL_FILETYPE_ASN1);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("Unable to load key ret = %d\n", ret);
|
||||
wolfSSL_CTX_free(ctx);
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_TLS13
|
||||
{
|
||||
int groups[3];
|
||||
int idx = 0;
|
||||
|
||||
#ifdef HAVE_CURVE25519
|
||||
groups[idx++] = WOLFSSL_ECC_X25519;
|
||||
#endif
|
||||
#ifdef HAVE_ECC
|
||||
groups[idx++] = WOLFSSL_ECC_SECP256R1;
|
||||
#endif
|
||||
groups[idx++] = WOLFSSL_FFDHE_2048;
|
||||
|
||||
ret = wolfSSL_CTX_set_groups(ctx, groups, idx);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("Unable to set groups\n");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
printf("Waiting for connections on port %d\n", TEST_PORT);
|
||||
|
||||
ret = (int)nx_tcp_socket_create(&g_ip0, &sockfd, "TLS_SERVER", NX_IP_NORMAL,
|
||||
NX_FRAGMENT_OKAY, NX_IP_TIME_TO_LIVE, 1500, NX_NULL, NX_NULL);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to create socket err = 0x%X\n", ret);
|
||||
}
|
||||
|
||||
ret = (int)nx_tcp_server_socket_listen(&g_ip0, TEST_PORT, &sockfd,
|
||||
NX_MAX_LISTEN_REQUESTS, NULL);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to listen\n");
|
||||
}
|
||||
|
||||
while (1) {
|
||||
ret = (int)nx_tcp_server_socket_accept(&sockfd, NX_WAIT_FOREVER);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to accept with error 0x%X\n", ret);
|
||||
break;
|
||||
}
|
||||
|
||||
ssl = wolfSSL_new(ctx);
|
||||
if (ssl == NULL) {
|
||||
printf("Error creating ssl\n");
|
||||
break;
|
||||
}
|
||||
|
||||
wolfSSL_SetIO_NetX(ssl, &sockfd, NX_WAIT_FOREVER);
|
||||
|
||||
ret = wolfSSL_accept(ssl);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("Error %d with wolfssl accept\n", wolfSSL_get_error(ssl, ret));
|
||||
wolfSSL_free(ssl);
|
||||
break;
|
||||
}
|
||||
wolfSSL_free(ssl);
|
||||
|
||||
nx_tcp_socket_disconnect(&sockfd, NX_WAIT_FOREVER);
|
||||
|
||||
ret = (int)nx_tcp_server_socket_unaccept(&sockfd);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to unaccept with error 0x%X\n", ret);
|
||||
break;
|
||||
}
|
||||
|
||||
ret = (int)nx_tcp_server_socket_relisten(&g_ip0, TEST_PORT, &sockfd);
|
||||
if (ret != NX_SUCCESS && ret != NX_CONNECTION_PENDING) {
|
||||
printf("failed to relisten 0x%X\n", ret);
|
||||
break;
|
||||
}
|
||||
}
|
||||
ret = (int)nx_tcp_server_socket_unlisten(&g_ip0, TEST_PORT);
|
||||
if (ret != NX_SUCCESS) {
|
||||
printf("failed to unlisten\n");
|
||||
return;
|
||||
}
|
||||
|
||||
nx_tcp_socket_delete(&sockfd);
|
||||
|
||||
wolfSSL_CTX_free(ctx);
|
||||
}
|
||||
|
||||
/* app entry function */
|
||||
void app_entry(void)
|
||||
{
|
||||
initialise_monitor_handles();
|
||||
wolfSSL_Init();
|
||||
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
server();
|
||||
wolfSSL_Cleanup();
|
||||
printf("Server closed down\n");
|
||||
while (1)
|
||||
{
|
||||
tx_thread_sleep (1);
|
||||
}
|
||||
}
|
||||
22
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/include.am
vendored
Normal file
22
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/include.am
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# vim:ft=automake
|
||||
# included from Top Level Makefile.am
|
||||
# All paths should be given relative to the root
|
||||
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/README.md
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/user_settings.h
|
||||
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/wolfssl-template-project/.project
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/wolfssl-template-project/configuration.xml
|
||||
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/wolfcrypttest-template/.cproject
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/wolfcrypttest-template/.project
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/wolfcrypttest-template/src/app_entry.c
|
||||
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/example_server-template/.cproject
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/example_server-template/.project
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/example_server-template/src/app_entry.c
|
||||
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/benchmark-template/.cproject
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/benchmark-template/.project
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/DK-S7G2/benchmark-template/src/app_entry.c
|
||||
|
||||
77
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/user_settings.h
vendored
Normal file
77
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/user_settings.h
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
|
||||
#ifndef USER_SETTINGS_H
|
||||
#define USER_SETTINGS_H
|
||||
|
||||
//#define DEBUG_WOLFSSL
|
||||
|
||||
#define NO_MAIN_DRIVER
|
||||
#define USE_CERT_BUFFERS_2048
|
||||
#define USE_CERT_BUFFERS_256
|
||||
|
||||
/* print out cycles per byte with benchmark when component r_wdt WDT is enabled */
|
||||
#define SYNERGY_CYCLE_COUNT
|
||||
#define BENCH_EMBEDDED
|
||||
|
||||
/* Use turn on all SCE acceleration */
|
||||
#define WOLFSSL_SCE
|
||||
|
||||
/* Used to turn off TRNG */
|
||||
/* #define WOLFSSL_SCE_NO_TRNG */
|
||||
|
||||
/* Used to turn off AES hardware acc. */
|
||||
/* #define WOLFSSL_SCE_NO_AES */
|
||||
|
||||
/* Used to turn off HASH hardware acc. */
|
||||
/* #define WOLFSSL_SCE_NO_HASH */
|
||||
|
||||
#if defined(WOLFSSL_SCE_NO_TRNG)
|
||||
/* use unsafe test seed if TRNG not used (not for production) */
|
||||
#define WOLFSSL_GENSEED_FORTEST
|
||||
#endif
|
||||
|
||||
#define HAVE_ECC
|
||||
#define ALT_ECC_SIZE
|
||||
|
||||
#define HAVE_CHACHA
|
||||
#define HAVE_POLY1305
|
||||
#define HAVE_ONE_TIME_AUTH
|
||||
#define HAVE_AESGCM
|
||||
|
||||
#define HAVE_AES_ECB
|
||||
#define WOLFSSL_AES_DIRECT
|
||||
|
||||
#define USE_FAST_MATH
|
||||
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define WC_RSA_BLINDING
|
||||
#define ECC_TIMING_RESISTANT
|
||||
|
||||
#define NO_WOLFSSL_DIR
|
||||
|
||||
#define HAVE_NETX
|
||||
#define THREADX
|
||||
#define THREADX_NO_DC_PRINTF
|
||||
#define NO_WRITEV
|
||||
#define SIZEOF_LONG 4
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
|
||||
#if 1
|
||||
/* Optimizations */
|
||||
#define WOLFSSL_HAVE_SP_RSA
|
||||
#define WOLFSSL_HAVE_SP_ECC
|
||||
#define WOLFSSL_SP_ARM_CORTEX_M_ASM
|
||||
#endif
|
||||
|
||||
/* TLS 1.3 */
|
||||
#define WOLFSSL_TLS13
|
||||
#define HAVE_TLS_EXTENSIONS
|
||||
#define HAVE_SUPPORTED_CURVES
|
||||
#define HAVE_FFDHE_2048
|
||||
#define HAVE_HKDF
|
||||
#define WC_RSA_PSS
|
||||
|
||||
#define HAVE_CURVE25519
|
||||
#define HAVE_ED25519
|
||||
#define WOLFSSL_SHA512
|
||||
|
||||
#endif
|
||||
78
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/wolfcrypttest-template/src/app_entry.c
vendored
Normal file
78
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/wolfcrypttest-template/src/app_entry.c
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
/* app_entry.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#include <app.h>
|
||||
#include "stdio.h"
|
||||
extern void initialise_monitor_handles(void);
|
||||
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#include <wolfssl/wolfcrypt/random.h>
|
||||
#include "wolfcrypt/test/test.h"
|
||||
|
||||
typedef struct func_args {
|
||||
int argc;
|
||||
char** argv;
|
||||
int return_code;
|
||||
} func_args;
|
||||
|
||||
void app_entry(void)
|
||||
{
|
||||
func_args args;
|
||||
|
||||
args.argc = 0;
|
||||
args.argv = NULL;
|
||||
args.return_code = 0;
|
||||
|
||||
initialise_monitor_handles();
|
||||
wolfCrypt_Init();
|
||||
|
||||
#if 1
|
||||
/* sanity check on RNG */
|
||||
printf("Doing quick sanity check on RNG\n");
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 10; i++) {
|
||||
int j, ret;
|
||||
WC_RNG rng;
|
||||
unsigned char buffer[20] = {0};
|
||||
|
||||
wc_InitRng(&rng);
|
||||
ret = wc_RNG_GenerateBlock(&rng, buffer, 20);
|
||||
if (ret != 0) {
|
||||
printf("Error generating random block\n");
|
||||
}
|
||||
for (j = 0; j < 20; j++) {
|
||||
printf("%02X", buffer[j]);
|
||||
}
|
||||
printf("\n");
|
||||
wc_FreeRng(&rng);
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
#endif
|
||||
|
||||
wolfcrypt_test(&args);
|
||||
wolfCrypt_Cleanup();
|
||||
printf("done with wolfcrypt test, ret = %d\n", args.return_code);
|
||||
}
|
||||
352
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/wolfssl-template-project/configuration.xml
vendored
Normal file
352
android/extern/wolfssl/IDE/Renesas/e2studio/DK-S7G2/wolfssl-template-project/configuration.xml
vendored
Normal file
@@ -0,0 +1,352 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<synergyConfiguration version="4">
|
||||
<generalSettings>
|
||||
<option key="#Board#" value="board.s7g2dk"/>
|
||||
<option key="CPU" value="S7G2"/>
|
||||
<option key="#TargetName#" value="R7FS7G27H2A01CBD"/>
|
||||
<option key="#TargetARCHITECTURE#" value="cortex-m4"/>
|
||||
<option key="#RTOS#" value="Express Logic ThreadX"/>
|
||||
<option key="#pinconfiguration#" value="S7G2-DK.pincfg"/>
|
||||
<option key="#SSPVersion#" value="1.7.0"/>
|
||||
<option key="#DefaultLinkerScript#" value="s7g2.ld"/>
|
||||
<option key="#ConfigurationFragments#" value="Renesas##BSP##Board##s7g2_dk##"/>
|
||||
<option key="#SELECTED_TOOLCHAIN#" value="gcc-arm-embedded"/>
|
||||
</generalSettings>
|
||||
<synergyBspConfiguration>
|
||||
<config id="config.bsp.s7g2.R7FS7G27H2A01CBD">
|
||||
<property id="config.bsp.part_number" value="config.bsp.part_number.value"/>
|
||||
<property id="config.bsp.rom_size_bytes" value="config.bsp.rom_size_bytes.value"/>
|
||||
<property id="config.bsp.ram_size_bytes" value="config.bsp.ram_size_bytes.value"/>
|
||||
<property id="config.bsp.data_flash_size_bytes" value="config.bsp.data_flash_size_bytes.value"/>
|
||||
<property id="config.bsp.package_style" value="config.bsp.package_style.value"/>
|
||||
<property id="config.bsp.package_pins" value="config.bsp.package_pins.value"/>
|
||||
</config>
|
||||
<config id="config.bsp.s7g2">
|
||||
<property id="config.bsp.series" value="config.bsp.series.value"/>
|
||||
</config>
|
||||
<config id="config.bsp.s7g2.ssp">
|
||||
<property id="config.bsp.s7g2.ssp.OFS0" value="config.bsp.s7g2.ssp.OFS0_Register.default"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.iwdt_start_mode" value="config.bsp.s7g2.ssp.OFS0.iwdt_start_mode.disabled"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.iwdt_timeout" value="config.bsp.s7g2.ssp.OFS0.iwdt_timeout.2048"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.iwdt_divisor" value="config.bsp.s7g2.ssp.OFS0.iwdt_divisor.128"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.iwdt_window_end" value="config.bsp.s7g2.ssp.OFS0.iwdt_window_end.0"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.iwdt_window_start" value="config.bsp.s7g2.ssp.OFS0.iwdt_window_start.100"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.iwdt_reset_interrupt" value="config.bsp.s7g2.ssp.OFS0.iwdt_reset_interrupt.Reset"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.iwdt_stop_control" value="config.bsp.s7g2.ssp.OFS0.iwdt_stop_control.stops"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.wdt_start_mode" value="config.bsp.s7g2.ssp.OFS0.wdt_start_mode.register"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.wdt_timeout" value="config.bsp.s7g2.ssp.OFS0.wdt_timeout.16384"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.wdt_divisor" value="config.bsp.s7g2.ssp.OFS0.wdt_divisor.128"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.wdt_window_end" value="config.bsp.s7g2.ssp.OFS0.wdt_window_end.0"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.wdt_window_start" value="config.bsp.s7g2.ssp.OFS0.wdt_window_start.100"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.wdt_reset_interrupt" value="config.bsp.s7g2.ssp.OFS0.wdt_reset_interrupt.Reset"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS0.wdt_stop_control" value="config.bsp.s7g2.ssp.OFS0.wdt_stop_control.stops"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS1" value="config.bsp.s7g2.ssp.OFS1_Register.default"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS1.voltage_detection0.start" value="config.bsp.s7g2.ssp.OFS1.voltage_detection0.start.disabled"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS1.voltage_detection0_level" value="config.bsp.s7g2.ssp.OFS1.voltage_detection0_level.280"/>
|
||||
<property id="config.bsp.s7g2.ssp.OFS1.hoco_osc" value="config.bsp.s7g2.ssp.OFS1.hoco_osc.disabled"/>
|
||||
</config>
|
||||
<config id="config.bsp.synergy">
|
||||
<property id="config.bsp.common.main" value="0x800"/>
|
||||
<property id="config.bsp.common.process" value="0"/>
|
||||
<property id="config.bsp.common.heap" value="0x13880"/>
|
||||
<property id="config.bsp.common.vcc" value="3300"/>
|
||||
<property id="config.bsp.common.avcc0" value="3300"/>
|
||||
<property id="config.bsp.common.checking" value="config.bsp.common.checking.enabled"/>
|
||||
<property id="config.bsp.common.assert" value="config.bsp.common.assert.none"/>
|
||||
<property id="config.bsp.common.error_log" value="config.bsp.common.error_log.none"/>
|
||||
<property id="config.bsp.common.id_mode" value="config.bsp.common.id_mode.unlocked"/>
|
||||
<property id="config.bsp.common.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>
|
||||
<property id="config.bsp.common.id1" value=""/>
|
||||
<property id="config.bsp.common.id2" value=""/>
|
||||
<property id="config.bsp.common.id3" value=""/>
|
||||
<property id="config.bsp.common.id4" value=""/>
|
||||
<property id="config.bsp.common.id_fixed" value=""/>
|
||||
</config>
|
||||
</synergyBspConfiguration>
|
||||
<synergyClockConfiguration>
|
||||
<node id="board.clock.xtal.freq" mul="24000000" option="_edit"/>
|
||||
<node id="board.clock.usbmclk.freq" option="board.clock.usbmclk.freq"/>
|
||||
<node id="board.clock.pll.source" option="board.clock.pll.source.xtal"/>
|
||||
<node id="board.clock.hoco.freq" option="board.clock.hoco.freq.20m"/>
|
||||
<node id="board.clock.loco.freq" option="board.clock.loco.freq.32768"/>
|
||||
<node id="board.clock.moco.freq" option="board.clock.moco.freq.8m"/>
|
||||
<node id="board.clock.subclk.freq" option="board.clock.subclk.freq.32768"/>
|
||||
<node id="board.clock.pll.div" option="board.clock.pll.div.2"/>
|
||||
<node id="board.clock.pll.mul" option="board.clock.pll.mul.200"/>
|
||||
<node id="board.clock.pll.display" option="board.clock.pll.display.value"/>
|
||||
<node id="board.clock.clock.source" option="board.clock.clock.source.pll"/>
|
||||
<node id="board.clock.iclk.div" option="board.clock.iclk.div.1"/>
|
||||
<node id="board.clock.iclk.display" option="board.clock.iclk.display.value"/>
|
||||
<node id="board.clock.pclka.div" option="board.clock.pclka.div.2"/>
|
||||
<node id="board.clock.pclka.display" option="board.clock.pclka.display.value"/>
|
||||
<node id="board.clock.pclkb.div" option="board.clock.pclkb.div.4"/>
|
||||
<node id="board.clock.pclkb.display" option="board.clock.pclkb.display.value"/>
|
||||
<node id="board.clock.pclkc.div" option="board.clock.pclkc.div.4"/>
|
||||
<node id="board.clock.pclkc.display" option="board.clock.pclkc.display.value"/>
|
||||
<node id="board.clock.pclkd.div" option="board.clock.pclkd.div.2"/>
|
||||
<node id="board.clock.pclkd.display" option="board.clock.pclkd.display.value"/>
|
||||
<node id="board.clock.sdclkout.div" option="board.clock.sdclkout.div.1"/>
|
||||
<node id="board.clock.sdclkout.display" option="board.clock.sdclkout.display.value"/>
|
||||
<node id="board.clock.bclk.div" option="board.clock.bclk.div.2"/>
|
||||
<node id="board.clock.bclk.display" option="board.clock.bclk.display.value"/>
|
||||
<node id="board.clock.bclkout.div" option="board.clock.bclkout.div.2"/>
|
||||
<node id="board.clock.bclkout.display" option="board.clock.bclkout.display.value"/>
|
||||
<node id="board.clock.uclk.div" option="board.clock.uclk.div.5"/>
|
||||
<node id="board.clock.uclk.display" option="board.clock.uclk.display.value"/>
|
||||
<node id="board.clock.fclk.div" option="board.clock.fclk.div.4"/>
|
||||
<node id="board.clock.fclk.display" option="board.clock.fclk.display.value"/>
|
||||
</synergyClockConfiguration>
|
||||
<synergyComponentSelection>
|
||||
<component apiversion="" class="Common" condition="" group="all" subgroup="ssp_common" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>SSP Common Code</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_cgc" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>Clock Generation Circuit: Provides=[CGC]</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_elc" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>Event Link Controller: Provides=[ELC]</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_fmi" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>Factory MCU Information Module: Provides=[FMI]</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_ioport" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>I/O Port: Provides=[IO Port]</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="BSP" condition="" group="s7g2" subgroup="device" variant="R7FS7G27H2A01CBD" vendor="Renesas" version="1.7.0">
|
||||
<description>Board support package for R7FS7G27H2A01CBD</description>
|
||||
<originalPack>Renesas.Synergy_mcu_s7g2.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="BSP" condition="" group="s7g2" subgroup="device" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>Board support package for S7G2</description>
|
||||
<originalPack>Renesas.Synergy_mcu_s7g2.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="BSP" condition="" group="s7g2" subgroup="ssp" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>Board support package for S7G2</description>
|
||||
<originalPack>Renesas.Synergy_mcu_s7g2.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="BSP" condition="" group="Board" subgroup="s7g2_dk" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>S7G2_DK Board Support Files</description>
|
||||
<originalPack>Renesas.Synergy_board_s7g2_dk.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_rtc" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>Real Time Clock: Provides=[RTC]</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_gpt" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>General Purpose Timer: Provides=[Timer ,GPT]</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_wdt" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>Watchdog Timer: Provides=[WDT]</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="Express Logic" condition="" group="all" subgroup="nx" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>Express Logic NetX: Provides=[NetX] , Requires=[ThreadX ,NetX Driver]</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="Framework Services" condition="" group="all" subgroup="sf_el_nx" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>Express Logic NetX Synergy Port: Provides=[NetX Driver] , Requires=[NetX]</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
<component apiversion="" class="Express Logic" condition="" group="all" subgroup="tx" variant="" vendor="Renesas" version="1.7.0">
|
||||
<description>Express Logic ThreadX: Provides=[ThreadX]</description>
|
||||
<originalPack>Renesas.Synergy.1.7.0.pack</originalPack>
|
||||
</component>
|
||||
</synergyComponentSelection>
|
||||
<synergyIcuConfiguration/>
|
||||
<synergyMessagingConfiguration/>
|
||||
<synergyModuleConfiguration>
|
||||
<module id="module.driver.cgc_on_cgc.0">
|
||||
<property id="module.driver.cgc.name" value="g_cgc"/>
|
||||
</module>
|
||||
<module id="module.driver.elc_on_elc.0">
|
||||
<property id="module.driver.elc.name" value="g_elc"/>
|
||||
</module>
|
||||
<module id="module.driver.ioport_on_ioport.0">
|
||||
<property id="module.driver.ioport.name" value="g_ioport"/>
|
||||
</module>
|
||||
<module id="module.driver.fmi_on_fmi.0">
|
||||
<property id="module.driver.fmi.name" value="g_fmi"/>
|
||||
</module>
|
||||
<module id="module.el.nx_dhcp_client.2074847952">
|
||||
<property id="module.el.nx_dhcp_client.name" value="g_dhcp_client0"/>
|
||||
<property id="module.el.nx_dhcp_client.init_function" value="dhcp_client_init0"/>
|
||||
<property id="module.el.nx_dhcp_client.init" value="module.el.nx_dhcp_client.init.enable"/>
|
||||
<property id="module.el.nx_dhcp_client.option" value="module.el.nx_dhcp_client.option.disable"/>
|
||||
<property id="module.el.nx_dhcp_client.option_func" value="module.el.nx_dhcp_client.option_func.enable"/>
|
||||
<property id="module.el.nx_dhcp_client.option_function" value="dhcp_user_option_add_client0"/>
|
||||
</module>
|
||||
<module id="module.el.nx.ip.1717699054">
|
||||
<property id="module.el.nx.ip.name" value="g_ip0"/>
|
||||
<property id="module.el.nx.ip.address" value="10.22.73.148"/>
|
||||
<property id="module.el.nx.ip.subnet_mask" value="255.255.255.0"/>
|
||||
<property id="module.el.nx.ip.gateway_address" value="10.22.73.81"/>
|
||||
<property id="module.el.nx.ip.stack_size" value="2048"/>
|
||||
<property id="module.el.nx.ip.priority" value="3"/>
|
||||
<property id="module.el.nx.ip.arp" value="module.el.nx.ip.arp.enable"/>
|
||||
<property id="module.el.nx.ip.arp_cache_size_units" value="module.el.nx.ip.arp_cache_size_units.bytes"/>
|
||||
<property id="module.el.nx.ip.arp_cache_size" value="520"/>
|
||||
<property id="module.el.nx.ip.rarp" value="module.el.nx.ip.rarp.disable"/>
|
||||
<property id="module.el.nx.ip.tcp" value="module.el.nx.ip.tcp.enable"/>
|
||||
<property id="module.el.nx.ip.udp" value="module.el.nx.ip.udp.enable"/>
|
||||
<property id="module.el.nx.ip.icmp" value="module.el.nx.ip.icmp.enable"/>
|
||||
<property id="module.el.nx.ip.igmp" value="module.el.nx.ip.igmp.enable"/>
|
||||
<property id="module.el.nx.ip.fragmentation" value="module.el.nx.ip.fragmentation.disable"/>
|
||||
<property id="module.el.nx.ip.init_function" value="ip_init0"/>
|
||||
<property id="module.el.nx.ip.init" value="module.el.nx.ip.init.enable"/>
|
||||
<property id="module.el.nx.ip.link_change_callback" value="NULL"/>
|
||||
</module>
|
||||
<module id="module.el.nx_common.1657773571">
|
||||
<property id="module.el.nx_common.init_function" value="nx_common_init0"/>
|
||||
<property id="module.el.nx_common.init" value="module.el.nx_common.init.enable"/>
|
||||
</module>
|
||||
<module id="module.framework.sf_el_nx.288401173">
|
||||
<property id="module.framework.sf_el_nx.name" value="g_sf_el_nx"/>
|
||||
<property id="module.framework.sf_el_nx.channel" value="1"/>
|
||||
<property id="module.framework.sf_el_nx.mac_update_callback" value="NULL"/>
|
||||
<property id="module.framework.sf_el_nx.receive_callback" value="NULL"/>
|
||||
</module>
|
||||
<module id="module.el.nx.packet_pool.1674567974">
|
||||
<property id="module.el.nx.packet_pool.name" value="g_packet_pool0"/>
|
||||
<property id="module.el.nx.packet_pool.packet_size" value="1568"/>
|
||||
<property id="module.el.nx.packet_pool.number_of_packets" value="16"/>
|
||||
<property id="module.el.nx.packet_pool.init_function" value="packet_pool_init0"/>
|
||||
<property id="module.el.nx.packet_pool.init" value="module.el.nx.packet_pool.init.enable"/>
|
||||
</module>
|
||||
<module id="module.driver.rtc_on_rtc.686778801">
|
||||
<property id="module.driver.rtc.name" value="g_rtc0"/>
|
||||
<property id="module.driver.rtc.clock_source" value="module.driver.rtc.clock_source.clock_source_loco"/>
|
||||
<property id="module.driver.rtc.auto_configure" value="module.driver.rtc.auto_configure.enabled"/>
|
||||
<property id="module.driver.rtc.error_adjustment_value" value="0"/>
|
||||
<property id="module.driver.rtc.error_adjustment_type" value="module.driver.rtc.error_adjustment_type.error_adjustment_none"/>
|
||||
<property id="module.driver.rtc.p_callback" value="NULL"/>
|
||||
<property id="module.driver.rtc.alarm_ipl" value="board.icu.common.irq.disabled"/>
|
||||
<property id="module.driver.rtc.periodic_ipl" value="board.icu.common.irq.disabled"/>
|
||||
<property id="module.driver.rtc.carry_ipl" value="board.icu.common.irq.priority12"/>
|
||||
</module>
|
||||
<module id="module.driver.timer_on_gpt.42335020">
|
||||
<property id="module.driver.timer.name" value="g_timer0"/>
|
||||
<property id="module.driver.timer.channel" value="1"/>
|
||||
<property id="module.driver.timer.mode" value="module.driver.timer.mode.mode_periodic"/>
|
||||
<property id="module.driver.timer.shortest_pwm_signal" value="module.driver.timer.mode.shortest_pwm_signal_disabled"/>
|
||||
<property id="module.driver.timer.period" value="100"/>
|
||||
<property id="module.driver.timer.unit" value="module.driver.timer.unit.unit_period_msec"/>
|
||||
<property id="module.driver.timer.duty_cycle" value="50"/>
|
||||
<property id="module.driver.timer.duty_cycle_unit" value="module.driver.timer.duty_cycle_unit.unit_percent"/>
|
||||
<property id="module.driver.timer.autostart" value="module.driver.timer.autostart.false"/>
|
||||
<property id="module.driver.timer.gtioca_output_enabled" value="module.driver.timer.gtioca_output_enabled.false"/>
|
||||
<property id="module.driver.timer.gtioca_stop_level" value="module.driver.timer.gtioca_stop_level.pin_level_low"/>
|
||||
<property id="module.driver.timer.gtiocb_output_enabled" value="module.driver.timer.gtiocb_output_enabled.false"/>
|
||||
<property id="module.driver.timer.gtiocb_stop_level" value="module.driver.timer.gtiocb_stop_level.pin_level_low"/>
|
||||
<property id="module.driver.timer.p_callback" value="timer_callback"/>
|
||||
<property id="module.driver.timer.irq_ipl" value="board.icu.common.irq.priority0"/>
|
||||
</module>
|
||||
<context id="_hal.0">
|
||||
<stack module="module.driver.fmi_on_fmi.0"/>
|
||||
<stack module="module.driver.cgc_on_cgc.0"/>
|
||||
<stack module="module.driver.elc_on_elc.0"/>
|
||||
<stack module="module.driver.ioport_on_ioport.0"/>
|
||||
<stack module="module.driver.rtc_on_rtc.686778801"/>
|
||||
<stack module="module.driver.timer_on_gpt.42335020"/>
|
||||
</context>
|
||||
<context id="rtos.threadx.thread.1032505630">
|
||||
<property id="_symbol" value="app"/>
|
||||
<property id="rtos.threadx.thread.name" value="app"/>
|
||||
<property id="rtos.threadx.thread.stack" value="32000"/>
|
||||
<property id="rtos.threadx.thread.priority" value="4"/>
|
||||
<property id="rtos.threadx.thread.autostart" value="rtos.threadx.thread.autostart.enabled"/>
|
||||
<property id="rtos.threadx.thread.timeslice" value="1"/>
|
||||
<stack module="module.el.nx.ip.1717699054">
|
||||
<stack module="module.el.nx_common.1657773571" requires="module.el.nx.ip.requires.nx_common"/>
|
||||
<stack module="module.el.nx.packet_pool.1674567974" requires="module.el.nx.ip.requires.nx.packet_pool">
|
||||
<stack module="module.el.nx_common.1657773571" requires="module.el.nx.packet_pool.requires.nx_common"/>
|
||||
</stack>
|
||||
<stack module="module.framework.sf_el_nx.288401173" requires="module.el.nx.ip.requires.sf_el_nx"/>
|
||||
</stack>
|
||||
</context>
|
||||
<config id="config.driver.wdt">
|
||||
<property id="config.driver.wdt.param_checking_enable" value="config.driver.wdt.param_checking_enable.bsp"/>
|
||||
</config>
|
||||
<config id="config.framework.sf_el_nx">
|
||||
<property id="config.framework.sf_el_nx.param_checking_enable" value="config.framework.sf_el_nx.param_checking_enable.bsp"/>
|
||||
<property id="config.framework.sf_el_nx.pin0" value="IOPORT_PORT_09_PIN_03"/>
|
||||
<property id="config.framework.sf_el_nx.mach0" value="0x00002E09"/>
|
||||
<property id="config.framework.sf_el_nx.macl0" value="0x0A0076C7"/>
|
||||
<property id="config.framework.sf_el_nx.pin1" value="IOPORT_PORT_07_PIN_06"/>
|
||||
<property id="config.framework.sf_el_nx.mach1" value="0x00002E09"/>
|
||||
<property id="config.framework.sf_el_nx.macl1" value="0x0A0076C8"/>
|
||||
<property id="config.framework.sf_el_nx.num_rx_desc" value="8"/>
|
||||
<property id="config.framework.sf_el_nx.num_tx_desc" value="32"/>
|
||||
<property id="config.framework.sf_el_nx.irq_ipl" value="board.icu.common.irq.priority12"/>
|
||||
<property id="config.framework.sf_el_nx.monitor_method" value="config.framework.sf_el_nx.monitor_method.polling"/>
|
||||
</config>
|
||||
<config id="config.driver.cgc">
|
||||
<property id="config.driver.cgc.param_checking_enable" value="config.driver.cgc.param_checking_enable.bsp"/>
|
||||
<property id="config.driver.cgc.main_osc_wait" value="config.driver.cgc.main_osc_wait.wait_547"/>
|
||||
<property id="config.driver.cgc.main_osc_clock_source" value="config.driver.cgc.main_osc_clock_source.crystal"/>
|
||||
<property id="config.driver.cgc.subclock_drive" value="config.driver.cgc.subclock_drive.standard"/>
|
||||
<property id="config.driver.cgc.subclock_at_reset_enable" value="config.driver.cgc.subclock_at_reset_enable.enabled"/>
|
||||
<property id="config.driver.cgc.low_voltage_mode" value="config.driver.cgc.low_voltage_mode.disabled"/>
|
||||
</config>
|
||||
<config id="config.driver.ioport">
|
||||
<property id="config.driver.ioport.checking" value="config.driver.ioport.checking.system"/>
|
||||
</config>
|
||||
<config id="config.threadx.thread"/>
|
||||
<config id="config.el.nx"/>
|
||||
<config id="config.el.nx_dhcp_common">
|
||||
<property id="config.el.nx_dhcp_common.tos" value="config.el.nx_dhcp_common.tos.normal"/>
|
||||
<property id="config.el.nx_dhcp_common.fragment_option" value="config.el.nx_dhcp_common.fragment_option.dont_fragment"/>
|
||||
<property id="config.el.nx_dhcp_common.time_to_live" value="128"/>
|
||||
<property id="config.el.nx_dhcp_common.queue_depth" value="5"/>
|
||||
</config>
|
||||
<config id="config.el.nx_http_common">
|
||||
<property id="config.el.nx_http_common.tos" value="config.el.nx_http_common.tos.normal"/>
|
||||
<property id="config.el.nx_http_common.fragment_option" value="config.el.nx_http_common.fragment_option.dont_fragment"/>
|
||||
<property id="config.el.nx_http_common.time_to_live" value="128"/>
|
||||
<property id="config.el.nx_http_common.digest" value="config.el.nx_http_common.digest.disable"/>
|
||||
<property id="config.el.nx_http_common.max_resource" value="40"/>
|
||||
</config>
|
||||
<config id="config.el.nx_ftp_common">
|
||||
<property id="config.el.nx_ftp_common.filex" value="config.el.nx_ftp_common.filex.enable"/>
|
||||
<property id="config.el.nx_ftp_common.control_tos" value="config.el.nx_ftp_common.control_tos.normal"/>
|
||||
<property id="config.el.nx_ftp_common.data_tos" value="config.el.nx_ftp_common.data_tos.normal"/>
|
||||
<property id="config.el.nx_ftp_common.fragment_option" value="config.el.nx_ftp_common.fragment_option.dont_fragment"/>
|
||||
<property id="config.el.nx_ftp_common.time_to_live" value="128"/>
|
||||
<property id="config.el.nx_ftp_common.timeout_period" value="60"/>
|
||||
</config>
|
||||
<config id="config.el.nx_tftp_common">
|
||||
<property id="config.el.nx_tftp_common.error_string_max" value="64"/>
|
||||
<property id="config.el.nx_tftp_common.time_to_live" value="128"/>
|
||||
<property id="config.el.nx_tftp_common.tos" value="config.el.nx_tftp_common.tos.normal"/>
|
||||
<property id="config.el.nx_tftp_common.fragment_option" value="config.el.nx_tftp_common.fragment_option.dont_fragment"/>
|
||||
</config>
|
||||
<config id="config.el.nx_telnet_common">
|
||||
<property id="config.el.nx_telnet_common.control_tos" value="config.el.nx_telnet_common.control_tos.normal"/>
|
||||
<property id="config.el.nx_telnet_common.fragment_option" value="config.el.nx_telnet_common.fragment_option.dont_fragment"/>
|
||||
<property id="config.el.nx_telnet_common.telnet_server_port" value="23"/>
|
||||
<property id="config.el.nx_telnet_common.time_to_live" value="128"/>
|
||||
</config>
|
||||
<config id="config.driver.gpt">
|
||||
<property id="config.driver.gpt.param_checking_enable" value="config.driver.gpt.param_checking_enable.bsp"/>
|
||||
</config>
|
||||
<config id="config.driver.fmi">
|
||||
<property id="config.driver.fmi.param_checking_enable" value="config.driver.fmi.param_checking_enable.bsp"/>
|
||||
<property id="config.driver.fmi.custom_base_address_symbol" value="g_fmi_data"/>
|
||||
<property id="config.driver.fmi.part_number_mask" value="0xFE00"/>
|
||||
</config>
|
||||
<config id="config.driver.rtc">
|
||||
<property id="config.driver.rtc.param_checking_enable" value="config.driver.rtc.param_checking_enable.bsp"/>
|
||||
</config>
|
||||
<config id="config.driver.elc">
|
||||
<property id="config.driver.elc.checking" value="config.driver.elc.checking.system"/>
|
||||
</config>
|
||||
</synergyModuleConfiguration>
|
||||
<synergyPinConfiguration>
|
||||
<pincfg active="true" name="S7G2-DK.pincfg" symbol="g_bsp_pin_cfg"/>
|
||||
</synergyPinConfiguration>
|
||||
</synergyConfiguration>
|
||||
Reference in New Issue
Block a user