Skip to content

Commit c2a396f

Browse files
committed
[bsp][hpmicro] Fix rtconfig include scope for hpm6750evk
Move rtconfig.h include outside the ENET_MULTIPLE_PORT guard for hpm6750evk and hpm6750evk2 so configuration macros are available regardless of ENET settings.
1 parent 74b4f88 commit c2a396f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

bsp/hpmicro/hpm6750evk/board/board.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
#include "hpm_pllctl_drv.h"
2424
#include "hpm_enet_drv.h"
2525
#include "hpm_pcfg_drv.h"
26+
#include <rtconfig.h>
27+
2628
#if defined(ENET_MULTIPLE_PORT) && ENET_MULTIPLE_PORT
2729
#include "hpm_enet_phy_common.h"
28-
#include <rtconfig.h>
2930
#include <rthw.h>
3031
#endif
3132

bsp/hpmicro/hpm6750evk2/board/board.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
#include "hpm_pllctl_drv.h"
2424
#include "hpm_enet_drv.h"
2525
#include "hpm_pcfg_drv.h"
26+
#include <rtconfig.h>
27+
2628
#if defined(ENET_MULTIPLE_PORT) && ENET_MULTIPLE_PORT
2729
#include "hpm_enet_phy_common.h"
28-
#include <rtconfig.h>
2930
#include <rthw.h>
3031
#endif
3132

0 commit comments

Comments
 (0)