#include "ticket.h" uint32_t Get_ticket(void) {return HAL_GetTick();} uint32_t haspassedms(uint32_t ticket){ uint32_t nowticket = Get_ticket(); if(nowticket > ticket) return nowticket - ticket; else return UINT32_MAX - ticket + nowticket;//³¬Ê±Ê±¼ä }