Skip to content

Commit 5fd8a5e

Browse files
authored
Merge pull request #3539 from bcostm/dev_trng_nucleo-f412zg
NUCLEO_F412ZG - Add support of TRNG peripheral
2 parents ff49a8c + 30ac4aa commit 5fd8a5e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F412ZG/objects.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ struct analogin_s {
4646
uint8_t channel;
4747
};
4848

49+
struct trng_s {
50+
RNG_HandleTypeDef handle;
51+
};
52+
4953
#include "common_objects.h"
5054
#include "gpio_object.h"
5155

targets/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@
856856
"inherits": ["Target"],
857857
"detect_code": ["0826"],
858858
"macros": ["TRANSACTION_QUEUE_SIZE_SPI=2"],
859-
"device_has": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"],
859+
"device_has": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES", "TRNG"],
860860
"release_versions": ["2", "5"],
861861
"device_name": "STM32F412ZG"
862862
},

0 commit comments

Comments
 (0)