Sfoglia il codice sorgente

fix: csi_coret_config有个未使用的参数,导致所以编译文件都有警告

Wendal Chen 2 anni fa
parent
commit
30f82f943b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      include/arch/xt804/csi_core/core_804.h

+ 1 - 0
include/arch/xt804/csi_core/core_804.h

@@ -967,6 +967,7 @@ __STATIC_INLINE uint32_t csi_vic_get_vector(int32_t IRQn)
  */
 __STATIC_INLINE uint32_t csi_coret_config(uint32_t ticks, int32_t IRQn)
 {
+    (void)IRQn;
     if ((ticks - 1UL) > CORET_LOAD_RELOAD_Msk) {
         return (1UL);                                                   /* Reload value impossible */
     }