hid-keyboard-dongle-nRF/SDK/nRF5_SDK_17.0.2_d674dde/external/infineon/pal/nrf5x
Jason Zhu fb2a8ca8fb Added SDK: nRF5 SDK 17.0.2 2021-01-28 23:50:40 +11:00
..
README.md Added SDK: nRF5 SDK 17.0.2 2021-01-28 23:50:40 +11:00
pal_gpio.c Added SDK: nRF5 SDK 17.0.2 2021-01-28 23:50:40 +11:00
pal_i2c.c Added SDK: nRF5 SDK 17.0.2 2021-01-28 23:50:40 +11:00
pal_ifx_i2c_config.c Added SDK: nRF5 SDK 17.0.2 2021-01-28 23:50:40 +11:00
pal_os.c Added SDK: nRF5 SDK 17.0.2 2021-01-28 23:50:40 +11:00
pal_os_lock.c Added SDK: nRF5 SDK 17.0.2 2021-01-28 23:50:40 +11:00
pal_pin_config.h Added SDK: nRF5 SDK 17.0.2 2021-01-28 23:50:40 +11:00

README.md

General

All projects built with the nrf5x PAL need to set DL_MAX_FRAME_SIZE=250 via a global define, because the nrf5x doesn't support the default frame size.

To use the PAL together with other I2C devices and be able to run it also on a BLE Shield2Go make a global define IFX_2GO_SUPPORT.

Nordic SDK nrf_crypto backend

To use the OPTIGA with the nrf_crypto API the Nordic SDK needs to be modified according to the following steps.

Locate the folder <NRF_SDK>/components/libraries/crypto/. In each file listed in the following table locate the include statement section starting with the comment // Include all backends.

Append the corresponding OPTIGA backend header file include statement at the end of each respective include block.

File Include statement to append
nrf_crypto_ecc_backend.h #include "optiga_backend_ecc.h"
nrf_crypto_ecdh_backend.h #include "optiga_backend_ecdh.h"
nrf_crypto_ecdsa_backend.h #include "optiga_backend_ecdsa.h"
nrf_crypto_rng_backend.h #include "optiga_backend_rng.h"

Memory Allocation

The library allocates memory on the heap. To ensure correct operation the heap must be sufficiently large, e.g. 8,192 Bytes.