added spi code generation support