aboutsummaryrefslogtreecommitdiff
path: root/ports/nrf/boards/pca10000
diff options
context:
space:
mode:
authorDamien George2020-02-14 15:17:51 +1100
committerDamien George2020-02-18 12:43:16 +1100
commitac8383a95d3cf39f8d8433f5c58f62dd74536110 (patch)
treed237b8cc5933f644717dd722abb7217746776800 /ports/nrf/boards/pca10000
parent6ad3bb1e121128b3ad3a5acacda97459f3a75514 (diff)
nrf: Use MICROPY_HW_ENABLE_RNG instead of MICROPY_PY_RANDOM_HW_RNG.
The "random" module no longer uses the hardware RNG (the extmod version of this module has a pseudo-random number generator), so the config option MICROPY_PY_RANDOM_HW_RNG is no longer meaningful. This commit replaces it with MICROPY_HW_ENABLE_RNG, which controls whether the hardware RNG is included in the build.
Diffstat (limited to 'ports/nrf/boards/pca10000')
-rw-r--r--ports/nrf/boards/pca10000/mpconfigboard.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/nrf/boards/pca10000/mpconfigboard.h b/ports/nrf/boards/pca10000/mpconfigboard.h
index 16ee97b43..f61405d04 100644
--- a/ports/nrf/boards/pca10000/mpconfigboard.h
+++ b/ports/nrf/boards/pca10000/mpconfigboard.h
@@ -35,7 +35,8 @@
#define MICROPY_PY_MACHINE_I2C (0)
#define MICROPY_PY_MACHINE_ADC (0)
#define MICROPY_PY_MACHINE_TEMP (1)
-#define MICROPY_PY_RANDOM_HW_RNG (1)
+
+#define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_HAS_LED (1)
#define MICROPY_HW_LED_TRICOLOR (1)