Implementation of /dev/random using the STM32 Random Number Generator (RNG)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5207 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
d876c6370b
commit
f477f1ce04
@ -1110,7 +1110,16 @@ Where <subdir> is one of the following:
|
||||
|
||||
nsh> umount /mnt/stuff
|
||||
|
||||
11. This configuration requires that jumper JP22 be set to enable RS-232
|
||||
11. By default, this configuration supports /dev/random using the STM32's
|
||||
RNG hardware. This can be disabled as follows:
|
||||
|
||||
-CONFIG_STM32_RNG=y
|
||||
+CONFIG_STM32_RNG=n
|
||||
|
||||
-CONFIG_DEV_RANDOM=y
|
||||
+CONFIG_DEV_RANDOM=n
|
||||
|
||||
12. This configuration requires that jumper JP22 be set to enable RS-232
|
||||
operation.
|
||||
|
||||
nsh2:
|
||||
|
@ -69,7 +69,6 @@ CONFIG_STM32_BUILDROOT=n
|
||||
#
|
||||
# JTAG Enable settings (by default JTAG-DP and SW-DP are disabled):
|
||||
#
|
||||
CONFIG_STM32_DFU=y
|
||||
CONFIG_STM32_JTAG_FULL_ENABLE=y
|
||||
CONFIG_STM32_JTAG_NOJNTRST_ENABLE=n
|
||||
CONFIG_STM32_JTAG_SW_ENABLE=n
|
||||
@ -100,7 +99,7 @@ CONFIG_STM32_OTGHS=n
|
||||
CONFIG_STM32_DCMI=n
|
||||
CONFIG_STM32_CRYP=n
|
||||
CONFIG_STM32_HASH=n
|
||||
CONFIG_STM32_RNG=n
|
||||
CONFIG_STM32_RNG=y
|
||||
CONFIG_STM32_OTGFS=n
|
||||
# AHB3:
|
||||
CONFIG_STM32_FSMC=n
|
||||
@ -306,6 +305,7 @@ CONFIG_SCHED_WORKSTACKSIZE=2048
|
||||
CONFIG_SIG_SIGWORK=4
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
CONFIG_SCHED_ATEXIT=n
|
||||
CONFIG_DEV_RANDOM=y
|
||||
|
||||
#
|
||||
# System Logging
|
||||
|
@ -100,8 +100,8 @@ OBJS = $(AOBJS) $(COBJS)
|
||||
ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
|
||||
ifeq ($(WINTOOL),y)
|
||||
CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/chip}" \
|
||||
-I "${shell cygpath -w $(ARCH_SRCDIR)/common}" \
|
||||
-I "${shell cygpath -w $(ARCH_SRCDIR)/armv7-m}"
|
||||
-I "${shell cygpath -w $(ARCH_SRCDIR)/common}" \
|
||||
-I "${shell cygpath -w $(ARCH_SRCDIR)/armv7-m}"
|
||||
else
|
||||
CFLAGS += -I$(ARCH_SRCDIR)/chip -I$(ARCH_SRCDIR)/common -I$(ARCH_SRCDIR)/armv7-m
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user