1. Добавил скрипт build.sh - собирает библиотеку pnet и группирует получившиеся файлы в папку install, туда же помещает библиотеку osal. Теперь все библиотеки и их заголовки в одном месте, а не распизаны по папкам в папке build. 2. Добавил проект sample_app в папку profinet_test. Он отвязан от процесса сборки pnet и использует уже собранную библиотеку из папки install.
26 lines
434 B
C
26 lines
434 B
C
#ifndef SAMPLEAPP_MAIN_H
|
|
#define SAMPLEAPP_MAIN_H
|
|
|
|
/**
|
|
* @file
|
|
* @brief Application utilities and helper functions
|
|
*
|
|
* Functions for getting string representation of
|
|
* P-Net events, error codes and more.
|
|
*
|
|
* API, slot and subslot administration.
|
|
*
|
|
* Initialization of P-Net configuration from app_gsdml.h.
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int c_main (int argc, char * argv[]);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |