Hi,
i have a question about the flash driver API described in chapter 8.13 of the RT1064 processor reference manual. All functions have a uint32_t parameter named "instance". What does this refer to? It's unfortunately not explained in the manual. Thank you for your help.
Hi Sebastian and Carsten:
It is a sequence number. Just like can interface has two instances, can0 and can1, 0 and 1 are the instance.
For flexspi, please see below lines:
#define BL_FEATURE_SPINAND_MODULE_PERIPHERAL_INSTANCE (0)
#define SPINAND_INSTANCE BL_FEATURE_SPINAND_MODULE_PERIPHERAL_INSTANCE
....
flexspi_nand_init(SPINAND_INSTANCE, config)
....
Regards
Daniel