Added missing (dummy) functions attach and detach interrupt to SPIClass (taken from SAM version), and added hooks.c for yield function. Note. use of yield() at the moment isn't possible, because the linker seems unable to find the function even though hooks.c is being compiled