Skip to content

Commit

Permalink
Merge pull request #1445 from dwcaress/feature/em710-serial-support
Browse files Browse the repository at this point in the history
Feature/em710 serial support
  • Loading branch information
dwcaress authored Mar 22, 2024
2 parents b0fe03b + 4f05db8 commit 4275118
Show file tree
Hide file tree
Showing 4 changed files with 1,884 additions and 23 deletions.
10 changes: 9 additions & 1 deletion src/mbtrn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,17 @@ target_link_libraries(emallpub PRIVATE TIRPC::TIRPC mbtrnframe m pthread)
#
#------------------------------------------------------------------------------
#
add_executable(emserpub utils/emserpub.c)
target_include_directories(emserpub PRIVATE ${CMAKE_SOURCE_DIR}/src/mbtrnframe
${CMAKE_SOURCE_DIR}/src/mbio
${CMAKE_SOURCE_DIR}/src/mbtrnutils)
target_link_libraries(emserpub PRIVATE TIRPC::TIRPC mbtrnframe m pthread)
#
#------------------------------------------------------------------------------
#
install(TARGETS r7kr mb1r DESTINATION ${CMAKE_INSTALL_LIBDIR})
#
install(TARGETS udps udpc mbtnav_cli stream7k emu7k r7kr_test trnc tbinx mb1conv mb12csv mb1r_test mb1-cli emallpub DESTINATION ${CMAKE_INSTALL_BINDIR})
install(TARGETS udps udpc mbtnav_cli stream7k emu7k r7kr_test trnc tbinx mb1conv mb12csv mb1r_test mb1-cli emallpub emserpub DESTINATION ${CMAKE_INSTALL_BINDIR})
#
#------------------------------------------------------------------------------
#
4 changes: 4 additions & 0 deletions src/mbtrn/utils/emallpub.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ static void s_parse_args(int argc, char **argv, app_cfg_t *cfg)
else if (strcmp("delay", options[option_index].name) == 0) {
sscanf(optarg,"%lu",&cfg->delay_ms);
}
default:
break;
}
}

Expand All @@ -217,6 +219,8 @@ static void s_parse_args(int argc, char **argv, app_cfg_t *cfg)

if(help) {
s_show_help();
s_cfg_destroy(&cfg);
exit(0);
}
}

Expand Down
Loading

0 comments on commit 4275118

Please sign in to comment.