Skip to content

Commit 48544fc

Browse files
committed
HAL TRNG - add dummy variable to empty structs
Otherwise it's implementation specific, IAR fails to compile.
1 parent f8c6c23 commit 48544fc

File tree

2 files changed

+2
-2
lines changed
  • hal/targets/hal
    • TARGET_Freescale/TARGET_KSDK2_MCUS/api
    • TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472

2 files changed

+2
-2
lines changed

hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct dac_s {
6262
};
6363

6464
struct trng_s {
65-
65+
uint8_t dummy;
6666
};
6767

6868
#include "gpio_object.h"

hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ struct sleep_s {
125125
};
126126

127127
struct trng_s {
128-
128+
uint8_t dummy;
129129
};
130130

131131
#ifdef __cplusplus

0 commit comments

Comments
 (0)