Demo/E407/hal.c (hal_subregister_write): add locking; move rf230_interrupt to contiki.h