forked from wolfSSL/wolfssl
io.c, #include
This commit is contained in:
@@ -1,52 +1,44 @@
|
|||||||
CyaSSL IAR Project Files
|
CyaSSL IAR Project Files
|
||||||
|
|
||||||
|
|
||||||
This directory contains project files for IAR EWARM IDE. These
|
This directory contains project files for IAR EWARM IDE. These
|
||||||
projects have been set up to use generic ARM Cortex-M MPUs.
|
projects have been set up to generic ARM Cortex-M MPUs.
|
||||||
|
In order to generate project for specific target MPU, take following steps.
|
||||||
|
|
||||||
|
|
||||||
Included Project Files
|
Included Project Files
|
||||||
-----------------------
|
-----------------------
|
||||||
1. Workspace: CyaSSL-Lib.eww
|
1. Workspace: CyaSSL-Lib.eww
|
||||||
The workspace includes CyaSSL-Lib library and wolfCrypt-test, wolfCrypt-benchmark
|
The workspace includes CyaSSL-Lib library and wolfCrypt-test, wolfCrypt-benchmark
|
||||||
executable projects. The library project generates full set library of wolfCrypt
|
executable projects. The library project generates full set library of wolfCrypt
|
||||||
and CyaSSL functions.
|
and CyaSSL functions.
|
||||||
|
|
||||||
|
|
||||||
2. Test suites Project: wolfCrypt-test.ewp
|
2. Test suites Project: wolfCrypt-test.ewp
|
||||||
generates test.out test suites executable
|
generates test.out test suites executable
|
||||||
|
|
||||||
3. Benchmark Project: wolfCrypt-benchmark.ewp
|
3. Benchmark Project: wolfCrypt-benchmark.ewp
|
||||||
generates benchmark.out benchmark executable
|
generates benchmark.out benchmark executable
|
||||||
|
|
||||||
|
Set Up Steps
|
||||||
|
------------
|
||||||
|
|
||||||
In order to generate project for specific target MPU, take following steps.
|
|
||||||
|
|
||||||
|
|
||||||
1. Project option settings
|
1. Project option settings
|
||||||
For each project,...
|
For each project,...
|
||||||
General Options: Choose appropriate "Target" options
|
General Options: Choose appropriate "Target" options
|
||||||
|
|
||||||
For executable projects,...
|
For executable projects,...
|
||||||
Linker->Config: Check "Override default" and "edit"->"Stack/Heap Sizes"
|
Linker->Config: Check "Override default" and "edit"->"Stack/Heap Sizes"
|
||||||
Debugger: Choose your "Driver"
|
Debugger: Choose your "Driver"
|
||||||
|
|
||||||
2. For benchmark project,...
|
2. For benchmark project,...
|
||||||
Write your own "current_time" benchmark timer under "defined(CYASSL_IAR_ARM)" in benchmark.c
|
Write your own "current_time" benchmark timer under "defined(CYASSL_IAR_ARM)" in benchmark.c
|
||||||
|
|
||||||
3. settings.h
|
3. settings.h
|
||||||
Uncomment the "CYASSL_IAR_ARM" define located in:
|
Uncomment the "CYASSL_IAR_ARM" define located in:
|
||||||
<cyassl_root>/cyassl/ctaocrypt/settings.
|
<cyassl_root>/cyassl/ctaocrypt/settings.
|
||||||
|
|
||||||
|
|
||||||
4. Build and download
|
4. Build and download
|
||||||
Go to "Project->Make" and "Download and Debug" in Menu bar for EWARM build and download.
|
Go to "Project->Make" and "Download and Debug" in Menu bar for EWARM build and download.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Support
|
Support
|
||||||
-------
|
-------
|
||||||
Please send questions or comments to support@wolfssl.com
|
Please send questions or comments to support@wolfssl.com
|
||||||
|
2
src/io.c
2
src/io.c
@@ -69,6 +69,8 @@
|
|||||||
#define RNG CyaSSL_RNG
|
#define RNG CyaSSL_RNG
|
||||||
/* for avoiding name conflict in "stm32f2xx.h" */
|
/* for avoiding name conflict in "stm32f2xx.h" */
|
||||||
static int errno;
|
static int errno;
|
||||||
|
#elif defined(CYASSL_IAR_ARM)
|
||||||
|
/* nothing */
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
Reference in New Issue
Block a user