Update SPI function.c

Loading and ttns arrays created