Add crypto initializer to nrf52840 port (#1246)

This commit is contained in:
Robert Lubos
2017-02-02 13:58:18 -08:00
committed by Jonathan Hui
parent 93f29a5fea
commit 451a4bb491
3 changed files with 13 additions and 1 deletions
+5
View File
@@ -33,6 +33,11 @@
static uint32_t sResetReason;
__WEAK void nrf5CryptoInit(void)
{
// This function is defined as weak so it could be overridden with external implementation.
}
void nrf5MiscInit(void)
{
// Read the reason of last reset.
+7 -1
View File
@@ -78,7 +78,7 @@ void nrf5RandomInit(void);
void nrf5LogInit(void);
/**
* Function for processing SPI Slave driver.
* Initialization of Misc module.
*
*/
void nrf5MiscInit(void);
@@ -95,4 +95,10 @@ void nrf5RadioInit(void);
*/
void nrf5RadioProcess(otInstance *aInstance);
/**
* Initialization of hardware crypto engine.
*
*/
void nrf5CryptoInit(void);
#endif // PLATFORM_NRF5_H_
+1
View File
@@ -53,6 +53,7 @@ void PlatformInit(int argc, char *argv[])
nrf5RandomInit();
nrf5UartInit();
nrf5MiscInit();
nrf5CryptoInit();
nrf5RadioInit();
#if (OPENTHREAD_ENABLE_DEFAULT_LOGGING == 0)
nrf5LogInit();