Forum Discussion
Altera_Forum
Honored Contributor
12 years agoFilling in cyg_flash_devtab[] array
Does anybody know when and how cyg_flash_devtab[] array is filled in? I see &(syg_flashdevtab[0]) == &syg_flashdevtab_end and syg_flashdevtab[0].num_block_infos < 0 whereas SYGHWR_IO_FLASH_DEVICE == ...
Altera_Forum
Honored Contributor
12 years agoIt is automatically filled in using the DEVTAB_ENTRY macro.
I suggest reading this chapter (and the ones around it) about writing drivers for eCos: http://www.ecoscentric.com/ecospro/doc/html/ref/io-how-to-write-a-driver.html