yangpeng 1 rok temu
rodzic
commit
c848aca945
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      stm32_sdio.c

+ 4 - 0
stm32_sdio.c

@@ -54,7 +54,11 @@ struct rthw_sdio
     struct sdio_pkg *pkg;
 };
 
+#if (RTTHREAD_VERSION >= RT_VERSION_CHECK(5, 0, 1))
+rt_align(SDIO_ALIGN)
+#else
 ALIGN(SDIO_ALIGN)
+#endif
 static rt_uint8_t cache_buf[SDIO_BUFF_SIZE];
 
 static rt_uint32_t stm32_sdio_clk_get(struct stm32_sdio *hw_sdio)