X-Git-Url: https://rtime.felk.cvut.cz/gitweb/fpga/lx-cpu1/lx-rocon.git/blobdiff_plain/0ec9c2a48478d699e8c15a0b7a9edc010e42c729..595eccb6252523c875206b0d218f6d167a96bac8:/sw/app/rocon/appl_main.c diff --git a/sw/app/rocon/appl_main.c b/sw/app/rocon/appl_main.c index b5775ec..c7a146a 100644 --- a/sw/app/rocon/appl_main.c +++ b/sw/app/rocon/appl_main.c @@ -6,6 +6,10 @@ #include "appl_version.h" #include "appl_fpga.h" +#ifdef CONFIG_OC_MTD_DRV_SYSLESS +#include +#endif + #ifndef APPL_WITH_SIM_POSIX #include #endif /*APPL_WITH_SIM_POSIX*/ @@ -63,6 +67,13 @@ ul_fd_t ul_fd4timeprog; #endif #endif /*APPL_WITH_ULAN*/ +#ifdef CONFIG_OC_MTD_DRV_SYSLESS +struct mtd_spi_state_t mtd_spi_state = { + .spi_addr = 0x08, + .page_size = 256, +}; +#endif + uint32_t usn; /* uLAN/USB device serial number */ int usb_enable_flag = 1; @@ -411,6 +422,12 @@ int main() appl_distore_init(); #endif /* APPL_WITH_DISTORE_EEPROM_USER */ + /***********************************/ + // SPI connected FLASH +#ifdef CONFIG_OC_MTD_DRV_SYSLESS + mtd_spi_state.spi_drv = spi_find_drv(NULL, 0); +#endif + /***********************************/ // Micro Windows GUI