Browse Source

[bsp/cvitek]解决eth编译报错

heyuanjie87 1 year ago
parent
commit
017c31a062
1 changed files with 4 additions and 0 deletions
  1. 4 0
      bsp/cvitek/drivers/libraries/eth/dw_eth_mac.h

+ 4 - 0
bsp/cvitek/drivers/libraries/eth/dw_eth_mac.h

@@ -11,6 +11,10 @@
 extern "C" {
 #endif
 
+#ifndef __aligned
+#define __aligned(x) __attribute__((aligned(x)))
+#endif
+
 typedef void *eth_mac_handle_t;
 
 #define CSI_ETH_MAC_CONFIGURE           (0x01)      ///< Configure MAC; arg = configuration