spi_MASTER and not spi.MASTER for PicoC.
Put pmod_error function in picoc/platform.c

The reference to pmod_error has been removed
from modules/picoc_mod.h