stm interrupt receive, rpi lib fixes