mirror of https://github.com/ARMmbed/mbed-os.git
Fix IAR failure
parent
accb95d858
commit
a4b25174ff
|
|
@ -20,9 +20,10 @@
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include "cmsis.h"
|
#include "cmsis.h"
|
||||||
#include "NUC472_442.h"
|
#include "NUC472_442.h"
|
||||||
|
#include "us_ticker_api.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get Random number generator.
|
* Get Random number generator.
|
||||||
|
|
@ -37,10 +38,12 @@ void CRYPTO_IRQHandler()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rng_get( int32_t *p32ConversionData)
|
static void rng_get(unsigned char *pConversionData)
|
||||||
{
|
{
|
||||||
int32_t i32ConversionData;
|
uint32_t *p32ConversionData;
|
||||||
uint32_t au32PrngData[8];
|
|
||||||
|
p32ConversionData = (uint32_t *)pConversionData;
|
||||||
|
|
||||||
/* Unlock protected registers */
|
/* Unlock protected registers */
|
||||||
SYS_UnlockReg();
|
SYS_UnlockReg();
|
||||||
/* Enable IP clock */
|
/* Enable IP clock */
|
||||||
|
|
@ -65,7 +68,7 @@ static void rng_get( int32_t *p32ConversionData)
|
||||||
|
|
||||||
PRNG_DISABLE_INT();
|
PRNG_DISABLE_INT();
|
||||||
NVIC_DisableIRQ(CRPT_IRQn);
|
NVIC_DisableIRQ(CRPT_IRQn);
|
||||||
CLK_DisableModuleClock(CRPT_MODULE);
|
// CLK_DisableModuleClock(CRPT_MODULE);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue