From: Pavel Pisa Date: Thu, 30 Jul 2015 20:45:01 +0000 (+0200) Subject: Add the second command processor instance for CDC ACM USB interface. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/fpga/lx-cpu1/lx-dad.git/commitdiff_plain/68e707e24a019c44ab2739ac574fa737419211cf Add the second command processor instance for CDC ACM USB interface. Signed-off-by: Pavel Pisa --- diff --git a/sw/app/lx_dad/appl_cmdproc.c b/sw/app/lx_dad/appl_cmdproc.c index e2c611d..6df8114 100644 --- a/sw/app/lx_dad/appl_cmdproc.c +++ b/sw/app/lx_dad/appl_cmdproc.c @@ -30,9 +30,21 @@ cmd_des_t const *cmd_list_main[]={ cmd_des_t const **cmd_list = cmd_list_main; +#ifndef APPL_WITH_SIM_POSIX +extern cmd_io_t cmd_io_usbcon; extern cmd_io_t cmd_io_uartcon; +#else /*APPL_WITH_SIM_POSIX*/ +extern cmd_io_t cmd_io_std_line; +#endif /*APPL_WITH_SIM_POSIX*/ int cmdproc_poll(void) { - return cmd_processor_run(&cmd_io_uartcon, cmd_list_main); + int ret = 0; + + #ifndef APPL_WITH_SIM_POSIX + ret |= cmd_processor_run(&cmd_io_uartcon, cmd_list_main); + ret |= cmd_processor_run(&cmd_io_usbcon, cmd_list_main); + #else /*APPL_WITH_SIM_POSIX*/ + ret |= cmd_processor_run(&cmd_io_std_line, cmd_list_main); + #endif /*APPL_WITH_SIM_POSIX*/ }