Skip to content

Commit 503066a

Browse files
author
Cruz Monrreal
authored
Merge pull request #8559 from productize/stm32f407vg-rng
STM32F407VG: Add TRNG support
2 parents 9403a2f + 28a01ae commit 503066a

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
@@ -1809,7 +1809,7 @@
18091809
"supported_toolchains": ["ARM", "uARM", "GCC_ARM"],
18101810
"program_cycle_s": 2,
18111811
"extra_labels_add": ["STM32F4", "STM32F407", "STM32F407xG", "STM32F407VG"],
1812-
"device_has_add": ["ANALOGOUT"],
1812+
"device_has_add": ["ANALOGOUT", "TRNG"],
18131813
"release_versions": ["2"],
18141814
"device_name": "STM32F407VG"
18151815
},
@@ -1921,7 +1921,7 @@
19211921
},
19221922
"macros_add": ["USB_STM_HAL"],
19231923
"overrides": {"lse_available": 0},
1924-
"device_has_add": ["ANALOGOUT"],
1924+
"device_has_add": ["ANALOGOUT", "TRNG"],
19251925
"release_versions": ["2", "5"],
19261926
"device_name": "STM32F407VG"
19271927
},

0 commit comments

Comments
 (0)