Daniel Pouzzner a3fb5029f8 clean up trailing whitespace and misplaced CRLFs, add missing final newlines, remove stray UTF8 nonprintables (BOMs) and ASCIIfy stray homoglyphs (spaces and apostrophes), guided by expanded coverage in wolfssl-multi-test check-source-text. | пре 2 месеци | |
---|---|---|
.. | ||
Kinetis_FlashPlacement.xml | пре 9 година | |
README.md | пре 2 месеци | |
arm_startup.c | пре 4 месеци | |
benchmark_main.c | пре 4 месеци | |
hw.h | пре 8 година | |
include.am | пре 8 година | |
kinetis_hw.c | пре 4 месеци | |
retarget.c | пре 4 месеци | |
test_main.c | пре 4 месеци | |
user_settings.h | пре 1 година | |
wolfssl.hzp | пре 2 година | |
wolfssl_ltc.hzp | пре 2 година |
This directory contains a CrossWorks solution named wolfssl.hzp.
Inside are three projects:
+You will need to install the "Freescale Kinetis CPU Support Package" and "ARM CPU Support Package" in the Rowley Package Manager under Tools -> Package Manager.
All hardware functions are defined in kinetis_hw.c
and are currently setup for a Freescale Kinetis K64 Coretx-M4 microcontroller. This file can be customized to work with other Kinetis microcontrollers by editing the top part of the file. Testing for this project was done with the Freescale Kinetis MK64FN1M0xxx12
using the TWR-K64F120M
. To build for the TWR-K64F120M
or FRDM-K64F
, define WOLFSSL_FRDM_K64
in the Preprocessor Definitions section of CrossStudio, or define it in "user_settings.h".
To create support for a new ARM microcontroller the functions in hw.h
will need to be implemented.
Also you will need to configure the ARM Architecture and ARM Core Type in the "Solution Properties" -> "ARM". Also the "Target Processor" in each of the projects ("Project Properties" -> "Target Processor")
To enable NXP/Freescale MMCAU:
lib_mmcau.a
and cau_api.h
files into the project.USE_NXP_MMCAU
to enable in user_settings.h
.lib_mmcau.a
file to Source Files
in the application project.To enable the NXP/Freescale MMCAU and/or LTC:
USE_NXP_LTX
to enable in user_settings.h
.arm_startup.c
: Handles startup from reset_handler
. Disabled watchdog, initializes sections, initializes heap, starts hardware and starts main.benchmark_main.c
: The main function entrypoint for benchmark application.hw.h
: The hardware API interface. These hardware interface functions are required for all platforms.kinetis_hw.c
: The most basic hardware implementation required for Kinetis.test_main.c
: The main function entrypoint for test application.user_libc.c
: Defines stubs for functions required by libc. It also wraps hardware functions for UART, RTC and Random Number Generator (RNG).user_settings.h
: This is the custom user configuration file for WolfSSL.If you are writing your own application, the following functions need to be implemented to support the WolfSSL library:
double current_time(int reset)
: Returns a double as seconds.milliseconds.int custom_rand_generate(void)
: Returns a 32-bit randomly generated number.