/*********************************************************************//*! * @brief Program entry * * @param argc Command line argument count. * @param argv Command line argument strings. * @return 0 on success *//*********************************************************************/ int main(const int argc, const char * argv[]) { OSC_ERR err = SUCCESS; err = init(argc, argv); if (err != SUCCESS) { OscLog(ERROR, "%s: Initialization failed!(%d)\n", __func__, err); return err; } OscLog(INFO, "Initialization successful.\n"); #ifdef HAS_CPLD OscLog(INFO, "CPLD Firmware (Version: %d)\n", (int)data.firmwareRevision); #endif /* HAS_CPLD */ StateControl(); Unload(); return 0; }
/*********************************************************************//*! * @brief Program entry * * @param argc Command line argument count. * @param argv Command line argument strings. * @return 0 on success *//*********************************************************************/ int main(const int argc, const char * argv[]) { OSC_ERR err = SUCCESS; err = init(argc, argv); if (err != SUCCESS) { OscLog(ERROR, "%s: Initialization failed!(%d)\n", __func__, err); return err; } OscLog(INFO, "Initialization successful!\n"); OscLogSetConsoleLogLevel(INFO); OscLogSetFileLogLevel(WARN); StateControl(); Unload(); return 0; }