Skip to content

Commit 28a01ae

Browse files
committed
STM32F407VG: Add TRNG support
1 parent fc741f0 commit 28a01ae

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/objects.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ struct port_s {
5454
__IO uint32_t *reg_out;
5555
};
5656

57+
struct trng_s {
58+
RNG_HandleTypeDef handle;
59+
};
60+
5761
#include "common_objects.h"
5862

5963
#ifdef __cplusplus

targets/targets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@
18031803
"supported_toolchains": ["ARM", "uARM", "GCC_ARM"],
18041804
"program_cycle_s": 2,
18051805
"extra_labels_add": ["STM32F4", "STM32F407", "STM32F407xG", "STM32F407VG"],
1806-
"device_has_add": ["ANALOGOUT"],
1806+
"device_has_add": ["ANALOGOUT", "TRNG"],
18071807
"release_versions": ["2"],
18081808
"device_name": "STM32F407VG"
18091809
},
@@ -1915,7 +1915,7 @@
19151915
},
19161916
"macros_add": ["USB_STM_HAL"],
19171917
"overrides": {"lse_available": 0},
1918-
"device_has_add": ["ANALOGOUT"],
1918+
"device_has_add": ["ANALOGOUT", "TRNG"],
19191919
"release_versions": ["2", "5"],
19201920
"device_name": "STM32F407VG"
19211921
},

0 commit comments

Comments
 (0)