INTSTAT_REG
while (((intstat = bt_inb(bt, INTSTAT_REG)) & INTR_PENDING) != 0) {
intstat = bt_inb(bt, INTSTAT_REG);