mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 14:23:33 +08:00
Add generic px4 interface for crypto features
Add common functions, implemented for nuttx, and link to architecture specific libraries Make a separate library to wrap nuttx random number generator as "os_random". Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Beat Küng
parent
aa61bc4942
commit
d36a91ceaf
@@ -52,6 +52,10 @@
|
||||
# include <nuttx/i2c/i2c_master.h>
|
||||
#endif // CONFIG_I2C
|
||||
|
||||
#if defined(PX4_CRYPTO)
|
||||
#include <px4_platform_common/crypto.h>
|
||||
#endif
|
||||
|
||||
int px4_platform_init()
|
||||
{
|
||||
|
||||
@@ -70,6 +74,10 @@ int px4_platform_init()
|
||||
close(fd_buf);
|
||||
}
|
||||
|
||||
#if defined(PX4_CRYPTO)
|
||||
PX4Crypto::px4_crypto_init();
|
||||
#endif
|
||||
|
||||
hrt_init();
|
||||
|
||||
param_init();
|
||||
|
||||
Reference in New Issue
Block a user