pr_BTM_handlerin the interrupt handler of TickTimer. It reads the IO status and performs the consecutive judgment. The method to obtain the state when it changes is described later.
pr_BTM_handler, and each call is calculated internally as if the time had elapsed by this value.
bBTM_GetState()function, and if it is
TRUE, it detects that there is a change due to consecutive reading.