diff --git a/model/storage/sdio_adapter.c b/model/storage/sdio_adapter.c index 59fdba571911a49694d444d7ebcd644700f82d47..3f103419feb8f210f318df8701d0415a0ccf808c 100644 --- a/model/storage/sdio_adapter.c +++ b/model/storage/sdio_adapter.c @@ -33,6 +33,11 @@ #define MMC_SLOT_NUM 3 #define SDIO_RESCAN_WAIT_TIME 40 +enum SleepTime { + MS_10 = 10, /**< 10ms */ + MS_50 = 50, /**< 50ms */ +}; + struct mmc_host *himci_get_mmc_host(int slot); void hisi_sdio_rescan(int slot); @@ -457,7 +462,7 @@ static int32_t Hi35xxLinuxSdioRescan(struct MmcCntlr *cntlr) hisi_sdio_rescan(cntlr->index); while (rescanFinish == false && count < SDIO_RESCAN_WAIT_TIME) { - OsalMSleep(50); + OsalMSleep(MS_50); count++; rescanFinish = Hi35xxLinuxSdioRescanFinish(cntlr); } @@ -467,7 +472,7 @@ static int32_t Hi35xxLinuxSdioRescan(struct MmcCntlr *cntlr) return HDF_FAILURE; } - OsalMSleep(10); + OsalMSleep(MS_10); return HDF_SUCCESS; } diff --git a/platform/pwm/pwm_hi35xx.h b/platform/pwm/pwm_hi35xx.h index 79772013dc7d9198589bef9b47106d6d1d625f7c..c5c3f27de6971a90bfb2187d7d5f533019882657 100644 --- a/platform/pwm/pwm_hi35xx.h +++ b/platform/pwm/pwm_hi35xx.h @@ -55,7 +55,7 @@ static inline void HiPwmDisable(struct HiPwmRegs *reg) if (reg == NULL) { return; } - reg->ctrl &= ~ 1; + reg->ctrl &= ~1; } static inline void HiPwmAlwaysOutput(struct HiPwmRegs *reg)